Skip to main content

ValueNote

Fields

FieldType
valueField
npk_m_hashField
randomnessField

Methods

new

ValueNote::new(value, npk_m_hash);

Parameters

NameType
valueField
npk_m_hashField

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

NameType
self

ValueNoteHidingPoint

Fields

FieldType
innerPoint

Methods

new

ValueNoteHidingPoint::new(point);

Parameters

NameType
pointPoint

add_value

ValueNoteHidingPoint::add_value(&mut self, value);

Parameters

NameType
&mut self
valueU128

add_npk_m_hash

ValueNoteHidingPoint::add_npk_m_hash(&mut self, npk_m_hash);

Parameters

NameType
&mut self
npk_m_hashField

add_randomness

ValueNoteHidingPoint::add_randomness(&mut self, randomness);

Parameters

NameType
&mut self
randomnessField

add_slot

ValueNoteHidingPoint::add_slot(&mut self, slot);

Parameters

NameType
&mut self
slotField

finalize

ValueNoteHidingPoint::finalize(self);

Parameters

NameType
self

Standalone Functions

compute_nullifier

compute_nullifier(self, context, note_hash_for_nullify);

Parameters

NameType
self
context&mut PrivateContext
note_hash_for_nullifyField

compute_nullifier_without_context

compute_nullifier_without_context(self);

Parameters

NameType
self

compute_note_hiding_point

compute_note_hiding_point(self);

Parameters

NameType
self

serialize

serialize(self);

Parameters

NameType
self

eq

eq(self, other);

Parameters

NameType
self
otherSelf

serialize

serialize(self);

Parameters

NameType
self