ValueNote
Fields
Field | Type |
---|---|
value | Field |
npk_m_hash | Field |
randomness | Field |
Methods
new
ValueNote::new(value, npk_m_hash);
Parameters
Name | Type |
---|---|
value | Field |
npk_m_hash | Field |
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.
ValueNote::to_note_hiding_point(self);
Parameters
Name | Type |
---|---|
self |
ValueNoteHidingPoint
Fields
Field | Type |
---|---|
inner | Point |
Methods
new
ValueNoteHidingPoint::new(point);
Parameters
Name | Type |
---|---|
point | Point |
add_value
ValueNoteHidingPoint::add_value(&mut self, value);
Parameters
Name | Type |
---|---|
&mut self | |
value | U128 |
add_npk_m_hash
ValueNoteHidingPoint::add_npk_m_hash(&mut self, npk_m_hash);
Parameters
Name | Type |
---|---|
&mut self | |
npk_m_hash | Field |
add_randomness
ValueNoteHidingPoint::add_randomness(&mut self, randomness);
Parameters
Name | Type |
---|---|
&mut self | |
randomness | Field |
add_slot
ValueNoteHidingPoint::add_slot(&mut self, slot);
Parameters
Name | Type |
---|---|
&mut self | |
slot | Field |
finalize
ValueNoteHidingPoint::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 |
serialize
serialize(self);
Parameters
Name | Type |
---|---|
self |