@@ -9,6 +9,10 @@ use alloc::{vec, vec::Vec};
9
9
10
10
#[ cfg( feature = "bincode" ) ]
11
11
use bincode:: { Decode , Encode } ;
12
+
13
+ #[ cfg( feature = "serde" ) ]
14
+ use serde:: { Deserialize , Serialize } ;
15
+
12
16
use bitcoin:: {
13
17
psbt,
14
18
secp256k1:: { schnorr, Message } ,
@@ -17,8 +21,6 @@ use bitcoin::{
17
21
transaction:: Version ,
18
22
Amount , OutPoint , ScriptBuf , Transaction , TxIn , TxOut , Txid , Witness ,
19
23
} ;
20
- #[ cfg( feature = "serde" ) ]
21
- use serde:: { Deserialize , Serialize } ;
22
24
23
25
use crate :: {
24
26
constants:: { BID_PSBT_INPUT_SEQUENCE , BID_PSBT_TX_LOCK_TIME , BID_PSBT_TX_VERSION } ,
@@ -33,6 +35,7 @@ pub mod script;
33
35
pub mod slabel;
34
36
pub mod validate;
35
37
38
+
36
39
#[ derive( Clone , PartialEq , Debug ) ]
37
40
#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
38
41
#[ cfg_attr( feature = "bincode" , derive( Encode , Decode ) ) ]
@@ -214,6 +217,7 @@ pub mod serde_bytes_impl {
214
217
215
218
#[ cfg( feature = "bincode" ) ]
216
219
pub mod bincode_bytes_impl {
220
+ use alloc:: vec:: Vec ;
217
221
use bincode:: {
218
222
de:: Decoder ,
219
223
enc:: Encoder ,
0 commit comments