Function miden_objects::notes::compute_note_hash

source ยท
pub fn compute_note_hash(id: NoteId, metadata: &NoteMetadata) -> Digest
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.