You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/miden-base/architecture/transactions/procedures.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,8 @@ To import the note procedures, set `use.miden::note` at the beginning of the fil
39
39
|`get_inputs`|`[dest_ptr]`|`[dest_ptr]`| note | <ul> <li>Writes the inputs of the currently executed note into memory starting at the specified address, `dest_ptr`. </li> </ul> |
40
40
|`get_sender`|`[]`|`[sender]`| note | <ul> <li>Returns the `sender` of the note currently being processed. Panics if a note is not being processed. </li> </ul> |
41
41
|`compute_inputs_hash`|`[inputs_ptr, num_inputs]`|`[HASH]`| note | <ul> <li>Computes hash of note inputs starting at the specified memory address.</li> </ul> |
42
+
|`get_note_serial_number`|`[]`|`[SERIAL_NUMBER]`| note | <ul> <li>Returns the serial number of the note currently being processed.</li> </ul> |
43
+
|`get_script_hash`|`[]`|`[SCRIPT_HASH]`| note | <ul> <li>Returns the script hash of the note currently being processed.</li> </ul> |
42
44
43
45
### Tx
44
46
@@ -48,8 +50,8 @@ To import the transaction procedures set `use.miden::tx` at the beginning of the
|`get_block_number`|`[]`|`[num]`| account, note | <ul> <li>Returns the block number `num` of the last known block at the time of transaction execution. |
50
52
|`get_block_hash`|`[]`|`[H]`| account, note | <ul> <li>Returns the block hash `H` of the last known block at the time of transaction execution.</li> </ul> |
51
-
|`get_input_notes_hash`|`[]`|`[COM]`| account, note | <ul> <li>Returns the input notes hash `COM`. </li><li>This is computed as a sequential hash of (nullifier, empty_word_or_note_hash) tuples over all input notes. The `empty_word_or_notes_hash` functions as a flag, if the value is set to zero, then the notes are authenticated by the transaction kernel. If the value is non-zero, then note authentication will be delayed to the batch/block kernel. The delayed authentication allows a transaction to consume a public note that is not yet included to a block. </li> </ul> |
52
-
|`get_output_notes_hash`|`[0, 0, 0, 0]`|`[COM]`| account, note | <ul> <li>Returns the output notes hash `COM`. </li><li>This is computed as a sequential hash of (note_id, note_metadata) tuples over all output notes. </li> </ul> |
53
+
|`get_input_notes_commitment`|`[]`|`[COM]`| account, note | <ul> <li>Returns the input notes hash `COM`. </li><li>This is computed as a sequential hash of (nullifier, empty_word_or_note_hash) tuples over all input notes. The `empty_word_or_notes_hash` functions as a flag, if the value is set to zero, then the notes are authenticated by the transaction kernel. If the value is non-zero, then note authentication will be delayed to the batch/block kernel. The delayed authentication allows a transaction to consume a public note that is not yet included to a block. </li> </ul> |
54
+
|`get_output_notes_commitment`|`[0, 0, 0, 0]`|`[COM]`| account, note | <ul> <li>Returns the output notes hash `COM`. </li><li>This is computed as a sequential hash of (note_id, note_metadata) tuples over all output notes. </li> </ul> |
53
55
|`create_note`|`[ASSET, tag, RECIPIENT]`|`[ptr]`| account | <ul> <li>Creates a new note and returns a pointer to the memory address at which the note is stored.</li><li> `ASSET` is the asset to be included in the note. </li><li>`tag` is the tag to be included in the note. `RECIPIENT` is the recipient of the note.</li><li> `ptr` is the pointer to the memory address at which the note is stored.</li> </ul> |
0 commit comments