Re-order import statements

In preparation for adding imports; do a trivial refactor to clean up the
import statements.

Refactor only, no logic changes.
This commit is contained in:
Tobin C. Harding 2022-08-04 11:57:13 +10:00
parent 9a606fc68a
commit 6fa0329930
1 changed files with 8 additions and 11 deletions

View File

@ -8,23 +8,20 @@
//! and legacy (before Bip143). //! and legacy (before Bip143).
//! //!
use crate::blockdata::transaction::EncodeSigningDataResult; use core::{str, fmt};
use crate::prelude::*; use core::borrow::Borrow;
use core::ops::{Deref, DerefMut};
pub use crate::blockdata::transaction::{EcdsaSighashType, SighashTypeParseError}; use crate::{io, Script, Transaction, TxOut, Sighash};
use crate::blockdata::transaction::EncodeSigningDataResult;
use crate::blockdata::witness::Witness; use crate::blockdata::witness::Witness;
use crate::consensus::{encode, Encodable}; use crate::consensus::{encode, Encodable};
use core::{str, fmt};
use core::ops::{Deref, DerefMut};
use core::borrow::Borrow;
use crate::hashes::{sha256, sha256d, Hash}; use crate::hashes::{sha256, sha256d, Hash};
use crate::io;
use crate::util::taproot::{TapLeafHash, TAPROOT_ANNEX_PREFIX, TapSighashHash};
use crate::Sighash;
use crate::{Script, Transaction, TxOut};
use crate::internal_macros::serde_string_impl; use crate::internal_macros::serde_string_impl;
use crate::prelude::*;
use crate::util::taproot::{TapLeafHash, TAPROOT_ANNEX_PREFIX, TapSighashHash, LeafVersion};
use super::taproot::LeafVersion; pub use crate::blockdata::transaction::{EcdsaSighashType, SighashTypeParseError};
/// Used for signature hash for invalid use of SIGHASH_SINGLE. /// Used for signature hash for invalid use of SIGHASH_SINGLE.
pub(crate) const UINT256_ONE: [u8; 32] = [ pub(crate) const UINT256_ONE: [u8; 32] = [