@@ -29,7 +29,7 @@ use util::psbt::raw;
29
29
use util:: psbt:: serialize:: Deserialize ;
30
30
use util:: psbt:: { Error , error} ;
31
31
32
- use schnorr ;
32
+ use :: { SchnorrSig } ;
33
33
use util:: taproot:: { ControlBlock , LeafVersion , TapLeafHash , TapBranchHash } ;
34
34
35
35
/// Type: Non-Witness UTXO PSBT_IN_NON_WITNESS_UTXO = 0x00
@@ -120,10 +120,10 @@ pub struct Input {
120
120
#[ cfg_attr( feature = "serde" , serde( with = "::serde_utils::btreemap_byte_values" ) ) ]
121
121
pub hash256_preimages : BTreeMap < sha256d:: Hash , Vec < u8 > > ,
122
122
/// Serialized schnorr signature with sighash type for key spend
123
- pub tap_key_sig : Option < schnorr :: SchnorrSig > ,
123
+ pub tap_key_sig : Option < SchnorrSig > ,
124
124
/// Map of <xonlypubkey>|<leafhash> with signature
125
125
#[ cfg_attr( feature = "serde" , serde( with = "::serde_utils::btreemap_as_seq" ) ) ]
126
- pub tap_script_sigs : BTreeMap < ( XOnlyPublicKey , TapLeafHash ) , schnorr :: SchnorrSig > ,
126
+ pub tap_script_sigs : BTreeMap < ( XOnlyPublicKey , TapLeafHash ) , SchnorrSig > ,
127
127
/// Map of Control blocks to Script version pair
128
128
#[ cfg_attr( feature = "serde" , serde( with = "::serde_utils::btreemap_as_seq" ) ) ]
129
129
pub tap_scripts : BTreeMap < ControlBlock , ( Script , LeafVersion ) > ,
@@ -209,12 +209,12 @@ impl Map for Input {
209
209
}
210
210
PSBT_IN_TAP_KEY_SIG => {
211
211
impl_psbt_insert_pair ! {
212
- self . tap_key_sig <= <raw_key: _>|<raw_value: schnorr :: SchnorrSig >
212
+ self . tap_key_sig <= <raw_key: _>|<raw_value: SchnorrSig >
213
213
}
214
214
}
215
215
PSBT_IN_TAP_SCRIPT_SIG => {
216
216
impl_psbt_insert_pair ! {
217
- self . tap_script_sigs <= <raw_key: ( XOnlyPublicKey , TapLeafHash ) >|<raw_value: schnorr :: SchnorrSig >
217
+ self . tap_script_sigs <= <raw_key: ( XOnlyPublicKey , TapLeafHash ) >|<raw_value: SchnorrSig >
218
218
}
219
219
}
220
220
PSBT_IN_TAP_LEAF_SCRIPT => {
@@ -310,11 +310,11 @@ impl Map for Input {
310
310
}
311
311
312
312
impl_psbt_get_pair ! {
313
- rv. push( self . tap_key_sig as <PSBT_IN_TAP_KEY_SIG , _>|<Vec < u8 > >)
313
+ rv. push( self . tap_key_sig as <PSBT_IN_TAP_KEY_SIG , _>|<SchnorrSig >)
314
314
}
315
315
316
316
impl_psbt_get_pair ! {
317
- rv. push( self . tap_script_sigs as <PSBT_IN_TAP_SCRIPT_SIG , ( XOnlyPublicKey , TapLeafHash ) >|<Vec < u8 > >)
317
+ rv. push( self . tap_script_sigs as <PSBT_IN_TAP_SCRIPT_SIG , ( XOnlyPublicKey , TapLeafHash ) >|<SchnorrSig >)
318
318
}
319
319
320
320
impl_psbt_get_pair ! {
0 commit comments