pub enum XpubRequirementError {
StandardMismatch {
actual_standard: String,
required_standard: String,
},
ShallowKey {
required_depth: u8,
actual_depth: u8,
standard: String,
},
NetworkMismatch {
slip_network: Network,
bip_network: Network,
},
TestnetMismatch {
expected: bool,
actual: bool,
},
UnhardenedAccountKey(String, UnhardenedIndex),
}Expand description
Errors constructing XpubOrigin.
Variants§
StandardMismatch
The provided extended public key can’t be used under the required derivation standard. The public key is suitable for {actual_standard} derivations, while a key for {required_standard} is needed.
Fields
ShallowKey
The provided extended public key has a derivation depth {actual_depth}, which is less than the depth of account-level key {required_depth} according to {standard}.
Fields
NetworkMismatch
Extended public key is invalid for the provided requirements. Specifically, network information in BIP-32 data ({bip_network}) does not match network information encoded in SLIP-132 key version prefix ({slip_network}).
Fields
TestnetMismatch
Extended public key was created for the different bitcoin network than the wallet.
UnhardenedAccountKey(String, UnhardenedIndex)
The given key is an account key according to the provided standard {0}, however it uses a non-hardened derivation index {1}.
Trait Implementations§
Source§impl Clone for XpubRequirementError
impl Clone for XpubRequirementError
Source§fn clone(&self) -> XpubRequirementError
fn clone(&self) -> XpubRequirementError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more