@@ -925,14 +925,14 @@ pub trait PsbtInputExt {
925925 fn update_with_descriptor_unchecked (
926926 & mut self ,
927927 descriptor : & Descriptor < DefiniteDescriptorKey > ,
928- ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: ConversionError > ;
928+ ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: NonDefiniteKeyError > ;
929929}
930930
931931impl PsbtInputExt for psbt:: Input {
932932 fn update_with_descriptor_unchecked (
933933 & mut self ,
934934 descriptor : & Descriptor < DefiniteDescriptorKey > ,
935- ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: ConversionError > {
935+ ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: NonDefiniteKeyError > {
936936 let ( derived, _) = update_item_with_descriptor_helper ( self , descriptor, None ) ?;
937937 Ok ( derived)
938938 }
@@ -959,14 +959,14 @@ pub trait PsbtOutputExt {
959959 fn update_with_descriptor_unchecked (
960960 & mut self ,
961961 descriptor : & Descriptor < DefiniteDescriptorKey > ,
962- ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: ConversionError > ;
962+ ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: NonDefiniteKeyError > ;
963963}
964964
965965impl PsbtOutputExt for psbt:: Output {
966966 fn update_with_descriptor_unchecked (
967967 & mut self ,
968968 descriptor : & Descriptor < DefiniteDescriptorKey > ,
969- ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: ConversionError > {
969+ ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: NonDefiniteKeyError > {
970970 let ( derived, _) = update_item_with_descriptor_helper ( self , descriptor, None ) ?;
971971 Ok ( derived)
972972 }
@@ -1083,10 +1083,10 @@ fn update_item_with_descriptor_helper<F: PsbtFields>(
10831083 check_script : Option < & Script > ,
10841084 // We return an extra boolean here to indicate an error with `check_script`. We do this
10851085 // because the error is "morally" a UtxoUpdateError::MismatchedScriptPubkey, but some
1086- // callers expect a `descriptor::ConversionError `, which cannot be produced from a
1086+ // callers expect a `descriptor::NonDefiniteKeyError `, which cannot be produced from a
10871087 // `UtxoUpdateError`, and those callers can't get this error anyway because they pass
10881088 // `None` for `check_script`.
1089- ) -> Result < ( Descriptor < bitcoin:: PublicKey > , bool ) , descriptor:: ConversionError > {
1089+ ) -> Result < ( Descriptor < bitcoin:: PublicKey > , bool ) , descriptor:: NonDefiniteKeyError > {
10901090 let secp = Secp256k1 :: verification_only ( ) ;
10911091
10921092 // 1. Derive the descriptor, recording each key derivation in a map from xpubs
@@ -1182,7 +1182,7 @@ pub enum UtxoUpdateError {
11821182 /// The unsigned transaction didn't have an input at that index
11831183 MissingInputUtxo ,
11841184 /// Derivation error
1185- DerivationError ( descriptor:: ConversionError ) ,
1185+ DerivationError ( descriptor:: NonDefiniteKeyError ) ,
11861186 /// The PSBT's `witness_utxo` and/or `non_witness_utxo` were invalid or missing
11871187 UtxoCheck ,
11881188 /// The PSBT's `witness_utxo` and/or `non_witness_utxo` had a script_pubkey that did not match
@@ -1231,7 +1231,7 @@ pub enum OutputUpdateError {
12311231 /// The raw unsigned transaction didn't have an output at that index
12321232 MissingTxOut ,
12331233 /// Derivation error
1234- DerivationError ( descriptor:: ConversionError ) ,
1234+ DerivationError ( descriptor:: NonDefiniteKeyError ) ,
12351235 /// The output's script_pubkey did not match the descriptor
12361236 MismatchedScriptPubkey ,
12371237}
0 commit comments