Enum sn_dbc::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 31 variants
Signing(String),
InvalidOperation(String),
UnknownInput,
FilteredInputNotPresent,
FailedSignature,
UnrecognisedAuthority,
MissingSignatureForInput,
MissingInputOwnerProof,
DbcReissueRequestDoesNotBalance,
FailedUnblinding,
DbcAlreadySpent {
transaction: DbcTransaction,
transaction_sigs: BTreeMap<Hash, (PublicKeySet, NodeSignature)>,
},
GenesisInputAlreadySpent,
NotGenesisNode,
TransactionMustHaveAnInput,
DbcContentNotPresentInTransactionOutput,
DbcContentParentsDifferentFromTransactionInputs,
ReissueSharePublicKeySetMismatch,
ReissueShareMintNodeSignaturesLenMismatch,
ReissueShareMintNodeSignatureNotFoundForInput,
ReissueShareDbcTransactionMismatch,
NoReissueShares,
NoReissueTransaction,
RangeProof(ProofError),
DecryptionBySharesFailed(Error),
DecryptionBySecretKeyFailed,
AmountSecretsBytesInvalid,
AmountCommitmentInvalid,
Io(Error),
JsonSerialisation(Error),
SpendBook(String),
Infallible(Infallible),
}
Expand description
Node error variants.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Signing(String)
Tuple Fields of Signing
0: String
InvalidOperation(String)
Tuple Fields of InvalidOperation
0: String
Fields of DbcAlreadySpent
transaction: DbcTransaction
transaction_sigs: BTreeMap<Hash, (PublicKeySet, NodeSignature)>
RangeProof(ProofError)
Tuple Fields of RangeProof
0: ProofError
Io(Error)
I/O error.
Tuple Fields of Io
0: Error
JsonSerialisation(Error)
JSON serialisation error.
Tuple Fields of JsonSerialisation
0: Error
SpendBook(String)
Tuple Fields of SpendBook
0: String
Infallible(Infallible)
Tuple Fields of Infallible
0: Infallible
Trait Implementations
Performs the conversion.
Performs the conversion.