UintNote
Fields
Field | Type |
---|---|
value | U128 |
npk_m_hash | Field |
randomness | Field |
Methods
to_note_hiding_point
TODO: Merge this func with compute_note_hiding_point
. I (benesjan) didn't do it in the initial PR to not have to modify macros and all the related funcs in it.
UintNote::to_note_hiding_point(self);
Parameters
Name | Type |
---|---|
self |
UintNoteHidingPoint
Fields
Field | Type |
---|---|
inner | Point |
Methods
new
UintNoteHidingPoint::new(point);
Parameters
Name | Type |
---|---|
point | Point |
add_amount
UintNoteHidingPoint::add_amount(&mut self, amount);
Parameters
Name | Type |
---|---|
&mut self | |
amount | U128 |
add_npk_m_hash
UintNoteHidingPoint::add_npk_m_hash(&mut self, npk_m_hash);
Parameters
Name | Type |
---|---|
&mut self | |
npk_m_hash | Field |
add_randomness
UintNoteHidingPoint::add_randomness(&mut self, randomness);
Parameters
Name | Type |
---|---|
&mut self | |
randomness | Field |
add_slot
UintNoteHidingPoint::add_slot(&mut self, slot);
Parameters
Name | Type |
---|---|
&mut self | |
slot | Field |
finalize
UintNoteHidingPoint::finalize(self);
Parameters
Name | Type |
---|---|
self |
Standalone Functions
compute_nullifier
compute_nullifier(self, context, note_hash_for_nullify);
Parameters
Name | Type |
---|---|
self | |
context | &mut PrivateContext |
note_hash_for_nullify | Field |
compute_nullifier_without_context
compute_nullifier_without_context(self);
Parameters
Name | Type |
---|---|
self |
compute_note_hiding_point
compute_note_hiding_point(self);
Parameters
Name | Type |
---|---|
self |
serialize
serialize(self);
Parameters
Name | Type |
---|---|
self |
eq
eq(self, other);
Parameters
Name | Type |
---|---|
self | |
other | Self |