Re-exports§
pub use wit_bindgen;
Modules§
Macros§
- felt
- Creates a
Felt
from an integer constant checking that it is within the valid range at compile time. - generate
Structs§
- Account
Id - Asset
- Bump
Alloc - A very simple allocator for Miden SDK-based programs.
- Digest
- A cryptographic digest representing a 256-bit hash value.
- Felt
- NoteIdx
- Note
Type - Recipient
- Storage
Commitment Root - Storage
Map - Tag
- Value
- Word
- Word
Aligned
Traits§
Functions§
- adv_
load_ preimage - Pops an arbitrary number of words from the advice stack and asserts it matches the commitment. Returns a Vec containing the loaded words.
- assert_
eq - Fails if
a
!=b
- blake3_
hash_ 1to1 - Hashes a 32-byte input to a 32-byte output using the BLAKE3 hash function.
- blake3_
hash_ 2to1 - Hashes a 64-byte input to a 32-byte output using the BLAKE3 hash function.
- emit_
falcon_ sig_ to_ stack - Emits an event to request a Falcon signature for the current message/public key.
Host is expected to push the signature onto the advice stack in response.
This is a workaround until migrating to VM v0.18 where the
emit
op reads the value from the stack. - extern_
hash_ ⚠memory - Computes the hash of a sequence of field elements using the Rescue Prime Optimized (RPO) hash function.
- hash_
elements - Computes the hash of a sequence of field elements using the Rescue Prime Optimized (RPO) hash function.
- hash_
words - Computes the hash of a sequence of words using the Rescue Prime Optimized (RPO) hash function.
- pipe_
double_ words_ to_ memory - Returns an even number of words from the advice stack along with the RPO hash of all read words.
- pipe_
words_ to_ memory - Reads an arbitrary number of words
num_words
from the advice stack and returns them along with sequantial RPO hash of all read words. - rpo_
falcon512_ verify - Verifies a signature against a public key and a message. The procedure gets as inputs the hash of the public key and the hash of the message via the operand stack. The signature is expected to be provided via the advice provider. The signature is valid if and only if the procedure returns.
- sha256_
hash_ 1to1 - Hashes a 32-byte input to a 32-byte output using the SHA256 hash function.
- sha256_
hash_ 2to1 - Hashes a 64-byte input to a 32-byte output using the SHA256 hash function.