pub enum MultisigError {
Show 13 variants
InvalidThreshold {
m: u8,
n: u8,
},
TooManyKeys {
count: usize,
},
NotEnoughKeys {
need: usize,
got: usize,
},
DuplicateKey {
index: usize,
},
InvalidPublicKey(String),
InvalidRedeemScript(String),
NotEnoughSignatures {
need: usize,
got: usize,
},
InvalidSignature {
index: usize,
reason: String,
},
ShamirError(String),
InvalidShareIndex(u8),
DuplicateShareIndex(u8),
SigningFailed(String),
AddressFailed(String),
}Expand description
Errors that can occur during multisig operations.
Variants§
InvalidThreshold
Invalid threshold (M must be >= 1 and <= N)
TooManyKeys
Too many keys (max 15 for standard multisig)
NotEnoughKeys
Not enough keys
DuplicateKey
Duplicate public key
InvalidPublicKey(String)
Invalid public key
InvalidRedeemScript(String)
Invalid redeem script
NotEnoughSignatures
Not enough signatures
InvalidSignature
Invalid signature
ShamirError(String)
Shamir share error
Invalid share index
Duplicate share index
SigningFailed(String)
Signing failed
AddressFailed(String)
Address generation failed
Trait Implementations§
Source§impl Debug for MultisigError
impl Debug for MultisigError
Source§impl Display for MultisigError
impl Display for MultisigError
Source§impl Error for MultisigError
impl Error for MultisigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for MultisigError
impl RefUnwindSafe for MultisigError
impl Send for MultisigError
impl Sync for MultisigError
impl Unpin for MultisigError
impl UnwindSafe for MultisigError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more