pub enum Error {
Show 13 variants InvalidNoteType(u8), InvalidBlindingFactor, InvalidCipher, MissingViewKey, InvalidNoteConversion, InvalidCrossoverConversion, InvalidFeeConversion, Decryption, InvalidCommitment, InvalidNonce, InvalidData, BadLength(usizeusize), InvalidChar(charusize),
}
Expand description

All possible errors for Phoenix’s Core

Variants

InvalidNoteType(u8)

Invalid u8 as Note Type (expected 0 or 1, found {0})

InvalidBlindingFactor

Invalid Blinding Factor’s value

InvalidCipher

Invalid Cipher’s value

MissingViewKey

ViewKey required for decrypt data from Obfuscated Note

InvalidNoteConversion

Invalid Note Type for conversion

InvalidCrossoverConversion

Invalid Crossover for conversion

InvalidFeeConversion

Invalid Fee for conversion

Decryption

Failure to decrypt

InvalidCommitment

Invalid Value Commitment

InvalidNonce

Invalid Nonce

InvalidData

Dusk-bytes InvalidData error

BadLength(usizeusize)

Dusk-bytes BadLength error

InvalidChar(charusize)

Dusk-bytes InvalidChar error

Trait Implementations

Invoked when a buffer of bad length is given to [from_slice]
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Invoked when a string slice with a non hex character is is give to [ParseHexStr::from_hex_str] Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.