pub struct Utxo<F: PrimeField> {
pub chain_id: F,
pub amount: F,
pub keypair: Keypair<F, PoseidonCRH_x5_2<F>>,
pub leaf_private: Private<F>,
pub leaf_public: Public<F>,
pub index: Option<F>,
pub nullifier: Option<F>,
pub commitment: F,
}Fields§
§chain_id: F§amount: F§keypair: Keypair<F, PoseidonCRH_x5_2<F>>§leaf_private: Private<F>§leaf_public: Public<F>§index: Option<F>§nullifier: Option<F>§commitment: FImplementations§
Source§impl<F: PrimeField> Utxo<F>
impl<F: PrimeField> Utxo<F>
pub fn new<R: RngCore>( chain_id: F, amount: F, index: Option<F>, private_key: Option<F>, blinding: Option<F>, params2: &PoseidonParameters<F>, params4: &PoseidonParameters<F>, params5: &PoseidonParameters<F>, rng: &mut R, ) -> Result<Self, Error>
pub fn get_nullifier(&self) -> Result<F, Error>
Trait Implementations§
impl<F: Copy + PrimeField> Copy for Utxo<F>
Auto Trait Implementations§
impl<F> Freeze for Utxo<F>where
F: Freeze,
impl<F> RefUnwindSafe for Utxo<F>where
F: RefUnwindSafe,
impl<F> Send for Utxo<F>
impl<F> Sync for Utxo<F>
impl<F> Unpin for Utxo<F>where
F: Unpin,
impl<F> UnwindSafe for Utxo<F>where
F: UnwindSafe,
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