Enum phoenix_core::error::Error
source · pub enum Error {
}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(usize, usize)
Dusk-bytes BadLength error
InvalidChar(char, usize)
Dusk-bytes InvalidChar error
Trait Implementations
sourceimpl BadLength for Error
impl BadLength for Error
sourcefn bad_length(found: usize, expected: usize) -> Self
fn bad_length(found: usize, expected: usize) -> Self
Invoked when a buffer of bad length is given to [
from_slice]sourceimpl From<Error> for DuskBytesError
impl From<Error> for DuskBytesError
sourceimpl InvalidChar for Error
impl InvalidChar for Error
sourcefn invalid_char(ch: char, index: usize) -> Self
fn invalid_char(ch: char, index: usize) -> Self
Invoked when a string slice with a non hex character is is give to
[
ParseHexStr::from_hex_str] Read moreAuto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more