[descriptor] Ensure that there are no duplicated keys

This commit is contained in:
Alekos Filini
2021-02-23 15:57:43 +01:00
parent 4ad0f54c30
commit 4c2042ab01
2 changed files with 30 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ pub enum Error {
InvalidDescriptorChecksum,
/// The descriptor contains hardened derivation steps on public extended keys
HardenedDerivationXpub,
/// The descriptor contains multiple keys with the same BIP32 fingerprint
DuplicatedKeys,
/// Error thrown while working with [`keys`](crate::keys)
Key(crate::keys::KeyError),