Re-exports§
pub use proptest;
Modules§
Macros§
- assert_
assembler_ diagnostic - assert_
diagnostic_ lines - Like assembly::assert_diagnostic, but matches each non-empty line of the rendered output to a corresponding pattern.
- assert_
eq - Asserts that two expressions are equal to each other (using
PartialEq
). - assert_
ne - Asserts that two expressions are not equal to each other (using
PartialEq
). - assert_
str_ eq - Asserts that two expressions are equal to each other (using
PartialEq
). - build_
debug_ test - Returns a Test struct in debug mode from the provided source string and any specified stack and advice inputs.
- build_
op_ test - Returns a Test struct in non debug mode from a string of one or more operations and any specified stack and advice inputs.
- build_
test - Returns a Test struct in non debug mode from the provided source string, and any specified stack and advice inputs.
- build_
test_ by_ mode - Returns a Test struct in the specified debug or non-debug mode using the provided source string and any specified stack and advice inputs.
- expect_
assembly_ error - Asserts that running the given assembler test will result in the expected error.
- expect_
exec_ error_ matches - Asserts that running the given execution test will result in the expected error.
Structs§
- Advice
Inputs - Context
Id - Represents the ID of an execution context
- Execution
Options - A set of parameters specifying execution parameters of the VM.
- Execution
Trace - Execution trace which is generated when a program is executed on the VM.
- Felt
- Represents base field element in the field using Montgomery representation.
- Library
Path - Path to a module or a procedure.
- MemAdvice
Provider - An in-memory
[AdviceProvider]
implementation which uses BTreeMaps as its backing storage. - Merkle
TreeVC - A fully-balanced Merkle tree.
- Process
- Proving
Options - A set of parameters specifying how Miden VM execution proofs are to be generated.
- Report
- Core Diagnostic wrapper type.
- Source
File - A SourceFile represents a single file stored in a super::SourceManager
- Stack
Inputs - Defines the initial state of the VM’s operand stack.
- Stack
Outputs - Output container for Miden VM programs.
- Test
- This is a container for the data required to run tests, which allows for running several different types of tests.
- VmState
Iterator - Iterator that iterates through vm state at each step of the execution.
Enums§
- Acceptable
Options - Execution
Error - Process
State - Verifier
Error - Represents an error returned by the verifier during an execution of the protocol.
Constants§
- EMPTY_
WORD - Array of field elements representing word of ZEROs in the Miden base field.
- MIN_
STACK_ DEPTH - Represents:
- ONE
- Field element representing ONE in the Miden base filed.
- STATE_
WIDTH - Number of field element needed to represent the sponge state for the hash function.
- TRUNCATE_
STACK_ PROC - A source code of the
truncate_stack
procedure. - U32_
BOUND - A value just over what a u32 integer can hold.
- WORD_
SIZE - Number of field elements in a word.
- ZERO
- Field element representing ZERO in the Miden base filed.
Traits§
- Advice
Provider - Defines behavior of an advice provider.
- Field
Element - Defines an element in a finite field.
- Into
Bytes - Source
Manager - Stark
Field - Defines an element in a STARK-friendly finite field.
- ToElements
Functions§
- build_
expected_ hash - build_
expected_ perm - Given a hasher state, perform one permutation.
- felt_
slice_ to_ ints - Converts a slice of Felts into a vector of u64 values.
- group_
slice_ elements - Transmutes a slice of
n
elements into a slice ofn
/N
elements, each of which is an array ofN
elements. - hash_
elements - Returns a hash of the provided list of field elements.
- prop_
randw - A proptest strategy for generating a random word with 4 values of type T.
- prove
- Executes and proves the specified
program
and returns the result together with a STARK-based proof of the program’s execution. - push_
inputs - resize_
to_ min_ stack_ depth - verify
- Returns the security level of the proof if the specified program was executed correctly against the specified inputs and outputs.
Type Aliases§
Attribute Macros§
- test_
case - Generates tests for given set of data