compute_note_commitment

Function compute_note_commitment 

Source
pub fn compute_note_commitment(id: NoteId, metadata: &NoteMetadata) -> Word
Expand description

Returns a commitment to the note and its metadata.

hash(NOTE_ID || NOTE_METADATA)

This value is used primarily for authenticating notes consumed when they are consumed in a transaction.