pub enum Error {
Show 19 variants
IncorrectSecretKind,
IncorrectWitnessKind,
LocktimeInPast,
InvalidSignature,
UnknownTag,
UnknownSigFlag,
SpendConditionsNotMet,
P2PKPubkeyRequired,
KindNotFound,
InvalidHash,
SignaturesNotProvided,
DuplicateSignature,
UrlParseError(ParseError),
ParseInt(ParseIntError),
HexError(Error),
SerdeJsonError(Error),
Secp256k1(Error),
NUT01(Error),
Secret(Error),
}
Expand description
Nut11 Error
Variants§
IncorrectSecretKind
Incorrect secret kind
IncorrectWitnessKind
Incorrect secret kind
LocktimeInPast
P2PK locktime has already passed
InvalidSignature
Witness signature is not valid
UnknownTag
Unknown tag in P2PK secret
UnknownSigFlag
Unknown Sigflag
SpendConditionsNotMet
P2PK Spend conditions not meet
P2PKPubkeyRequired
Pubkey must be in data field of P2PK
KindNotFound
Unknown Kind
InvalidHash
HTLC hash invalid
SignaturesNotProvided
Witness Signatures not provided
DuplicateSignature
Duplicate signature from same pubkey
UrlParseError(ParseError)
Parse Url Error
ParseInt(ParseIntError)
Parse int error
HexError(Error)
From hex error
SerdeJsonError(Error)
Serde Json error
Secp256k1(Error)
Secp256k1 error
NUT01(Error)
NUT01 Error
Secret(Error)
Secret error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Error
fn from(source: ParseError) -> Error
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Error
fn from(source: ParseIntError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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