Struct phoenix_core::crossover::Crossover
source · pub struct Crossover { /* private fields */ }Expand description
Crossover structure containing obfuscated encrypted data
Implementations§
source§impl Crossover
impl Crossover
sourcepub fn to_hash_inputs(&self) -> [BlsScalar; 6]
pub fn to_hash_inputs(&self) -> [BlsScalar; 6]
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
sourcepub const fn nonce(&self) -> &BlsScalar
pub const fn nonce(&self) -> &BlsScalar
Returns the Nonce used for the encrypt / decrypt of data for this note
sourcepub const fn value_commitment(&self) -> &JubJubExtended
pub const fn value_commitment(&self) -> &JubJubExtended
Returns the value commitment H(value, blinding_factor)
sourcepub const fn encrypted_data(&self) -> &PoseidonCipher
pub const fn encrypted_data(&self) -> &PoseidonCipher
Returns the encrypted data
Trait Implementations§
source§impl PartialEq<Crossover> for Crossover
impl PartialEq<Crossover> for Crossover
source§impl Serializable<{ 64 + PoseidonCipher::SIZE }> for Crossover
impl Serializable<{ 64 + PoseidonCipher::SIZE }> for Crossover
impl Copy for Crossover
impl Eq for Crossover
Auto Trait Implementations§
impl RefUnwindSafe for Crossover
impl Send for Crossover
impl Sync for Crossover
impl Unpin for Crossover
impl UnwindSafe for Crossover
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
source§impl<T, const N: usize> DeserializableSlice<N> for Twhere
T: Serializable<N>,
impl<T, const N: usize> DeserializableSlice<N> for Twhere T: Serializable<N>,
source§impl<T, const N: usize> ParseHexStr<N> for Twhere
T: Serializable<N>,
impl<T, const N: usize> ParseHexStr<N> for Twhere T: Serializable<N>,
source§fn from_hex_str(s: &str) -> Result<Self, Self::Error>where
Self: Sized,
Self::Error: BadLength + InvalidChar,
fn from_hex_str(s: &str) -> Result<Self, Self::Error>where Self: Sized, Self::Error: BadLength + InvalidChar,
Parse a string slice as bytes hex representation and returns `