Enum phoenix_core::error::Error[][src]

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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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)

recently added

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.