[descriptor] Perform additional checks before using a descriptor

Fixes #287
This commit is contained in:
Alekos Filini
2021-02-15 11:33:47 -05:00
committed by Steve Myers
parent 6092c6e789
commit 7843732e17
3 changed files with 51 additions and 4 deletions

View File

@@ -31,6 +31,8 @@ pub enum Error {
InvalidHDKeyPath,
/// The provided descriptor doesn't match its checksum
InvalidDescriptorChecksum,
/// The descriptor contains hardened derivation steps on public extended keys
HardenedDerivationXpub,
/// Error thrown while working with [`keys`](crate::keys)
Key(crate::keys::KeyError),