[docs] descriptor/error.rs
This commit is contained in:
parent
9028d2a16a
commit
8b1a9d2518
@ -27,29 +27,35 @@
|
|||||||
/// Errors related to the parsing and usage of descriptors
|
/// Errors related to the parsing and usage of descriptors
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
InternalError,
|
//InternalError,
|
||||||
InvalidPrefix(Vec<u8>),
|
//InvalidPrefix(Vec<u8>),
|
||||||
HardenedDerivationOnXpub,
|
//HardenedDerivationOnXpub,
|
||||||
MalformedInput,
|
//MalformedInput,
|
||||||
|
/// Invalid HD Key path, such as having a wildcard but a length != 1
|
||||||
InvalidHDKeyPath,
|
InvalidHDKeyPath,
|
||||||
|
|
||||||
KeyParsingError(String),
|
//KeyParsingError(String),
|
||||||
|
#[allow(missing_docs)]
|
||||||
Key(crate::keys::KeyError),
|
Key(crate::keys::KeyError),
|
||||||
|
#[allow(missing_docs)]
|
||||||
Policy(crate::descriptor::policy::PolicyError),
|
Policy(crate::descriptor::policy::PolicyError),
|
||||||
|
|
||||||
InputIndexDoesntExist,
|
//InputIndexDoesntExist,
|
||||||
MissingPublicKey,
|
//MissingPublicKey,
|
||||||
MissingDetails,
|
//MissingDetails,
|
||||||
|
/// Invalid character found in the descriptor checksum
|
||||||
InvalidDescriptorCharacter(char),
|
InvalidDescriptorCharacter(char),
|
||||||
|
|
||||||
CantDeriveWithMiniscript,
|
//CantDeriveWithMiniscript,
|
||||||
|
#[allow(missing_docs)]
|
||||||
BIP32(bitcoin::util::bip32::Error),
|
BIP32(bitcoin::util::bip32::Error),
|
||||||
|
#[allow(missing_docs)]
|
||||||
Base58(bitcoin::util::base58::Error),
|
Base58(bitcoin::util::base58::Error),
|
||||||
|
#[allow(missing_docs)]
|
||||||
PK(bitcoin::util::key::Error),
|
PK(bitcoin::util::key::Error),
|
||||||
|
#[allow(missing_docs)]
|
||||||
Miniscript(miniscript::Error),
|
Miniscript(miniscript::Error),
|
||||||
|
#[allow(missing_docs)]
|
||||||
Hex(bitcoin::hashes::hex::Error),
|
Hex(bitcoin::hashes::hex::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user