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§
source§impl BadLength for Error
impl BadLength for Error
source§fn 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
]source§impl From<Error> for DuskBytesError
impl From<Error> for DuskBytesError
source§impl InvalidChar for Error
impl InvalidChar for Error
source§fn 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
]Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more