Struct phoenix_core::crossover::Crossover [−][src]
pub struct Crossover { /* fields omitted */ }
Expand description
Crossover structure containing obfuscated encrypted data
Implementations
Represent the crossover as a sequence of scalars to be used as input for sponge hash functions
It is composed by 3 scalars, in order:
- Value commitment X
- Value commitment Y
- Nonce
And also appends the scalars that composes the PoseidonCipher
Returns the Nonce used for the encrypt / decrypt of data for this note
Returns the value commitment H(value, blinding_factor)
Returns the encrypted data
Trait Implementations
Attempts to convert a byte representation of a note into a Note
,
failing if the input is invalid
type Error = BytesError
type Error = BytesError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for Crossover
impl UnwindSafe for Crossover
Blanket Implementations
Mutably borrows from an owned value. Read more
fn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
fn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
Parse a string slice as bytes hex representation and returns `