pub enum Error {
Show 13 variants InvalidNoteType(u8), InvalidBlindingFactor, InvalidCipher, MissingViewKey, InvalidNoteConversion, InvalidCrossoverConversion, InvalidFeeConversion, PoseidonError(PoseidonError), InvalidCommitment, InvalidNonce, InvalidData, BadLenght(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

PoseidonError(PoseidonError)

Poseidon Error

InvalidCommitment

Invalid Value Commitment

InvalidNonce

Invalid Nonce

InvalidData

Dusk-bytes InvalidData error

BadLenght(usizeusize)

Dusk-bytes BadLenght 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

Performs the conversion.

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.