@@ -925,14 +925,14 @@ pub trait PsbtInputExt {
925
925
fn update_with_descriptor_unchecked (
926
926
& mut self ,
927
927
descriptor : & Descriptor < DefiniteDescriptorKey > ,
928
- ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: ConversionError > ;
928
+ ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: NonDefiniteKeyError > ;
929
929
}
930
930
931
931
impl PsbtInputExt for psbt:: Input {
932
932
fn update_with_descriptor_unchecked (
933
933
& mut self ,
934
934
descriptor : & Descriptor < DefiniteDescriptorKey > ,
935
- ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: ConversionError > {
935
+ ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: NonDefiniteKeyError > {
936
936
let ( derived, _) = update_item_with_descriptor_helper ( self , descriptor, None ) ?;
937
937
Ok ( derived)
938
938
}
@@ -959,14 +959,14 @@ pub trait PsbtOutputExt {
959
959
fn update_with_descriptor_unchecked (
960
960
& mut self ,
961
961
descriptor : & Descriptor < DefiniteDescriptorKey > ,
962
- ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: ConversionError > ;
962
+ ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: NonDefiniteKeyError > ;
963
963
}
964
964
965
965
impl PsbtOutputExt for psbt:: Output {
966
966
fn update_with_descriptor_unchecked (
967
967
& mut self ,
968
968
descriptor : & Descriptor < DefiniteDescriptorKey > ,
969
- ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: ConversionError > {
969
+ ) -> Result < Descriptor < bitcoin:: PublicKey > , descriptor:: NonDefiniteKeyError > {
970
970
let ( derived, _) = update_item_with_descriptor_helper ( self , descriptor, None ) ?;
971
971
Ok ( derived)
972
972
}
@@ -1083,10 +1083,10 @@ fn update_item_with_descriptor_helper<F: PsbtFields>(
1083
1083
check_script : Option < & Script > ,
1084
1084
// We return an extra boolean here to indicate an error with `check_script`. We do this
1085
1085
// 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
1087
1087
// `UtxoUpdateError`, and those callers can't get this error anyway because they pass
1088
1088
// `None` for `check_script`.
1089
- ) -> Result < ( Descriptor < bitcoin:: PublicKey > , bool ) , descriptor:: ConversionError > {
1089
+ ) -> Result < ( Descriptor < bitcoin:: PublicKey > , bool ) , descriptor:: NonDefiniteKeyError > {
1090
1090
let secp = Secp256k1 :: verification_only ( ) ;
1091
1091
1092
1092
// 1. Derive the descriptor, recording each key derivation in a map from xpubs
@@ -1182,7 +1182,7 @@ pub enum UtxoUpdateError {
1182
1182
/// The unsigned transaction didn't have an input at that index
1183
1183
MissingInputUtxo ,
1184
1184
/// Derivation error
1185
- DerivationError ( descriptor:: ConversionError ) ,
1185
+ DerivationError ( descriptor:: NonDefiniteKeyError ) ,
1186
1186
/// The PSBT's `witness_utxo` and/or `non_witness_utxo` were invalid or missing
1187
1187
UtxoCheck ,
1188
1188
/// 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 {
1231
1231
/// The raw unsigned transaction didn't have an output at that index
1232
1232
MissingTxOut ,
1233
1233
/// Derivation error
1234
- DerivationError ( descriptor:: ConversionError ) ,
1234
+ DerivationError ( descriptor:: NonDefiniteKeyError ) ,
1235
1235
/// The output's script_pubkey did not match the descriptor
1236
1236
MismatchedScriptPubkey ,
1237
1237
}
0 commit comments