Skip to main content

UintNote

Fields

FieldType
valueU128
npk_m_hashField
randomnessField

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

NameType
self

UintNoteHidingPoint

Fields

FieldType
innerPoint

Methods

new

UintNoteHidingPoint::new(point);

Parameters

NameType
pointPoint

add_amount

UintNoteHidingPoint::add_amount(&mut self, amount);

Parameters

NameType
&mut self
amountU128

add_npk_m_hash

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

Parameters

NameType
&mut self
npk_m_hashField

add_randomness

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

Parameters

NameType
&mut self
randomnessField

add_slot

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

Parameters

NameType
&mut self
slotField

finalize

UintNoteHidingPoint::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