Enum bitcoin::util::contracthash::Error [−][src]
pub enum Error {
Secp(Error),
Script(Error),
UncompressedKey,
ExpectedKey,
ExpectedChecksig,
TooFewKeys(usize),
TooManyKeys(usize),
}
Expand description
A contract-hash error
Variants
Secp(Error)
Tuple Fields
0: Error
Other secp256k1 related error
Script(Error)
Tuple Fields
0: Error
Script parsing error
UncompressedKey
Encountered an uncompressed key in a script we were deserializing. The reserialization will compress it which might be surprising so we call this an error.
ExpectedKey
Expected a public key when deserializing a script, but we got something else.
ExpectedChecksig
Expected some sort of CHECKSIG operator when deserializing a script, but we got something else.
TooFewKeys(usize)
Tuple Fields
0: usize
Did not have enough keys to instantiate a script template
TooManyKeys(usize)
Tuple Fields
0: usize
Had too many keys; template does not match key list
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more