@@ -171,7 +171,6 @@ const PSBT_ELEMENTS_IN_BLINDED_ISSUANCE: u8 = 0x15;
171171/// A key-value map for an input of the corresponding index in the unsigned
172172/// transaction.
173173#[ derive( Clone , Debug , PartialEq ) ]
174- #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
175174pub struct Input {
176175 /// The non-witness transaction this input spends from. Should only be
177176 /// [`std::option::Option::Some`] for inputs which spend non-segwit outputs or
@@ -183,10 +182,6 @@ pub struct Input {
183182 pub witness_utxo : Option < TxOut > ,
184183 /// A map from public keys to their corresponding signature as would be
185184 /// pushed to the stack from a scriptSig or witness.
186- #[ cfg_attr(
187- feature = "serde" ,
188- serde( with = "crate::serde_utils::btreemap_byte_values" )
189- ) ]
190185 pub partial_sigs : BTreeMap < PublicKey , Vec < u8 > > ,
191186 /// The sighash type to be used for this input. Signatures for this input
192187 /// must use the sighash type.
@@ -197,7 +192,6 @@ pub struct Input {
197192 pub witness_script : Option < Script > ,
198193 /// A map from public keys needed to sign this input to their corresponding
199194 /// master key fingerprints and derivation paths.
200- #[ cfg_attr( feature = "serde" , serde( with = "crate::serde_utils::btreemap_as_seq" ) ) ]
201195 pub bip32_derivation : BTreeMap < PublicKey , KeySource > ,
202196 /// The finalized, fully-constructed scriptSig with signatures and any other
203197 /// scripts necessary for this input to pass validation.
@@ -207,28 +201,12 @@ pub struct Input {
207201 pub final_script_witness : Option < Vec < Vec < u8 > > > ,
208202 /// TODO: Proof of reserves commitment
209203 /// RIPEMD160 hash to preimage map
210- #[ cfg_attr(
211- feature = "serde" ,
212- serde( with = "crate::serde_utils::btreemap_byte_values" )
213- ) ]
214204 pub ripemd160_preimages : BTreeMap < ripemd160:: Hash , Vec < u8 > > ,
215205 /// SHA256 hash to preimage map
216- #[ cfg_attr(
217- feature = "serde" ,
218- serde( with = "crate::serde_utils::btreemap_byte_values" )
219- ) ]
220206 pub sha256_preimages : BTreeMap < sha256:: Hash , Vec < u8 > > ,
221207 /// HSAH160 hash to preimage map
222- #[ cfg_attr(
223- feature = "serde" ,
224- serde( with = "crate::serde_utils::btreemap_byte_values" )
225- ) ]
226208 pub hash160_preimages : BTreeMap < hash160:: Hash , Vec < u8 > > ,
227209 /// HAS256 hash to preimage map
228- #[ cfg_attr(
229- feature = "serde" ,
230- serde( with = "crate::serde_utils::btreemap_byte_values" )
231- ) ]
232210 pub hash256_preimages : BTreeMap < sha256d:: Hash , Vec < u8 > > ,
233211 /// (PSET) Prevout TXID of the input
234212 pub previous_txid : Txid ,
@@ -243,13 +221,10 @@ pub struct Input {
243221 /// Serialized schnorr signature with sighash type for key spend
244222 pub tap_key_sig : Option < schnorr:: SchnorrSig > ,
245223 /// Map of `<xonlypubkey>|<leafhash>` with signature
246- #[ cfg_attr( feature = "serde" , serde( with = "crate::serde_utils::btreemap_as_seq" ) ) ]
247224 pub tap_script_sigs : BTreeMap < ( XOnlyPublicKey , TapLeafHash ) , schnorr:: SchnorrSig > ,
248225 /// Map of Control blocks to Script version pair
249- #[ cfg_attr( feature = "serde" , serde( with = "crate::serde_utils::btreemap_as_seq" ) ) ]
250226 pub tap_scripts : BTreeMap < ControlBlock , ( Script , LeafVersion ) > ,
251227 /// Map of tap root x only keys to origin info and leaf hashes contained in it
252- #[ cfg_attr( feature = "serde" , serde( with = "crate::serde_utils::btreemap_as_seq" ) ) ]
253228 pub tap_key_origins : BTreeMap < XOnlyPublicKey , ( Vec < TapLeafHash > , KeySource ) > ,
254229 /// Taproot Internal key
255230 pub tap_internal_key : Option < XOnlyPublicKey > ,
@@ -302,16 +277,8 @@ pub struct Input {
302277 /// Whether the issuance is blinded
303278 pub blinded_issuance : Option < u8 > ,
304279 /// Other fields
305- #[ cfg_attr(
306- feature = "serde" ,
307- serde( with = "crate::serde_utils::btreemap_as_seq_byte_values" )
308- ) ]
309280 pub proprietary : BTreeMap < raw:: ProprietaryKey , Vec < u8 > > ,
310281 /// Unknown key-value pairs for this input.
311- #[ cfg_attr(
312- feature = "serde" ,
313- serde( with = "crate::serde_utils::btreemap_as_seq_byte_values" )
314- ) ]
315282 pub unknown : BTreeMap < raw:: Key , Vec < u8 > > ,
316283}
317284
@@ -381,8 +348,6 @@ pub struct PsbtSighashType {
381348 pub ( crate ) inner : u32 ,
382349}
383350
384- serde_string_impl ! ( PsbtSighashType , "a PsbtSighashType data" ) ;
385-
386351impl fmt:: Display for PsbtSighashType {
387352 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
388353 match self . schnorr_hash_ty ( ) {
0 commit comments