instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
0xMiden__miden-vm__1207
0xMiden/miden-vm
1,207
defect
211152c631d16a943aae503466b198b93c61150f
621d5f19c41b8f5c9f71b39a843b6c7cbb7ccee7
refactor: Add AdviceMap wrapper
## Describe your changes Added an AdviceMapWrapper and changed the key byte array to RpoDigest. This PR fixes #1191
diff --git a/miden/src/cli/data.rs b/miden/src/cli/data.rs index 1160e02ec2b..80931f1d36a 100644 --- a/miden/src/cli/data.rs +++ b/miden/src/cli/data.rs @@ -129,7 +129,15 @@ impl InputFile { .parse_advice_map() .map_err(|e| format!("failed to parse advice provider: {e}"))? { - ...
14
14
2
[{"id": "G0", "claim": "Implement thin wrapper methods on AdviceMap (like get() and insert()) instead of exposing its internal BTreeMap, and move the struct out of the inputs module into its own file.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The va...
null
0xMiden__miden-vm__1214
0xMiden/miden-vm
1,214
defect
59196129bfb5cdc79dbf676ae205ba1a2128181f
9aa2dda4ec14a89f0e7bd3555ab18f6f8dd12a27
refactor: Deref `MainTrace` type to `ColMatrix`
## Describe your changes - Implement Deref for MainTrace to &ColMatrix - Remove lifetime annotation from Maintrace - new method now takes in ColMatrix as opposed to &ColMatrix - Replace &ColMatrix with &MainTrace relevant issue: #1201
diff --git a/air/src/trace/main_trace.rs b/air/src/trace/main_trace.rs index 56157ea350..e956995796 100644 --- a/air/src/trace/main_trace.rs +++ b/air/src/trace/main_trace.rs @@ -17,6 +17,7 @@ use super::{ STACK_TRACE_OFFSET, }; use core::ops::Range; +use std::ops::Deref; use vm_core::{utils::range, Felt, ONE, ...
3
3
2
[{"id": "G0", "claim": "The new Deref import should be core::ops::Deref merged into the previous core::ops::Range import line, not a separate std::ops::Deref import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "finalize_trace() should return a...
null
0xMiden__miden-vm__1228
0xMiden/miden-vm
1,228
defect
9a09dfcaf0473ae8fe23bfeaa975dadf9623bc42
bbaf34cace698aab11f30a9b1d2206a067c70ab2
Fix `Smt` empty leaf check
Fixes an issue where we didn't do the right thing when removing a value from a key that has an empty value associated with, but maps to a `Single` leaf
diff --git a/stdlib/asm/collections/smt.masm b/stdlib/asm/collections/smt.masm index f687e9b28c..af1bec5222 100644 --- a/stdlib/asm/collections/smt.masm +++ b/stdlib/asm/collections/smt.masm @@ -19,6 +19,7 @@ const.LEAF_DEPTH=64 proc.set_empty_leaf # Check if we're inserting the empty value (19 cycles) padw ...
2
2
0
[{"id": "G0", "claim": "The comment added by this PR repeats \"to ensure\" twice: \"We need to ensure to ensure that hash([K_in_leaf, V_in_leaf]) = NV;\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cycle counts in the comments should be up...
null
0xMiden__miden-vm__139
0xMiden/miden-vm
139
defect
25756dd18046ca5d874a95753a74048694a670fb
ed5b3bf433c35b0de407f2d0a5adcd9e86e5fbe6
Add u256 multiplication to standard library
This PR adds u256 multiplication procedure to the standard library.
diff --git a/processor/Cargo.toml b/processor/Cargo.toml index 9dd861d76f..4d56e34ce2 100644 --- a/processor/Cargo.toml +++ b/processor/Cargo.toml @@ -27,7 +27,8 @@ winter-utils = { package = "winter-utils", version = "0.3", default-features = f [dev-dependencies] assembly = { package = "miden-assembly", path = ".....
5
4
1
[{"id": "G0", "claim": "The new u256 multiplication procedure's doc comment says 'where c = (a + b) % 2^256' but should say 'where c = (a * b) % 2^256', since the procedure multiplies.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It might be cle...
null
0xMiden__miden-vm__1394
0xMiden/miden-vm
1,394
defect
bbd3bb7b66ad59c45b09860fb56a8ef51e862408
4b023404d44cb20fb1b83d6491a48afda2c54468
MastForest maximum node length invariant
Closes #1392 * Enforce invariant that MastForest node length is < 2^30 * Return errors from add_node() and enforce_node() * Map errors to AssemblyError
diff --git a/air/src/constraints/stack/op_flags/mod.rs b/air/src/constraints/stack/op_flags/mod.rs index e8ea0b51d7b..03415374472 100644 --- a/air/src/constraints/stack/op_flags/mod.rs +++ b/air/src/constraints/stack/op_flags/mod.rs @@ -840,7 +840,7 @@ impl<E: FieldElement> OpFlags<E> { /// Operation Flag of U32AS...
9
8
3
[{"id": "G0", "claim": "MastForest::add_node() should enforce the 2^30 node limit and return an error instead of panicking, with the limit known to MastForest (and MastForestBuilder::ensure_node() changed similarly).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1"...
null
0xMiden__miden-vm__1412
0xMiden/miden-vm
1,412
defect
4f0dbf2ddf94be2ce24239940efc306e2d86e2d5
8ea0bb8ad73da87b7905fb3378892b6182d4b01f
Add more functions for adding nodes to MastForest
Add methods to `MastForest` to allow adding nodes with fewer LOC. Follow on from #1404 which added similar methods to `MastForestBuilder`. As per [comment](https://github.com/0xPolygonMiden/miden-vm/pull/1404#pullrequestreview-2190041018).
diff --git a/CHANGELOG.md b/CHANGELOG.md index 53d198691cc..2d68506ae69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,9 +19,9 @@ - Added serialization/deserialization for `MastForest` (#1370) - Updated CI to support `CHANGELOG.md` modification checking and `no changelog` label (#1406) - Introduced `MastForestE...
5
5
3
[{"id": "G0", "claim": "The CHANGELOG entry should reference this PR as `#1412` rather than `1412` so it becomes a link when copied into the release notes.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `add_join()` method (and likewise `a...
null
0xMiden__miden-vm__1465
0xMiden/miden-vm
1,465
defect
e683be9ee51a44d34604e7ee31013d4d43555380
525c3c884f9b8816318df6bd22016a7e32c6c9a0
Wrap MastForest in Program and Library in Arc
This PR wraps `MastForest` fields in `Program` and `Library` structs in `Arc`. This way, cloning these objects becomes a relatively cheap operation. Additionally, this PR contains the following changes/refactorings: 1. A check was added to make sure that an entrypoint of a `Program` is registered as a root in the...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f3c11b94d..48e51b72b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.11.0 (TBD) + +#### Changes + +- [BREAKING] Wrapped `MastForest`s in `Program` and `Library` structs in `Arc` (#1465). + + ## 0.10.5 (2024-08-21) #### Enhancements ...
2
2
1
[{"id": "G0", "claim": "`Library::mast_forest()` (and likewise `StdLibrary::mast_forest()`) should return `&Arc<MastForest>` instead of an owned `Arc<MastForest>`, because returning the owned value lets callers hit \"cannot return value referencing a temporary value\" errors; users can still call `clone()` when they ne...
null
0xMiden__miden-vm__1556
0xMiden/miden-vm
1,556
defect
12dd5e5588cfda7bbdf1ecd8d78aee26358935de
adb91c88a8b4e8d252a851f1768ab6e52d375e91
Fix kernel ROM multiset check
Closes #1545 I also confirmed that `miden-base` tests pass.
diff --git a/CHANGELOG.md b/CHANGELOG.md index f90220aaaac..812d4ad65bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,7 @@ - Fixed an issue with formatting of blocks in Miden Assembly syntax - Fixed the construction of the block hash table (#1506) - Fixed a bug in the block stack table (#1511) (#1512) --...
1
1
0
[{"id": "G0", "claim": "Reword the comment describing the two cases, which is a bit terse, so it is simpler to understand.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
0xMiden__miden-vm__1561
0xMiden/miden-vm
1,561
defect
766292d4efd9bcf663528631410a2d5361f3bb69
5725f7dfc92e67c23d67a075a2a8026da5f73324
Memory handling of 2 reads at the same address in the same clock cycle
Closes #1560
diff --git a/CHANGELOG.md b/CHANGELOG.md index f5116f935e9..b10d60bd525 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ - Fixed the construction of the chiplets virtual table (#1514) (#1556) - Fixed the construction of the chiplets bus (#1516) (#1525) - Decorators are now allowed in empty basic blocks...
2
1
1
[{"id": "G0", "claim": "The reviewer is unsure that RCOMBBASE reads from the same address in the same clock cycle and says that is not its intended use, questioning the added test's stated rationale.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "...
null
0xMiden__miden-vm__158
0xMiden/miden-vm
158
defect
6a4d2607f68ce1f96d46aa000b10906de82a18d8
7d8b459ffe81b0772e94533059c172870580d9db
Add u64 unsafe modulo operation
Due to the great similarity of the division operation and the modulo operation, the division operation code was taken as the basis, in which the value remaining on the stack was replaced. Now there remains not a quotient, but the remainder of the division.
diff --git a/miden/tests/integration/stdlib/math/u64_mod.rs b/miden/tests/integration/stdlib/math/u64_mod.rs index 7dcbcca8aa..1e28954db2 100644 --- a/miden/tests/integration/stdlib/math/u64_mod.rs +++ b/miden/tests/integration/stdlib/math/u64_mod.rs @@ -235,6 +235,35 @@ fn div_unsafe() { test.expect_stack(&[d1, d...
3
3
0
[{"id": "G0", "claim": "The quotient-check section could consume the quotient by using movup's instead of dup's, saving a few cycles since the divisor would no longer need to be dropped.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The section tha...
null
0xMiden__miden-vm__1623
0xMiden/miden-vm
1,623
defect
8420dcd37078c605f90c87d233eb964ae3468fc9
ba8239dd5efda2a6babb571f2d41cf6229c6c506
Improve Falcon DSA verification procedure
Reduces the cycle count of the Falcon DSA signature verification procedure. This brings the total cycle count to less than 71000 cycles. Once/if `horner_eval_base` is implemented, we can bring down this to hopefully 61000 cycles by removing the need for the `powers_of_tau` and `set_to_zero` procedures.
diff --git a/assembly/src/ast/instruction/advice.rs b/assembly/src/ast/instruction/advice.rs index f6bfe807d0..8ddcef7584 100644 --- a/assembly/src/ast/instruction/advice.rs +++ b/assembly/src/ast/instruction/advice.rs @@ -13,6 +13,7 @@ use vm_core::sys_events::SystemEvent; #[derive(Clone, PartialEq, Eq, Debug)] pub ...
9
9
1
[{"id": "G0", "claim": "The doc comment of push_falcon_mod_result should say the advice stack ends up as [q1, q0, r, ...] (q1 on top), matching the order in which the values are actually pushed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The l...
null
0xMiden__miden-vm__1629
0xMiden/miden-vm
1,629
defect
8420dcd37078c605f90c87d233eb964ae3468fc9
99bb72fad62392eda05326c6e604672623a8d13b
feat: make Chiplet fields public
Ref https://github.com/0xPolygonMiden/miden-vm/issues/1613
diff --git a/processor/src/chiplets/hasher/mod.rs b/processor/src/chiplets/hasher/mod.rs index eba72ff77a..bd22e5e461 100644 --- a/processor/src/chiplets/hasher/mod.rs +++ b/processor/src/chiplets/hasher/mod.rs @@ -77,7 +77,7 @@ impl Hasher { /// /// The returned tuple contains the hasher state after the perm...
10
10
4
[{"id": "G0", "claim": "In addition to making the Chiplet fields public, all trivial methods that only forward to one of the internal chiplets should be removed, including the kernel() method.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The hasher's...
null
0xMiden__miden-vm__163
0xMiden/miden-vm
163
defect
a07da543291e1e6fab77a9d9ab80f7ed42865621
003a4ae658fe9b59d08c536c68a30cec3d04529a
feat: add range checker constraints (excluding permutation checks)
This is a simple initial implementation of the range checker constraints, excluding the constraints for the running product columns used for permutation checks. There are no tests yet, since I expect that we'll design a system for testing constraints in a separate issue. Additionally, we will likely need to include ...
diff --git a/air/src/lib.rs b/air/src/lib.rs index d4ba4900470..ab1aa661611 100644 --- a/air/src/lib.rs +++ b/air/src/lib.rs @@ -6,6 +6,8 @@ use winter_air::{ use winter_utils::{ByteWriter, Serializable}; mod options; +mod range; +mod utils; // EXPORTS // ========================================================...
4
4
1
[{"id": "G0", "claim": "Rather than hard-coding `1..` for the range checker's constraint slice in ProcessorAir, a constant of type `Range` should specify the exact constraint ranges for the various components.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim"...
null
0xMiden__miden-vm__1643
0xMiden/miden-vm
1,643
defect
d9676d230468d883d46b0aef0bfdf95611fabfc0
437a8467e039c6c1841f7f3dbc858702ddce4167
Assembler: enable vendoring of compiled libraries (fixes #1435)
Before this MR, the only ways to link a library during assembly are: - Add the module sources. The library is effectively recompiled as part of the new library/program - Add a compiled library. In this case all references to this library are compiled as external nodes This MR adds the possibility to link a compile...
diff --git a/assembly/src/assembler/mod.rs b/assembly/src/assembler/mod.rs index 25df78c870a..2d1d710ef77 100644 --- a/assembly/src/assembler/mod.rs +++ b/assembly/src/assembler/mod.rs @@ -1,4 +1,5 @@ use alloc::{collections::BTreeMap, sync::Arc, vec::Vec}; +use core::str::FromStr; use basic_block_builder::BasicBlo...
10
9
1
[{"id": "G0", "claim": "The vendored_libraries field should be changed to a BTreeMap keyed by Library::root() so the assembler is guaranteed to keep a unique set of libraries.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "To keep naming consistent, vend...
null
0xMiden__miden-vm__1703
0xMiden/miden-vm
1,703
defect
e64549c561dcd187abccc650eb381892a2f6b64a
f49818bf8496a716c775d1ad987529b794dafd79
feat: remove `FALCON_SIG_TO_STACK` event
Supersedes #1647 The issue with #1647 is that we still don't package the event handlers with the library. Hence, users still cannot define event handlers with their libraries, since they won't be able to ship them e.g. to some delegated prover. This PR then applies [this suggestion](https://github.com/0xPolygonM...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c638641427c..9051ead220a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Fix docs on the layout of the auxiliary segment trace (#1694). - [BREAKING] Updated Winterfell dependency to v0.12 (#1658). - Update recursive verifier to use `HORNERBASE` (#1665)....
9
9
1
[{"id": "G0", "claim": "The verify docstring wrongly lists [SIG] as an advice-stack output although the procedure consumes the signature, so the output advice stack should be empty.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The signature shou...
null
0xMiden__miden-vm__1724
0xMiden/miden-vm
1,724
defect
81dc38f6437f3121a35cf7f48cae0c19f3cfc6ee
045bc0401daea75cd9db431e57473ff051c8913b
Add kernel procedures to public inputs
Closed #1708
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f9ee129cba..167007fbc22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 0.14.0 TBD +#### Enhancements + +- Add kernel procedures digests as public inputs to the recursive verifier (#1724). ## 0.13.1 (2025-03-21) - `stdlib` crate only diff --git a...
5
3
0
[{"id": "G0", "claim": "The three near-identical stark_verifier_e2f4 tests in stdlib/tests/crypto/stark/mod.rs could be combined into a single rstest-parameterized test with cases for no kernel, an odd number of kernel procedures, and an even number of kernel procedures.", "category": "testing", "verdict": "supported",...
null
0xMiden__miden-vm__1728
0xMiden/miden-vm
1,728
defect
c93c2c473c04d3bee70429481f36740860bb8048
916b79d88b0e8903def3cc4423eea063b26bd1ba
refactor: make debug mode the default in the CLI
Closes #1725: - Changed debug mode to be enabled by default in CLI commands - Added --release flag to disable debug mode (replaces --debug flag) - Updated affected CLI commands (run.rs and prove.rs) - Added entry to CHANGELOG.md All tests and linting checks pass successfully.
diff --git a/CHANGELOG.md b/CHANGELOG.md index c33fa17799..a709c8548c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -197,6 +197,7 @@ - The `Module::parse_file` and `Module::parse_str` functions have been removed in favor of calling `Module::parser` and then using the `ModuleParser` methods. - The `Compile` trait no...
5
5
3
[{"id": "G0", "claim": "Remove the spurious \"## Unreleased\" section the pull request appended to the bottom of CHANGELOG.md, which contains literal \"// ... existing code ...\" placeholder lines.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Ap...
null
0xMiden__miden-vm__1753
0xMiden/miden-vm
1,753
defect
303e2c11575b24adc5d446f15c737bbb0358d0bb
608108c7b271d0de98e115179f6f55b783a464aa
Fix `ProcessState::get_stack_state()`
Closes #1744
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c2f4b5820..7879772116 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ - Remove `FALCON_SIG_TO_STACK` event (#1703). - Prevent `U64Div` event from crashing processor (#1710). - [BREAKING] Improve processor errors for memory and calls (#1717) +- `ProcessSt...
21
15
1
[{"id": "G0", "claim": "It is not clear why the stack needs to be made context-aware; Stack.active_depth may already contain this information.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "OverflowTable::save_current_state() could copy over only the eleme...
null
0xMiden__miden-vm__1761
0xMiden/miden-vm
1,761
defect
97041e9b8a2f9ee2d3b897242f9d804f6ac77316
5cfb229f8d5d1bdaede25cc89cb5683f18888e8a
`ExecutionOptions::with_debugging()` now takes a boolean parameter
This PR provides 2 minor improvements to testing: - Adds a `build_debug_test!` in the standard library such that simply changing from `build_test!()` to `build_debug_test!()` now properly makes all `debug.*` statements work. - `test_utils::build_debug_test!()` doesn't add the standard library to `Test.libraries`,...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ea9437914a..24ebd007bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ - Add kernel procedures digests as public inputs to the recursive verifier (#1724). +#### Changes +- [BREAKING] `ExecutionOptions::with_debugging()` now takes a boolean parameter (#176...
2
2
0
[{"id": "G0", "claim": "The `--no-fail-fast` flag on the `test` target should be controlled via a `nextest` profile instead of being hardcoded in the Makefile.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A short comment should be added documenting the...
null
0xMiden__miden-vm__1810
0xMiden/miden-vm
1,810
defect
8ecd437d219828f1af25a4b00d00423fc5e3dc20
f96e2144011e28efc2caf84f5fdc3652e13ce489
Simplify auxiliary randomness generation
## Describe your changes This has the advantage of reducing the number of squeezes needed of the random oracle to generate the aux randomness to just one. This means that the only place where there is a complex squeezing/Duplex logic is in the query generation procedure. This PR also includes testing to make sure...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ebc565f1833..3ccc1641e34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 0.15.0 (TBD) +#### Enhancements + +- Simplify and optimize the recursive verifier (#1801). ## 0.14.0 (2025-05-07) diff --git a/Cargo.lock b/Cargo.lock index 32edff37d26..068a...
2
1
0
[{"id": "G0", "claim": "The aux randomness derivation should perhaps live in Winterfell, where the default implementation should check the batching method and draw the randomness accordingly (i.e. this logic for Horner batching), rather than being defined here.", "category": "design", "verdict": "uncertain", "priority"...
null
0xMiden__miden-vm__1828
0xMiden/miden-vm
1,828
defect
f03e7052de134d757e485ddfbfcc3dc3e56f5605
5252e99d967002a8acf6b702ac693922a19ae358
Add `debug.stack_adv` and `debug.stack_adv.<n>` to help debug the advice stack
Fixes #1772 This PR adds a new decorator `debug.stack_adv` and `debug.stack_adv.<n>` to help debug the advice stack, respectively by printing the top element or the top n elements.
diff --git a/assembly/src/ast/instruction/debug.rs b/assembly/src/ast/instruction/debug.rs index 4b948b88d40..b04544fef18 100644 --- a/assembly/src/ast/instruction/debug.rs +++ b/assembly/src/ast/instruction/debug.rs @@ -15,6 +15,7 @@ pub enum DebugOptions { LocalInterval(ImmU16, ImmU16), LocalRangeFrom(ImmU1...
7
5
2
[{"id": "G0", "claim": "With no size specified, `debug.adv_stack` should print the entire advice stack instead of only the top item, so that there is a way to print everything (e.g. by making `AdviceProvider::peek_stack` take an optional length and return all the items).", "category": "design", "verdict": "supported", ...
null
0xMiden__miden-vm__1862
0xMiden/miden-vm
1,862
defect
34f195de2bba4a3250a6f8b23c19e7a22d6648a5
dae1dae6af1b2beab13a000ade549e68cb885e0a
Add MASM syntax to define Advice Map data
Fixes #1736. This PR adds new syntax to MASM in order to allow the definition of Advice Map data that the program expects to be populated by the host before execution. The tentative syntax is: - Without an explicit key (`A` below), which should be the most commonly used. In this case the key of the map is derive...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1acca77abb2..576150898aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ - Add support for setting debugger breakpoints via `breakpoint` instruction (#1860) - Improve error messages for some procedure locals-related errors (#1863) - Add range checks to th...
12
10
0
[{"id": "G0", "claim": "The code should check that an advice map key is actually a hash of its value.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "AdviceMap::insert's behavior is unusual; it should follow the conventional insert-and-return-previou...
null
0xMiden__miden-vm__1906
0xMiden/miden-vm
1,906
defect
1eaecf59bfb3d6f48bb5a0103d5eac17214ef59f
9001f5c4172d8f01e4673ce0ec3b286b39dcbe9a
chore: refactor `AdviceProvider` into a struct (#1904)
## Describe your changes Fixes #1904 ## Checklist before requesting a review - Repo forked and branch created from `next` according to naming convention. - Commit messages and codestyle follow [conventions](./CONTRIBUTING.md). - Commits are [signed](https://docs.github.com/en/authentication/managing-commit-sig...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e91f22638f..7625bb842f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Uniform chiplet bus message flag encoding (#1887). - [BREAKING] Updated dependencies Winterfell to v0.13 and Crypto to v0.15 (#1896). - Fixed instructions with errors print without q...
2
1
0
[{"id": "G0", "claim": "Remove the `get_leaf_depth` method from the new `AdviceProvider` struct while refactoring it (tracked in #1905).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the `AdviceMap` struct from `miden-core` instead of the local `Sim...
null
0xMiden__miden-vm__1908
0xMiden/miden-vm
1,908
defect
e20651ebcb8559020834ca35cd0c6bffd494469c
84ac3f1a9175e5d5b2c2953446abd0a9e34da981
Split `AdviceProvider`-related errors into new `AdviceError` struct
Fixed #1907 ## Describe your changes - Move `AdviceProvider`-related errors from `ExecutionError` to `AdviceError` and implement conversion with `ErrorContext` - Include `ErrorContext` for more `AdviceError` paths ## Checklist before requesting a review - Repo forked and branch created from `next` accordi...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b3ffda125d..7c75fe98b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - [BREAKING] Convert `AdviceProvider` into a struct ([#1904](https://github.com/0xMiden/miden-vm/issues/1904), [#1905](https://github.com/0xMiden/miden-vm/issues/1905)) - [BREAKING] `Ho...
2
1
0
[{"id": "G0", "claim": "The StackReadFailed diagnostic should read \"advice stack read failed\" instead of \"stack read failed\" so it is clear to anyone which stack is meant.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Once the advice provider is mov...
null
0xMiden__miden-vm__1913
0xMiden/miden-vm
1,913
defect
e40c2aca66f5a7a140f184d75fb48f706acbf414
7a55e1ec8affadd99ee97bef2e1bc394f79fbb6f
`ProcessState` returns `MemoryError` rather than `ExecutionError`
Fixes #1912 ## Describe your changes - Change error type of memory-related functions in `ProcessState`. - Add `#[from]` to transparent `ExecutionError` cases to avoid `map_err(|_| ExecutionError::SomeErr)` ## Checklist before requesting a review - Repo forked and branch created from `next` according to nam...
diff --git a/CHANGELOG.md b/CHANGELOG.md index faab051a95..a4aebe1a75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - Fixed instructions with errors print without quotes (#1882). - [BREAKING] Convert `AdviceProvider` into a struct ([#1904](https://github.com/0xMiden/miden-vm/issues/1904), [#1905](htt...
4
4
0
[{"id": "G0", "claim": "The pull request should use `#[from]` consistently with the codebase's existing approach to error wrapping rather than adding it only here.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Before merging, the contributors should rea...
null
0xMiden__miden-vm__193
0xMiden/miden-vm
193
defect
4d5ef6f989398711123edc4383a9fa46cbd00286
3bbaa456a03d366186108d6c760b07bcf9c5f335
Add procedure to clean up stack overflow table
Partly addresses #134. Add a procedure to stdlib to remove elements in the stack overflow table to clean up at the end of program completion. It's kept separate for now and not added to the assembler to include to all programs as suggested by @bobbinth.
diff --git a/miden/tests/integration/stdlib/mod.rs b/miden/tests/integration/stdlib/mod.rs index 6ccb1315526..8d930ae561d 100644 --- a/miden/tests/integration/stdlib/mod.rs +++ b/miden/tests/integration/stdlib/mod.rs @@ -2,3 +2,4 @@ use crate::build_test; mod crypto; mod math; +mod sys; diff --git a/miden/tests/int...
5
4
0
[{"id": "G0", "claim": "Stack depth can never drop below 16, so `push.16 u32gt.unsafe` (6 VM cycles) can be replaced with the cheaper `neq.16` (2 VM cycles) in both depth checks.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The body of stack_clean...
null
0xMiden__miden-vm__1935
0xMiden/miden-vm
1,935
defect
dd82766268fc8161396b51be32335c58242ee0c2
5ac61c2a2796f8e09966c79287d484bda856932a
Clean up iNTT decorator code
## Describe your changes Closes #1875 ## Checklist before requesting a review - Repo forked and branch created from `next` according to naming convention. - Commit messages and codestyle follow [conventions](./CONTRIBUTING.md). - Commits are [signed](https://docs.github.com/en/authentication/managing-commit-sign...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e7d8ecbd4a..2c44fc7ccd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,8 @@ - [BREAKING] Removed `Library::from_dir` in favor of `Assembler::assemble_library_from_dir` ([#1921](https://github.com/0xMiden/miden-vm/pull/1921)) - [BREAKING] Removed `KernelLibrar...
1
1
0
[{"id": "G0", "claim": "The deleted ext2fri module is dead code that should be removed, including the still-present import of `std::crypto::fri::ext2fri` in fri/helper.masm.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
0xMiden__miden-vm__1953
0xMiden/miden-vm
1,953
defect
fd8fd04c0e43706492fd33532a0b201d456039e2
f42502a89748cbb13e9c691a5aa8049b68c7957e
chore(processor): load `MastForest::advice_map` data lazily (#1949)
Previously, the processor would load at initialization the advice maps of all `MastForest`s stored in the `Host`. This would not be feasible in the long term when a program would need to call into virtually any contract on-chain. In this PR, we make the `AdviceProvider` responsible for loading additional `AdviceMap...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 237ad54678..3234ed6bf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ - [BREAKING] Move `AdviceProvider` from `Host` to `ProcessState` ([#1923](https://github.com/0xMiden/miden-vm/issues/1923))) - Remove decorator for interpolating polynomials over degree...
10
10
1
[{"id": "G0", "claim": "The PR should not add a `mast_forests()` method to the host interface, since the host would have to keep all MAST forests in memory; instead the VM should register each MAST forest it loads with the advice provider (e.g. via an `add_mast_forest()` method), which then lazily merges a forest's adv...
null
0xMiden__miden-vm__1996
0xMiden/miden-vm
1,996
defect
6282ce1b159fe4c7952d981a5b937f49fa1a8bff
a76a47cdbaba5f4ce7b2d10e2e25b4dcfd546257
feat(stdlib): init word module
## Describe your changes This PR adds a new module to the Miden standard library: `std::word`, containing the following exported procedures: - `word::reverse` - `word::eqz` - `word::gt` - `word::gte` - `word::lt` - `word::lte` - `word::eq` - `word::test_eq` Closes #1928. ## Checklist before requesting ...
diff --git a/stdlib/asm/utils.masm b/stdlib/asm/utils.masm deleted file mode 100644 index 39709b5b16..0000000000 --- a/stdlib/asm/utils.masm +++ /dev/null @@ -1,15 +0,0 @@ -#! Returns a boolean indicating whether the input word is an empty word. -#! -#! Inputs: [INPUT_WORD] -#! Outputs: [is_empty_word, INPUT_WORD] -#! ...
17
15
3
[{"id": "G0", "claim": "Cycle counts should be added to the doc comments of the other procedures in the new word module.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For completeness, gte and lte procedures should also be added to the word modul...
null
0xMiden__miden-vm__2033
0xMiden/miden-vm
2,033
defect
e53a507754a22533f3c1c7c0270cbf656e88fd27
756e5571751d253316a134fb6419e2e46d6a58da
draft: handle `Sync` requirements around `dyn SourceManager` for multithreaded executors
## Describe your changes The current approach is making the `Sync` bound conditional on the `target_arch`, but it has implications in `miden-base`, i.e. `impl DataStore` is captured in closure scope and hence also needs to have `Sync`. The next steps: Attempt to use a generic and see if this fares any better. ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index da27633b9b..a5ea65d507 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ - Move `fn with_source_manager` from `Process` to the `host` [#2019](https://github.com/0xMiden/miden-vm/pull/2019). - Move the `SourceManager` from the processor to the host [#2019](ht...
7
6
2
[{"id": "G0", "claim": "The doc comment on the future-alias trait inaccurately describes how the Send bounds are gated, naming `wasm32-unknown-unknown` even though the gate applies to other wasm targets too and later no longer matching the `std`-feature gate.", "category": "documentation", "verdict": "supported", "prio...
null
0xMiden__miden-vm__2038
0xMiden/miden-vm
2,038
defect
3407a929691aca7c999cd55592f2b65992c25a24
20dfdcee5fbc3b01f131878806814312e685b9fe
Shorten arithmetic_circuit_eval to circuit_eval
## Describe your changes Closes #2036 ## Checklist before requesting a review - Repo forked and branch created from `next` according to naming convention. - Commit messages and codestyle follow [conventions](./CONTRIBUTING.md). - Commits are [signed](https://docs.github.com/en/authentication/managing-commit-s...
diff --git a/assembly-syntax/src/ast/instruction/mod.rs b/assembly-syntax/src/ast/instruction/mod.rs index 04c1983a56..d8683cc748 100644 --- a/assembly-syntax/src/ast/instruction/mod.rs +++ b/assembly-syntax/src/ast/instruction/mod.rs @@ -256,7 +256,7 @@ pub enum Instruction { FriExt2Fold4, HornerBase, H...
2
2
0
[{"id": "G0", "claim": "The test file stdlib/tests/crypto/arithmetic_circuit_eval.rs should also be renamed to match the shortened instruction name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new instruction should be named eval_circuit ...
null
0xMiden__miden-vm__2078
0xMiden/miden-vm
2,078
defect
db3660d3508df86d015bde968a2459a8b258f081
9f74109397a29b415d26b6bcb4ffbef4ae1bee89
fix: report *all* erroneous values on a NotU32Values
Closes #1327
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4067ab1e6bf..12e057000d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Removed unused `PushU8List`, `PushU16List`, `PushU32List` and `PushFeltList` instructions ([#2057](https://github.com/0xMiden/miden-vm/pull/2057)). - Removed dedicated `PushU8`, `...
10
6
1
[{"id": "G0", "claim": "The PR should replace all uses of `NotU32Value` with `NotU32Values` across all u32 operations, not just the ones it touched.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new error loses which of the operands was invalid...
null
0xMiden__miden-vm__2114
0xMiden/miden-vm
2,114
defect
c9c3c5b8c4138d9c09a850984f8fe3260f03c541
f25328401fdb26aedeaacc460e1a5981edcc2be4
sorted_array/map fast lookup
## Describe your changes ## Checklist before requesting a review - Repo forked and branch created from `next` according to naming convention. - Commit messages and codestyle follow [conventions](./CONTRIBUTING.md). - Commits are [signed](https://docs.github.com/en/authentication/managing-commit-signature-verifi...
diff --git a/assembly-syntax/src/ast/instruction/advice.rs b/assembly-syntax/src/ast/instruction/advice.rs index b626e321733..a91344265db 100644 --- a/assembly-syntax/src/ast/instruction/advice.rs +++ b/assembly-syntax/src/ast/instruction/advice.rs @@ -15,6 +15,8 @@ pub enum SystemEventNode { PushU64Div, Push...
28
24
2
[{"id": "G0", "claim": "The MASM procedures do not yet document cycle counts for the instructions, which the author acknowledges still need to be added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test added in the sorted map test file is n...
null
0xMiden__miden-vm__2196
0xMiden/miden-vm
2,196
defect
2e8ad9db6b9482936660a6cdfcb8c2affc2fd8ad
459415d0b27811ed34c083b6a7fb46ef8d6c904c
feat: allow parsing odd-length representations of hex numbers
Closes #1302.
diff --git a/CHANGELOG.md b/CHANGELOG.md index f024dfdeb07..417cc3775c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ - Allowed references between constants without requiring them to be declared in a specific order ([#2120](https://github.com/0xMiden/miden-vm/pull/2120)). - Introduced new `pub proc` ...
1
1
0
[{"id": "G0", "claim": "The padded hex_digits binding should use `alloc::borrow::Cow<'input, str>` so that even-length inputs (the common case) are not needlessly allocated via `format!`/`to_string()`.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
0xMiden__miden-vm__2218
0xMiden/miden-vm
2,218
defect
64148b851a5962c837f11b6a26ff04d8a3693a1c
ddbf9ba90607c11b265e28c96894c2cae3fab3b6
fix: Make `DefaultDebugHandler` consistent
@Qyriad discovered in #2205 that the current debugging commands did not return the advice in the correct order. Upon further investigation, it turns out there were many issues with the current implementation which were hard to test for since the information was logged via `println`. The issues include: - `debug.loc...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b451730e8..f3cb4d283a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ #### Changes - [BREAKING] Incremented MSRV to 1.90. +- [BREAKING] Fix inconsistencies in debugging instructions ([2205](https://github.com/0xMiden/miden-vm/pull/)). ## 0.18.0 (2025-0...
8
5
1
[{"id": "G0", "claim": "The test assertion messages misspell 'output' as 'ouptut' and should be corrected.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment 'print the main part of the memory (wihtout the last value)' misspells 'without' an...
null
0xMiden__miden-vm__2247
0xMiden/miden-vm
2,247
defect
55f0a535f22bdb667aafdf89859b893cea2ede00
eb51bf65098b32d722eb4114dffc471f09997359
fix: after_exit executed incorrectly in External nodes
Modified continuation_stack.rs: Added FinishExternal((MastNodeId, Arc<MastForest>)) continuation type to store both node ID and forest reference for after_exit decorator execution. Fixes #2005
diff --git a/CHANGELOG.md b/CHANGELOG.md index b486f2da1dd..ab0111a00de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - Fixed mismatched Push expectations in decoder syscall_block test ([#2207](https://github.com/0xMiden/miden-vm/pull/2207)) - [BREAKING] `Memory::read_element()` now requires `&self` ...
1
1
1
[{"id": "G0", "claim": "The FinishExternal continuation is pushed in the wrong order: pushed after push_start_node, the next continuation popped would be FinishExternal, so the external node's after_exit decorators would run before the resolved external node executes; it should be pushed first (without current_forest),...
null
0xMiden__miden-vm__2268
0xMiden/miden-vm
2,268
defect
b97fb077263d375625eea284f4f222776adef287
9ad96d8ff3d38dd5d8cb6d4fd0c25dfd8f9562bc
feat: Allow searching for a partial key in `sorted_array`
## Describe your changes Implements `sorted_array::find_half_key_value` procedure that works similar to `find_key_value` except it searches only for a match on half the `KEY` in the array. This is useful in the context of named storage slots https://github.com/0xMiden/miden-base/issues/1724#issuecomment-33801520...
diff --git a/stdlib/asm/collections/sorted_array.masm b/stdlib/asm/collections/sorted_array.masm index 6ad5a955a58..fc929ded58e 100644 --- a/stdlib/asm/collections/sorted_array.masm +++ b/stdlib/asm/collections/sorted_array.masm @@ -31,8 +31,10 @@ export.find_word if.true # assert `start_ptr <= maybe_va...
8
8
1
[{"id": "G0", "claim": "Internal procedures such as `load_key`, which is defined as `proc` rather than `export`, appear to be included in the generated docs, and it is unclear whether that is intended.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
0xMiden__miden-vm__2328
0xMiden/miden-vm
2,328
defect
0344fcf67f3550071464d7a97f3cdae9aa5968b0
b88e314838bf54aa6df186622c9e79432149541b
Reduce the degree of HORNERBASE constraints
## Describe your changes Moves it from the very high degree bucket in order to vacate it for the op in #2322 The general idea is to use two extra helper registers in order to reduce the degree of constraints. In addition, we switch from doing a memory word read per invocation of HORNERBASE to two element reads per...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2020d9d47e..73928acf12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Made `miden-vm analyze` output analysis even if execution ultimately errored. ([#2204](https://github.com/0xMiden/miden-vm/pull/2204)). - Allow `CALL` and `DYNCALL` from a syscall con...
13
13
4
[{"id": "G0", "claim": "The separate LaTeX blocks for the HORNERBASE stack-transition constraints should be combined into a single LaTeX block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicated `LOGPRECOMPILE` row still listed at opcod...
null
0xMiden__miden-vm__2350
0xMiden/miden-vm
2,350
defect
ae95a91fc8a211a0b47423b31affec69d4240169
c6730abb6b94cdf3e60662e118734d2c8ff8b3ee
fix(masm): align locaddr when proc locals not multiple of 4
## Describe your changes Fixes #2348
diff --git a/crates/assembly/src/instruction/mem_ops.rs b/crates/assembly/src/instruction/mem_ops.rs index 133219ccaf..ec526a1af1 100644 --- a/crates/assembly/src/instruction/mem_ops.rs +++ b/crates/assembly/src/instruction/mem_ops.rs @@ -2,7 +2,7 @@ use miden_assembly_syntax::{ debuginfo::{SourceSpan, Spanned}, ...
3
1
1
[{"id": "G0", "claim": "The word-alignment of procedure locals should be enforced by the code that manages the fmp value (e.g. exec/dynexec) rather than by the assembler, since nothing prevents hand-constructed MAST from circumventing an assembler-side guarantee.", "category": "design", "verdict": "opposed", "priority"...
null
0xMiden__miden-vm__2352
0xMiden/miden-vm
2,352
defect
ae95a91fc8a211a0b47423b31affec69d4240169
a3c60522812390b75ca793759840f23298e9c13b
Implement `std::mem::memcopy_felts` procedure
This PR implements new `memcopy_felts` procedure for the `std::mem` module. It copies the provided number of `Felt`s from the read pointer to the write pointer. The stack transition looks like so: ``` Inputs: [n, read_ptr, write_ptr] Outputs: [] ``` Closes: #1983.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7459b0f383..3d1d6d86e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ #### Enhancements +- Added new `memcopy_felts` procedure for the `std::mem` module. ([#2352](https://github.com/0xMiden/miden-vm/pull/2352)). + #### Changes - Added missing impleme...
4
4
1
[{"id": "G0", "claim": "The new memcopy_felts procedure should be declared with the new `pub proc` syntax so the file keeps compiling once PR #2330 lands.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment over the counter-update line sh...
null
0xMiden__miden-vm__2366
0xMiden/miden-vm
2,366
defect
1d0955158c6541f7c7aa1d91be271d8c5e1826eb
4f34ae8548e07bcaeb499ce7d4cf7b1e83d8c0a2
feat: consolidate decorator information into a single DebugInfo
This PR witnesses that: - we can make sure that `DebugInfo` is always present in-memory in the `MastForest`, the 1+3+2+2 concerned vectors will just be empty in this case, which obviates the `Option` mentioned in #1776 and greatly simplifies runtime behavior, - we will just avoid serializing the decorator information...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a03e21dd26..ea1bb3a3df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - [BREAKING] Make argument order of `Assembler::compile_and_statically_link_from_dir` consistent with `Assembler::assemble_library_from_dir` - [BREAKING] Renamed `Library::get_procedure...
9
8
0
[{"id": "G0", "claim": "Make the DebugInfo fields private to hide the struct's internal implementation details and expose the relevant methods instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In SplitNode's Linked branch, read decorators through a...
null
0xMiden__miden-vm__2381
0xMiden/miden-vm
2,381
defect
f18bb4497d1c0f30a4f2d691ea2332d150ec4c9a
27952b2a2abe7ebbc8ce9a84c7426defe642135d
Standardize hash function naming and add missing functions
## Describe your changes Standardize hash function naming across all hash modules as discussed in #2364. ### Changes: - Rename `hash_2to1` → `merge`, `hash_1to1` → `hash` across blake3, keccak256, sha256, and rpo modules - Add `hash` and `merge` functions to RPO module using native `hash` and `hmerge`...
diff --git a/stdlib/asm/crypto/hashes/blake3.masm b/stdlib/asm/crypto/hashes/blake3.masm index 233526d93e2..0c40143e699 100644 --- a/stdlib/asm/crypto/hashes/blake3.masm +++ b/stdlib/asm/crypto/hashes/blake3.masm @@ -748,7 +748,7 @@ proc compress exec.round end -#! Blake3 2-to-1 hash function, which takes 64 -b...
3
2
0
[{"id": "G0", "claim": "The `_internal` indirection procedures and the deprecated backward-compatibility wrappers (e.g. blake3 `merge_internal`/`hash_internal` and the `hash_2to1`/`hash_1to1` wrappers) are unnecessary and should be removed, with the code moved into `merge`/`hash` directly.", "category": "maintainabilit...
null
0xMiden__miden-vm__2387
0xMiden/miden-vm
2,387
defect
da562cb8cd8a7b52718d2698a0a690d400021ed9
a3949978ef4ec9e40b1395dff806f36036903b12
Implement `peek` for `std::collections::smt`
This PR implements new `peek` procedure for the `std::collections::smt` module. It works similar to the `smt::get` procedure, but instead of pushing the resulting value onto the operand stack, it is pushed to the advice stack, leaving the operand stack unchanged. Stack transition for this procedure looks like so:...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0650d0a7c4..98f816b583 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ #### Enhancements - Added new `adv.push_mapval_count` instruction ([#2349](https://github.com/0xMiden/miden-vm/pull/2349)). -- Added new `memcopy_elements` procedure for the `std::mem` ...
2
2
0
[{"id": "G0", "claim": "The new `# Constants` section header comment in stdlib/asm/collections/smt.masm should be capitalized, as is usually done.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The helper should be named `expect_value_from_peek`...
null
0xMiden__miden-vm__2395
0xMiden/miden-vm
2,395
defect
723d2a4fc6415b1ee2e3ba734391e8662d9956b8
bdacba40b9c4d138f69d569944e22f7879f967ea
Implement `hash_elements_with_padding` for `std::crypto::hashes::rpo`
This PR does a refactoring of the `std::crypto::hashes::rpo` module: - `prepare_hasher_state` and `hash_memory_with_state` procedures changed to be private - `hash_elements` procedure was renamed to the `hash_elements_wo_padding` (name is still questionable) - new `hash_elements_w_padding` procedure was created. ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c0f437774..0e256ec1d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Added new `adv.push_mapval_count` instruction ([#2349](https://github.com/0xMiden/miden-vm/pull/2349)). - Added new `memcopy_elements` procedure for the `std::mem` module ([#2352](https...
6
6
1
[{"id": "G0", "claim": "The state-taking procedure should be kept public (`hash_memory_with_state`), since letting the user control the sponge's initial state is useful (e.g. custom domain separation), so removing it from the public API may not be an improvement.", "category": "design", "verdict": "supported", "priorit...
null
0xMiden__miden-vm__2398
0xMiden/miden-vm
2,398
defect
723d2a4fc6415b1ee2e3ba734391e8662d9956b8
23300c295be9af891d21a47243a6be601d09f057
Implement padding option for `adv.push_mapvaln`
This PR expands the capabilities of the `adv.push_mapvaln` instruction by adding an option to use padding as an immediate value: `adv.push_mapvaln.padding`. If the padding value is provided, the list of elements obtained from the advice map got padded with values so that its length will become a next multiple of the...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c0f437774..4b40d2116c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Added new `adv.push_mapval_count` instruction ([#2349](https://github.com/0xMiden/miden-vm/pull/2349)). - Added new `memcopy_elements` procedure for the `std::mem` module ([#2352](https...
6
6
3
[{"id": "G0", "claim": "The documentation's phrase \"where `n` is the number of elements pushed\" is misleading: n is the number of elements in the advice-map value, which can differ from the number of elements pushed onto the advice stack.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope...
null
0xMiden__miden-vm__2419
0xMiden/miden-vm
2,419
defect
190480c5b441af5b3aeab1aa4085e0d6424924b3
25451390770df12631b6b0fc35bbd5521df98391
refactor: remove err_code field from ExecutionError::NotU32Values
Removes the undocumented `err_code` field from `NotU32Values` error variant and the `op_idx` parameter from `op_u32sub` and `execute_sync_op` functions. With rich diagnostics now available, outputting an operation index is no longer needed for debugging purposes. Closes #2386 ## Checklist before reques...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 74ccf9e8df7..2f7a9ca689e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ - Refactor and remove tech debt from parallel trace generation ([#2382](https://github.com/0xMiden/miden-vm/pull/2382)) - [BREAKING] Added `kind` field to `Package` struct to indicate...
3
3
0
[{"id": "G0", "claim": "The CHANGELOG entry the PR adds should be placed under the upcoming 0.21.0 section (\"next\") rather than where it currently sits.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In op_u32sub the range-check call should use ...
null
0xMiden__miden-vm__2424
0xMiden/miden-vm
2,424
defect
a6dbe2658439dcc746155dc77acf0373f194427d
4305fc6de16f76c3849acdd8976c7c442d53a792
refactor: normalize naming of ECDSA verify procedures
Rename ECDSA K256 verification procedures for consistency with EdDSA naming patterns and issue #2413: - `verify_ecdsa_k256_keccak` → `verify` (high-level wrapper) - `verify` → `verify_prehash` (manual prehash verification) - `verify_impl` → `verify_prehash_impl` (internal implementation) Added docstring note to...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 74ccf9e8df..6af24ef3bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ - Refactor and remove tech debt from parallel trace generation ([#2382](https://github.com/0xMiden/miden-vm/pull/2382)) - [BREAKING] Added `kind` field to `Package` struct to indicate p...
5
3
0
[{"id": "G0", "claim": "The DSA user-docs file is missing a section documenting the EdDSA signature scheme.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "EdDSA's low-level verify should be renamed from `verify_with_unchecked_k_digest` to `preha...
null
0xMiden__miden-vm__2458
0xMiden/miden-vm
2,458
defect
348b98a272783d1e64d54be9881bd58c1073dd1b
7a440e0304d87b666de8be4edd81e7b46454b2fb
refactor: move and rename byte conversion utilities to miden-core
## Describe your changes - Rename `bytes_to_packed_u32_felts` to `bytes_to_packed_u32_elements` - Add inverse function `packed_u32_elements_to_bytes` - Move functions from `miden-core-lib` handlers to `miden-core` utils - Re-export from handlers for backwards compatibility Closes #2452 ## Checklist before r...
diff --git a/core/src/utils/mod.rs b/core/src/utils/mod.rs index 922e0dcd3f6..1a99f13b7ef 100644 --- a/core/src/utils/mod.rs +++ b/core/src/utils/mod.rs @@ -143,6 +143,76 @@ fn debug_assert_is_checked() { debug_assert!(false); } +// BYTE CONVERSIONS +// ==========================================================...
3
3
1
[{"id": "G0", "claim": "Add a proptest that ensures the roundtrip works: generate a Vec<Felt>, run it through packed_u32_elements_to_bytes to get out_bytes, run out_bytes back through bytes_to_packed_u32_elements, and assert the result equals the original vector.", "category": "testing", "verdict": "supported", "priori...
null
0xMiden__miden-vm__2475
0xMiden/miden-vm
2,475
defect
f9fb1be9e03d7db7b0f5e2c9c066ff8c7ae009b4
55c439b7217a34155b09afa0deaa5d3cf01198d3
Make cli use the fast processor for trace generation (1/3)
Work towards #2406 Makes the CLI use the `FastProcessor` instead of `Process`.
diff --git a/crates/test-utils/src/lib.rs b/crates/test-utils/src/lib.rs index 924df77673b..cd12d7ca3ba 100644 --- a/crates/test-utils/src/lib.rs +++ b/crates/test-utils/src/lib.rs @@ -576,10 +576,10 @@ impl Test { let stack_inputs: Vec<Felt> = self.stack_inputs.clone().into_iter().rev().collect(); le...
1
1
0
[{"id": "G0", "claim": "The processor selection condition is easier to parse as `if params.release` with the fast path first and the debug path second, so the branches should be swapped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
0xMiden__miden-vm__251
0xMiden/miden-vm
251
defect
764684065355e09f9d2047b5e61c8670832fb1a4
6805a7cc7db8912ef26d4c030b2778526e4fe2a9
feat(processor): add operation to VmState
Addresses #235. Adds an `operations` vector to `Decoder` struct and use it to track operation at each VmState. This vector is only populated when programs are executed via `execute_iter()` function.
diff --git a/miden/tests/integration/exec_iters.rs b/miden/tests/integration/exec_iters.rs index 646e608b98e..0a3700c1ff3 100644 --- a/miden/tests/integration/exec_iters.rs +++ b/miden/tests/integration/exec_iters.rs @@ -1,6 +1,6 @@ use super::build_test; use processor::VmState; -use vm_core::{utils::ToElements, Felt...
4
4
0
[{"id": "G0", "claim": "Rename the `keep_overflow_trace` parameter of `Process::initialize` to something like `in_debug_mode` or `in_debug`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Rename the new Decoder field `debug` to something like `in_debug...
null
0xMiden__miden-vm__2529
0xMiden/miden-vm
2,529
defect
858f4cf58bab03d342ed2677fcc95ac755128dfe
a704496d0a1625ca998acd1e2373eb31b4013a0d
fix: bypass decorator retrieval in release mode
This replaces #2524. This fixes 4 issues in both legacy and fast processor, see individual commits: 1. when `in_debug_mode == false`, decorators should not be _accessed_, never mind executed, 2. when `strip_decorators` is false, the `DebugInfo` provided as replacement should not panic on access, 3. ~~adds a `--st...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ef4d8453714..76000d5d867 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 0.20.2 (TBD) +- Fix issue where decorator access was not bypassed properly in release mode ([#2529](https://github.com/0xMiden/miden-vm/pull/2529)). + ## 0.20.1 (2025-...
3
2
0
[{"id": "G0", "claim": "The strip-decorators CLI option (and the commit adding it) is not very meaningful in many cases since corelib is still loaded with decorators, and bobbinth questions adding it in prove.rs and run.rs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
0xMiden__miden-vm__2537
0xMiden/miden-vm
2,537
defect
d72d043014b279634907e94d9ed3df7081f12d58
6e19dd6071bbeedd5bb87bb67446aa2b35c3af02
`FastProcessor` now returns an error when cycle count is exceeded
Closes #2535 As part of this change, we also added a new constructor `FastProcessor::new_with_options()`, which allows users to pass in a `ExecutionOptions`.
diff --git a/CHANGELOG.md b/CHANGELOG.md index cf04f9758ff..b84ca29182c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ #### Enhancements +#### Fixes + +- `FastProcessor` now correctly returns an error if the maximum number of cycles was exceeded during execution ([#2537](https://github.com/0xMiden/m...
5
2
0
[{"id": "G0", "claim": "The doc comment on the field that this PR turned into `options: ExecutionOptions` still reads 'Whether to enable debug statements and tracing.' and should be updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Not for t...
null
0xMiden__miden-vm__2583
0xMiden/miden-vm
2,583
defect
782c558da3decd1fb0896f5fd1252042317910c8
79efec018db662a58e8ed25f3c5774b2c8cb4558
feat(test-utils): add MaliciousAdviceHandler for testing MASM validation
Closes #2288
diff --git a/crates/lib/core/tests/collections/sorted_array.rs b/crates/lib/core/tests/collections/sorted_array.rs index cac29c10a16..fc3804a6f59 100644 --- a/crates/lib/core/tests/collections/sorted_array.rs +++ b/crates/lib/core/tests/collections/sorted_array.rs @@ -1,3 +1,6 @@ +use miden_core::EventName; +use miden_...
1
1
0
[{"id": "G0", "claim": "Instead of emitting an event to populate the advice stack, the test should just initialize the advice stack at the beginning with the malicious values it wants.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
0xMiden__miden-vm__2593
0xMiden/miden-vm
2,593
defect
a1f38fb3ff01495f6bae85cbfb2cea7e30f94205
4c320a0382a56ee9a76a80944de90fb89871bdaa
fix(assembly): u32wrapping_madd and u32wrapping_add3 return lo instead of hi
Both operations were using `[U32madd/U32add3, Drop]` which dropped the low part and kept the high part (carry). Wrapping semantics require returning the low part (result mod 2^32), so this changes to `[U32madd/U32add3, Swap, Drop]` to match other wrapping operations. Added tests for u32wrapping_madd and u32wrapping_...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1460be15b8..f8827f3299 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,12 @@ #### Fixes -- `FastProcessor` now correctly returns an error if the maximum number of cycles was exceeded during execution ([#2537](https://github.com/0xMiden/miden-vm/pull/2537)) --...
2
2
0
[{"id": "G0", "claim": "The sections of the new unit tests that use random values are redundant because proptest already covers those cases, and should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CHANGELOG entry for this fix should be...
null
0xMiden__miden-vm__2603
0xMiden/miden-vm
2,603
defect
0945c6df89f3623e7126b0863598789b1d932bc7
14552b5a8245190485db524d1d9a78e9055665db
refactor(processor): merge TestConsistencyHost and TestHost
## Describe your changes - Merge `TestConsistencyHost` and `TestHost` functionality into one host by extending `TestConsistencyHost` with event/debug/trace handlers. - Remove duplicate local `TestHost` implementations in integration/unit tests and reuse the unified host. - Re-export the unified host via `test_ut...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 384c8dd7cdf..d98ad06ca48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ - [BREAKING] Renamed `u32overflowing_mul` to `u32widening_mul`, `u32overflowing_madd` to `u32widening_madd`, and `math::u64::overflowing_mul` to `math::u64::widening_mul` ([#2584](http...
10
8
2
[{"id": "G0", "claim": "In on_event, the event ID should be read with unwrap() rather than unwrap_or(0), so an out-of-range stack item fails loudly instead of being silently recorded as event 0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The hos...
null
0xMiden__miden-vm__2625
0xMiden/miden-vm
2,625
defect
dd91b9fe899660a948a8ceab482d89219de7d2ad
a64f6021bdb3116da630af7e771a601c1f346fd0
refactor(processor): add FastProcessorBuilder with fluent API
## Summary - Added `FastProcessorBuilder` struct for fluent processor configuration - Added `FastProcessor::builder(stack_inputs)` entry point method - Builder methods: `with_advice()`, `with_options()`, `with_debugging()`, `with_tracing()`, `with_max_cycles()`, `build()` - Deprecated old constructors: `new()`, `ne...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 69fcf94741..85e6e88da2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ #### Changes +- Added `FastProcessorBuilder` and `FastProcessor::builder()` method for fluent processor configuration. Deprecated `FastProcessor::new()`, `new_with_advice_inputs()`, ...
2
2
1
[{"id": "G0", "claim": "Instead of introducing a separate FastProcessorBuilder, the fluent builder methods (with_advice, with_debugging, with_tracing) should be added directly to FastProcessor so the example reads FastProcessor::new(stack_inputs).with_advice(advice_inputs).with_debugging(true).with_tracing(true).", "ca...
null
0xMiden__miden-vm__2635
0xMiden/miden-vm
2,635
defect
b71a6ad596887578c71a700ec760dff927aff008
ab93261cbb6e68ed3f8c177f467ffe6bbf2a0e8b
Fix off-by-one error in cycle limit check
Closes #2632
diff --git a/CHANGELOG.md b/CHANGELOG.md index b37974266b..b0356ab194 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Added missing `as_canonical_u64()` method to `IntValue` in `miden-assembly-syntax`, fixing compilation errors in the generated grammar code ([#2589](https://github.com/0xMiden/miden-vm...
2
2
0
[{"id": "G0", "claim": "The new test's doc comment should also explain why 2018 Noop operations result in 2048 cycles (29 batches plus 28 RESPAN operations, plus BEGIN and END).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should use th...
null
0xMiden__miden-vm__268
0xMiden/miden-vm
268
defect
57e3e372ee95676c543efc5456ca5405529d0185
a881fcb118d4358807e406365f729594aec0789a
Implement trace generation for aux stack overflow column
This PR implements trace generation for auxiliary trace column representing the stack overflow table. - [x] Implement trace hints for the stack overflow table. - [x] Implement trace generation for the stack overflow table column. - [x] Add stack design docs to mdBook
diff --git a/core/src/lib.rs b/core/src/lib.rs index 6c08fbf358..bf18087977 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -91,9 +91,9 @@ pub const TRACE_WIDTH: usize = AUX_TABLE_OFFSET + AUX_TABLE_WIDTH; // AUXILIARY COLUMNS LAYOUT // ---------------------------------------------------------------------------...
10
8
0
[{"id": "G0", "claim": "The per-column overflow/p1 trace-building code could be abstracted into a reusable aux column builder since several columns now follow the same pattern.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment says 12 c...
null
0xMiden__miden-vm__275
0xMiden/miden-vm
275
defect
57e3e372ee95676c543efc5456ca5405529d0185
2f3477246bb60427a49837dc481fafa45dd94a3f
Create prover crate
This PR migrates prover code to an independent crate.
diff --git a/Cargo.toml b/Cargo.toml index 681a2819243..32cdca673e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ members = [ "examples", "miden", "processor", + "prover", "stdlib", "tools", "verifier" diff --git a/examples/src/lib.rs b/examples/src/lib.rs index e94c956bae7..fa9cf0a45f5 10...
1
1
0
[{"id": "G0", "claim": "The boilerplate '# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html' comment (and its blank line) in prover/Cargo.toml can probably be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
0xMiden__miden-vm__2776
0xMiden/miden-vm
2,776
defect
b99689b8047f8d6315338c36c18fc55ef32f833b
e93dab9f576bddbd55b37d781d5d82b599baf709
Add u128 divmod
## Describe your changes Closes #2760 ## Checklist before requesting a review - Repo forked and branch created from `next` according to naming convention. - Commit messages and codestyle follow [conventions](../CONTRIBUTING.md). - Commits are [signed](https://docs.github.com/en/authentication/managing-commit-...
diff --git a/CHANGELOG.md b/CHANGELOG.md index de799a861a1..2f8a2abaeaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Added optional tagging instrumentation for AIR constraints (test-only; enables stable ID tracking and OOD parity checks) ([#2713](https://github.com/0xMiden/miden-vm/pull/2713)). - ...
2
2
1
[{"id": "G0", "claim": "Align the div/mod/divmod doc comments in u128.masm to the MASM doc format used elsewhere in the file (Inputs/Outputs/Where), including an `Invocation: exec` line and a `Panics if` section for divide-by-zero.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intro...
null
0xMiden__miden-vm__2786
0xMiden/miden-vm
2,786
defect
b99689b8047f8d6315338c36c18fc55ef32f833b
d5e96fcdec4d3a4c2c888349847326821540afbd
Fix cryptostream bus messages
Fixes audit finding 52, > crypto_stream emits four word-level memory chiplet rows, but [BusColumnBuilder::get_requests_at](https://github.com/0xMiden/miden-vm/blob/089dc6a33cbb77dbbbaa7e424fd7cecd0fe7a9ca/processor/src/trace/chiplets/aux_trace/bus/mod.rs#L74-L145) has no OPCODE_CRYPTOSTREAM case and therefore emits ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index de799a861a..fdf7039b6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ #### Fixes - Fixed `Constant::PartialEq` to include `visibility` field in equality comparison, making it consistent with other exportable items (`Procedure`, `TypeAlias`, `EnumType`)....
1
1
0
[{"id": "G0", "claim": "The test should also assert the exact bus requests (addresses, labels, and word ordering) for crypto_stream, not just that the chiplets bus is balanced, so that swapped words or wrong src_ptr/dst_ptr would be caught.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "in...
null
0xMiden__miden-vm__2797
0xMiden/miden-vm
2,797
defect
b04c6ba6c678e2867e7e14c55d83e556e827773f
496c41a7ddf7e01a2e27deae0cc94449d0714df9
Introduce FastProcessor safe stack access methods
Introduces safe stack access methods that will never read outside the stack buffer for use by event handlers. Fixes audit issue 66: > A crafted program can deterministically panic the fast processor in release builds by triggering an out-of-bounds stack word read through a system event invoked via emit. This P...
diff --git a/CHANGELOG.md b/CHANGELOG.md index de799a861a1..334820559d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ #### Fixes - Fixed `Constant::PartialEq` to include `visibility` field in equality comparison, making it consistent with other exportable items (`Procedure`, `TypeAlias`, `EnumType`...
3
2
0
[{"id": "G0", "claim": "The CHANGELOG line this PR adds links to PR #2798 although this change is in #2797, so the link should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comments still describe overflow-table access altho...
null
0xMiden__miden-vm__2809
0xMiden/miden-vm
2,809
defect
f01ceacc1afa65e6d5863cc32308bd791362e260
fef06c3d75c25c2b77fbef3dac8c94a1dd5420de
`build_trace()` no longer allocates past a given maximum number of rows
This PR addresses audit finding 61, which discusses how an attacker can force a ~600GB allocation on the prover by sending a program with just `op_mrupdate`, due to incurring however many rows in the Hasher chiplet. The solution in this PR is against `next` instead of our audit branch, since we deviate slightly from...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a2178cf2b1a..5ef4217c804 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,10 +15,12 @@ - Added `math::u128` comparison (`lt`, `lte`, `gt`, `gte`), bitwise (`and`, `or`, `xor`, `not`), and shift (`shl`, `shr`, `rotl`, `rotr`) operations ([#2624](https://github.com/0xMid...
2
1
1
[{"id": "G0", "claim": "The max-trace-length check can still let the trace exceed the cap by one row: generate_core_trace_columns() always appends a HALT row, so when core_trace_contexts.len() * fragment_size == max_trace_len the `>` guard passes but the later push can exceed the limit and force a reallocation; the rev...
null
0xMiden__miden-vm__286
0xMiden/miden-vm
286
defect
9c8f59c23e20f7b323f626623622b41aa839557d
1b507c195c10e2739a6a405b8ecea55625e624ae
Add range checker auxiliary trace columns `q` and `p1`
This PR is a work in progress and not fully optimized or documented, but it presents a proposed approach for connecting co-processors to enable building execution traces for auxiliary columns requiring data from multiple processors. - refactors the processor to create the connectors structure - refactors range chec...
diff --git a/air/src/aux_table/memory/mod.rs b/air/src/aux_table/memory/mod.rs index f3756440f9a..ff71d731894 100644 --- a/air/src/aux_table/memory/mod.rs +++ b/air/src/aux_table/memory/mod.rs @@ -295,3 +295,31 @@ impl<E: FieldElement> EvaluationFrameExt<E> for &EvaluationFrame<E> { self.not_n0() * self.not_n1...
7
7
1
[{"id": "G0", "claim": "The logic for handling range checks should be encapsulated within RangeChecker itself (e.g. replace add_value with a single add_stack_check method called from u32_ops, replace add_lookups with add_mem_checks, add build_aux_columns to the range checker, and drop the connectors component) instead ...
null
0xMiden__miden-vm__2936
0xMiden/miden-vm
2,936
defect
c572918378fbea684939887fe1204df5e8e8622c
75b8a1025e697add4e23c16f261a66f315134e25
Add kernel support to test builders
This adds `kernel = ...` support to the test builder macros so kernel-backed tests can be written through the same helper API as other test cases. It removes repeated manual `kernel_source` setup from the syscall and caller tests, keeps the existing execution path unchanged, and makes these tests simpler and less err...
diff --git a/crates/test-utils/src/lib.rs b/crates/test-utils/src/lib.rs index af9b4710574..02ae3b8951b 100644 --- a/crates/test-utils/src/lib.rs +++ b/crates/test-utils/src/lib.rs @@ -221,6 +221,20 @@ impl Test { } } + /// Adds kernel source to this test so it is assembled and linked during compilat...
1
1
0
[{"id": "G0", "claim": "Avoid the repetitive `kernel = kernel_*` pattern in test setup (the reviewer asks that tests no longer repeat the kernel argument through the build macros).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
0xMiden__miden-vm__304
0xMiden/miden-vm
304
defect
bfd9a9c31db5204c7a71f2b4bf82182df62a6f74
9c686dc940115d8942bf7cd3452af5b3b0a0e968
Create AuxTableBus and build b_aux auxiliary trace column
This PR creates the b_aux auxiliary trace bus column for the aux table and adds memory lookups (hasher and bitwise lookups are left for a future PR). It includes the following changes: - `AuxTableBus` component is created and added to the `Process` struct, with memory lookups included from the stack and the Memo...
diff --git a/core/src/lib.rs b/core/src/lib.rs index a8ff934c3fd..14f3d261019 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -96,9 +96,9 @@ pub const TRACE_WIDTH: usize = AUX_TABLE_OFFSET + AUX_TABLE_WIDTH; // AUXILIARY COLUMNS LAYOUT // -------------------------------------------------------------------------...
8
8
2
[{"id": "G0", "claim": "The naming introduced for the aux table trace offset in core/src/lib.rs and for the aux table columns variable in trace/mod.rs is convoluted and should be renamed (e.g. AUX_TABLE_BUS_TRACE_OFFSET or aux_bus_columns).", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
0xMiden__miden-vm__3047
0xMiden/miden-vm
3,047
defect
acfc0ee12ba9691548399734b1862d5a718527f9
8c20357f03200c4477bc6b51e0d3b98b8dc61aaa
test: Speed up repeated assembler tests
This speeds up repeated assembler tests by caching successful `Test::compile()` results inside the test process. Tests that run the same program with many stack inputs can now reuse the compiled program instead of rebuilding it each time. The coverage stays the same. Each run still executes the traced path, checks s...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d96c3a8ddb4..7d6a5d6b360 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ - Added `prove_from_trace_sync(...)` for proving from pre-executed trace inputs ([#2865](https://github.com/0xMiden/miden-vm/pull/2865)). - [BREAKING] Reduced the prove-from-trace API...
1
1
0
[{"id": "G0", "claim": "The reviewer asks for before/after user-time measurements of the speedup, since if the actual difference is not significant the added complexity of the compile cache is probably not worth it.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
0xMiden__miden-vm__3088
0xMiden/miden-vm
3,088
defect
48bfc6f099f24d29ab917a13071a0f83405c56c8
6ca685f7424165ee56dec440230c52630faad48c
fix: fuzzed deserialization bounds
This fixes two fuzzing failures in byte-slice deserialization. `trusted read_from_bytes()` paths could read far more logical bytes than the input slice contains. Malformed inputs could use large length fields to drive very large allocation or read work before failing. The fix wraps `MastForest::read_from_bytes()` an...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 673f320317e..4e062fb76c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - Fixed AEAD padding handling so encrypt does not overwrite memory next to the plaintext buffer and decrypt leaves the plaintext output tail untouched ([#3008](https://github.com/0xMid...
1
1
0
[{"id": "G0", "claim": "Add a comment to the fuzz regression tests explaining what breaks if the test ever fails (e.g. the payload tries to allocate past a reasonable budget).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
0xMiden__miden-vm__375
0xMiden/miden-vm
375
defect
7e8b410486f936910722749df20950f59593643a
73081e36643d950720d6d74a52fb91a616422743
Add Call block to program MAST
This PR adds a `Call` block to program MAST. This includes: * Added a code block table to `Program` struct. This creates a sort of a "virtual table" structure within a program such that internal nodes in the program MAST can refer to code blocks in the table. This is needed for handling call and syscall blocks, but ...
diff --git a/assembly/src/context/mod.rs b/assembly/src/context/mod.rs index 91dce944342..0bc98b9c4db 100644 --- a/assembly/src/context/mod.rs +++ b/assembly/src/context/mod.rs @@ -14,22 +14,29 @@ use super::{BTreeMap, CodeBlock, ProcMap, Procedure, String, ToString, MODULE_PA pub struct AssemblyContext<'a> { loc...
5
5
2
[{"id": "G0", "claim": "The CodeBlockTable doc comment says 'to hold code blocks which a referenced from the program MAST' where it should say 'which are referenced'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The CodeBlockTable::get doc comme...
null
0xMiden__miden-vm__424
0xMiden/miden-vm
424
defect
44ca1e9789fad9821ea159fe823c6b10c09a4683
e63e523e51d4de18f621630bd138ae6dbf236e22
Refactor HasherLookup
## Describe your changes Partly addressing #360. - [X] Remove `HasherState` from `HasherLookup` and get the state from `main_trace` instead. - [X] Refactor `hash_span_block` to avoid using multiple `is_memoized` checks. Benchmark: Execution time for keccak256 reduced from 91.833 ms to 87.36 ms, an improvement of...
diff --git a/processor/src/chiplets/bitwise/mod.rs b/processor/src/chiplets/bitwise/mod.rs index 86f936320ea..299e87d6332 100644 --- a/processor/src/chiplets/bitwise/mod.rs +++ b/processor/src/chiplets/bitwise/mod.rs @@ -2,7 +2,7 @@ use super::{ ChipletsBus, ExecutionError, Felt, FieldElement, LookupTableRow, Star...
16
15
0
[{"id": "G0", "claim": "The TODO comment above the Absorb variant can be removed as well, now that the state is being removed from HasherLookup.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The main_trace parameter should be placed before the al...
null
0xMiden__miden-vm__443
0xMiden/miden-vm
443
defect
d7a3f5258520c13e1ac7fa4163d17e70934ebdc0
8d3beb39a332fd50156f2fbb07e98760b0e9c61b
Implement Kernel ROM
This PR implements Kernel ROM chiplet within the `processor` crate. This includes: * Implementing Kernel ROM chiplet. * Updating the Decoder to rely on Kernel ROM chiplet to check `syscall` validity. Things left for future PRs: * Updating mdBook docs to describe the new structure of chiplets. * Implementing ad...
diff --git a/core/src/chiplets/bitwise.rs b/core/src/chiplets/bitwise.rs index a8277720842..eaa5f5fd508 100644 --- a/core/src/chiplets/bitwise.rs +++ b/core/src/chiplets/bitwise.rs @@ -6,7 +6,7 @@ use super::{create_range, Felt, Range, ONE, ZERO}; /// Number of selector columns in the trace. pub const NUM_SELECTORS: ...
9
9
0
[{"id": "G0", "claim": "A named type should be used instead of the raw [u8; 32] key of access_map, for readability and type safety.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The trace_len accessor should be a const fn so the value can be ex...
null
0xMiden__miden-vm__477
0xMiden/miden-vm
477
defect
1dc1297feef0f69ab9cf23ede6bb8a6ba7ffb3ee
3ca623a165f0eafd1e495ed3f3d9161081a4b82f
Print vm cycles after cli execution
## Describe your changes Closing #442. Tests are missing, need some input on how to test CLI best. ## Checklist before requesting a review - Repo forked and branch created from `next` according to naming convention. - Commit messages and codestyle follow [conventions](./CONTRIBUTING.md). - Relevant issues are l...
diff --git a/miden/src/cli/run.rs b/miden/src/cli/run.rs index 5d99f459e9b..633e070d6e6 100644 --- a/miden/src/cli/run.rs +++ b/miden/src/cli/run.rs @@ -43,7 +43,7 @@ impl RunCmd { let trace = processor::execute(&program, &input_data.get_program_inputs()) .map_err(|err| format!("Failed to generate...
4
2
2
[{"id": "G0", "claim": "The author flags it as awkward that he had to add a new public `get_trace_len()` on ExecutionTrace because he could not use the existing `Trace::length()` properly.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new CLI test doe...
null
0xMiden__miden-vm__488
0xMiden/miden-vm
488
defect
b25ab1d62c765fe17435a8a16e77eb58bf91b5a5
89068f7bd7826c016fc6d355d2ad64926589144e
Memory advice injector decorator
## Describe your changes Partly addressing #336. Adds a new decorator to read specified number of words from the memory starting from the provided address and write it to the advice map with the top 4 elements of the stack as the key. ## Checklist before requesting a review - Repo forked and branch created from `ne...
diff --git a/assembly/src/parsers/io_ops/mod.rs b/assembly/src/parsers/io_ops/mod.rs index 03a4fc6ad0b..764533f5a63 100644 --- a/assembly/src/parsers/io_ops/mod.rs +++ b/assembly/src/parsers/io_ops/mod.rs @@ -26,6 +26,8 @@ mod mem_ops; /// and the remainder into the advice tape. /// - adv.keyval: this operation rea...
7
6
2
[{"id": "G0", "claim": "The decorator should either overwrite the values in the advice map in case of key collisions or return an error, and the PR should settle which.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should use regular comments (#)...
null
0xMiden__miden-vm__596
0xMiden/miden-vm
596
defect
22cb8006298bf95f7feab70d3828135d35dcad06
999697f217edd5bc2b4860b53c6ecc2de8c91f97
Add Decorator for Computing Multiplicative Inverse over Quadratic Extension Field
- [x] Take quadratic field element as input, compute multiplicative inverse, put result on advice tape - [x] Ensure functional correctness This PR partially addresses requirement described in https://github.com/0xPolygonMiden/miden-vm/issues/591 . To be more specific it solves the first point of https://github.com/...
diff --git a/assembly/src/assembler/instruction/mod.rs b/assembly/src/assembler/instruction/mod.rs index def09e027c..c0c262ffa8 100644 --- a/assembly/src/assembler/instruction/mod.rs +++ b/assembly/src/assembler/instruction/mod.rs @@ -271,6 +271,7 @@ impl Assembler { Instruction::AdvU64Div => span.add_deco...
4
4
1
[{"id": "G0", "claim": "The doc comment should state the irreducible polynomial formula used by winterfell's f64 field, x^2 - x + 2.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Ext2Element type alias should sit above the DECORATORS section ...
null
0xMiden__miden-vm__682
0xMiden/miden-vm
682
defect
49e8afcc11fd91169ff2755b6b63145f156fa241
f56c9f02decde18dceb36d88984365a6d3e59f7c
Add control block domain to MAST hashing
This PR adds a domain specifier to the second element of the capacity register when hashing control blocks using Rescue prime optimised in Miden. This is to avoid hash collisions of different programs when constructing a MAST. The domain is calculated using bitwise composition of the opcode bits as such `[bit_0 * 2*...
diff --git a/core/Cargo.toml b/core/Cargo.toml index 9f497f277c4..e87b5a07a98 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -21,6 +21,6 @@ std = ["math/std", "winter-utils/std", "winter-crypto/std"] [dependencies] math = { package = "winter-math", version = "0.4.2", default-features = false } -crypto = { pa...
11
11
4
[{"id": "G0", "claim": "The switch of the miden-crypto dependency to a git branch should not stay in the PR.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The whitespace-only change to the code_blocks::CodeBlock import in the processor hasher tests shou...
null
0xMiden__miden-vm__75
0xMiden/miden-vm
75
defect
5e1bb7cb2407c957613c7bbc030d6ddf65268545
9ae9d8acb723e6633e04c330a71c3895fd472bee
Add u32 ops execution tests to the processor
This PR adds following to the processor u32 operations tests file: 1. conversions and tests: manual and randomized tests 2. arithmetic operations: stubs out manual tests 3. bitwise operations: manual and randomized tests 4. comparison operations: adds manual + randomized tests for ```u32eq```; stubs out manual test...
diff --git a/assembly/src/parsers/u32_ops.rs b/assembly/src/parsers/u32_ops.rs index b7139051407..fd8e8fd37fa 100644 --- a/assembly/src/parsers/u32_ops.rs +++ b/assembly/src/parsers/u32_ops.rs @@ -341,7 +341,7 @@ pub fn parse_u32shl(span_ops: &mut Vec<Operation>, op: &Token) -> Result<(), Ass Ok(()) } -/// Tran...
7
6
0
[{"id": "G0", "claim": "Most or all of the helper functions defined in u32_ops.rs (e.g. test_compilation_failure, test_input_out_of_bounds, test_param_out_of_bounds) should live in the parent tests module so other test files can use them too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "s...
null
0xMiden__miden-vm__756
0xMiden/miden-vm
756
defect
0ec30b596193fd6b217441e97d8f98943d3f1e29
ad66ddec71e214489c70fefceb092ccb0879cc08
feat: add breakpoint instruction
This commit introduces `breakpoint`, a transparent instruction that will cause a debug execution to break when reached. This instruction will not be serialized into libraries, and will not have an opcode or be part of the code block tree. For debug executions, it will produce a `NOOP`, so the internal clock of th...
diff --git a/assembly/src/assembler/context.rs b/assembly/src/assembler/context.rs index 786d688ffb8..681e95d535a 100644 --- a/assembly/src/assembler/context.rs +++ b/assembly/src/assembler/context.rs @@ -250,11 +250,17 @@ impl AssemblyContext { // HELPER METHODS // -------------------------------------------...
7
4
3
[{"id": "G0", "claim": "Asks that compiling a `breakpoint` fail the compilation instead of silently emitting nothing outside debug mode, since the current handling would let debug statements slip through in production code.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id":...
null
0xMiden__miden-vm__812
0xMiden/miden-vm
812
defect
cb9094fc47df688795db97f5124f6963d3ddcb82
92bda8c89fd15ac8c64c0fc354e138f10053c7ea
feat: add mmr::get to the stdlib
## Describe your changes Implements the `mmr::get` procedure. ## Checklist before requesting a review - Repo forked and branch created from `next` according to naming convention. - Commit messages and codestyle follow [conventions](./CONTRIBUTING.md). - Relevant issues are linked in the PR description. - Te...
diff --git a/miden/tests/integration/stdlib/collections/mmr.rs b/miden/tests/integration/stdlib/collections/mmr.rs new file mode 100644 index 00000000000..c37bd8a59e2 --- /dev/null +++ b/miden/tests/integration/stdlib/collections/mmr.rs @@ -0,0 +1,168 @@ +use crate::{build_debug_test, build_test, helpers::crypto::init_...
8
7
2
[{"id": "G0", "claim": "Stack-transition doc comments should split input and output onto two separate lines (Input:/Output:) for consistency with the rest of the codebase.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `get` procedure should c...
null
0xMiden__miden-vm__841
0xMiden/miden-vm
841
defect
5b3eb677df6ced947e5a0590efdf9a732074d1e9
79ba9e112210c36dee5b7d0e903bbeb40c6d474b
Mmr packing
## Describe your changes Review/Merge after ~#834~ #844 This adds the procedure to pack a Mmr. ## Checklist before requesting a review - Repo forked and branch created from `next` according to naming convention. - Commit messages and codestyle follow [conventions](./CONTRIBUTING.md). - Relevant issues are l...
diff --git a/core/src/lib.rs b/core/src/lib.rs index 36472f42b38..1635a1b886e 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -14,7 +14,8 @@ pub use ::crypto::{Word, ONE, WORD_SIZE, ZERO}; pub mod crypto { pub mod merkle { pub use ::crypto::merkle::{ - MerkleError, MerklePath, MerklePath...
6
6
1
[{"id": "G0", "claim": "pack should also push the MMR data to the advice map, so that pack works as the inverse operation of unpack.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The padding should be changed so that the length is a word, keeping the in...
null
0xMiden__miden-vm__879
0xMiden/miden-vm
879
defect
add75fa84300705a3b4408a7ce9ef39ea80fa298
5331371002b9812157a0ca9a7ff0d0268d769e5e
feat: add elgamal encryption to stdlib with tests
## Describe your changes I've finally gotten around to cleaning up the elgamal encryption scheme @weijiekoh and I implemented as part of the zk hack. My big question is around the access modifiers we fiddled with to simplify our tests. Open to suggestions on a cleaner way to structure the code here. ## Chec...
diff --git a/stdlib/asm/crypto/elgamal_ecgfp5.masm b/stdlib/asm/crypto/elgamal_ecgfp5.masm new file mode 100644 index 00000000000..55b22a3a323 --- /dev/null +++ b/stdlib/asm/crypto/elgamal_ecgfp5.masm @@ -0,0 +1,130 @@ +use.std::math::ecgfp5::group + +export.gen_privatekey.8 + exec.group::gen_mul +end + +#! Given pu...
10
9
1
[{"id": "G0", "claim": "Rename the docs file to `elgamal_ecgfp5.md` so it will be consistent with the other docs when this is added to the full public-facing docs later.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Improve the clarity of the doc...
null
0xMiden__miden-vm__887
0xMiden/miden-vm
887
defect
83bdc105c20ec4d78bbcb23e1039c69f6032deec
7ae08ec5b703ad64940391f49e19843e6b729479
Add new instruction slots to the VM
This PR addresses #884. - [x] update the constraint definitions in the docs - [x] update the execution trace generation - [x] update processor tests - [x] update AIR constraints - [x] update AIR tests - [x] update AIR constraint degrees
diff --git a/air/src/constraints/stack/op_flags/mod.rs b/air/src/constraints/stack/op_flags/mod.rs index 57191c06a87..28cd4dbaeac 100644 --- a/air/src/constraints/stack/op_flags/mod.rs +++ b/air/src/constraints/stack/op_flags/mod.rs @@ -1,6 +1,6 @@ use super::{EvaluationFrame, B0_COL_IDX}; use crate::trace::{ - de...
6
5
2
[{"id": "G0", "claim": "The two op bit extra columns should be updated separately rather than in a loop, since a loop over only 2 columns seems like potential overkill.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The stark_verifier_e2f4 test ...
null
0xMiden__miden-vm__891
0xMiden/miden-vm
891
defect
8a1ca51599632fbbe36038a55fc7941f9c7ba5fa
9ba2665c9471790d54c3b4eb95d9c5cc4dfd4a2f
A new RPO-based random coin
## Describe your changes Implements #881 ## Checklist before requesting a review - Repo forked and branch created from `next` according to naming convention. - Commit messages and codestyle follow [conventions](./CONTRIBUTING.md). - Relevant issues are linked in the PR description. - Tests added for new functi...
diff --git a/core/src/random.rs b/core/src/random.rs index bd0982fc969..fec645ffac8 100644 --- a/core/src/random.rs +++ b/core/src/random.rs @@ -1,12 +1,10 @@ -use super::{ - crypto::hash::{Rpo256, RpoDigest}, - utils::collections::Vec, - Felt, FieldElement, -}; +use super::{crypto::hash::Rpo256, utils::collec...
17
14
0
[{"id": "G0", "claim": "The `state` field of `RpoRandomCoin` should not be public.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Draining the output buffer with `Vec::remove(0)` shifts all remaining elements, so new values should be pushed in reverse or...
null
0xMiden__miden-vm__895
0xMiden/miden-vm
895
defect
bdc84c0d8be53cb0d274c165b77d20cb509e8ba4
f70ee2e85a7528d502fbde9b37ab4738944fddea
feat(assembly): Refactor `Assembler` to support incremental compilation
This is a draft implementation of the `materialize_module(..)` procedure for the `Assembler`. This attempts to address the requirements of #894. Introduce `materialize_module(..)` method in `Assembler`.
diff --git a/assembly/src/assembler/context.rs b/assembly/src/assembler/context.rs index 9369cb9c67a..209b418fe7e 100644 --- a/assembly/src/assembler/context.rs +++ b/assembly/src/assembler/context.rs @@ -208,8 +208,8 @@ impl AssemblyContext { /// # Panics /// Panics if this context was not used for kernel co...
6
3
1
[{"id": "G0", "claim": "The assembler should probably be modified so it does not error out when some entries in the cb_table are missing (e.g. a note calling a private account procedure by MAST root that cannot be loaded).", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, ...
null
0xMiden__miden-vm__912
0xMiden/miden-vm
912
defect
81773ee56bb9792712d83b2f96fc005709b5b8d3
a7c22fcd966ed5952dc0581b68fae88d76539f67
Implement insert functionality for SMT in stdlib
This PR implements ability to insert nodes into Sparse Merkle tree collection in `stdlib`. However, this currently handles only simple inserts and updates of values for the same key. Complex inserts (i.e., when a leaf node needs to be moved to a lower tier) will be implemented in the next PR.
diff --git a/assembly/src/ast/nodes/advice.rs b/assembly/src/ast/nodes/advice.rs index 413fc31bd5..00d054da9e 100644 --- a/assembly/src/ast/nodes/advice.rs +++ b/assembly/src/ast/nodes/advice.rs @@ -18,6 +18,7 @@ pub enum AdviceInjectorNode { PushU64div, PushExt2intt, PushSmtGet, + PushSmtInsert, ...
18
12
1
[{"id": "G0", "claim": "The insert validation could be simplified by verifying that the node at the insertion index and tier is an empty subtree and that the node on the tier above is not empty, instead of pushing the parent node and its children to prove it is internal.", "category": "design", "verdict": "opposed", "p...
null
0xMiden__miden-vm__937
0xMiden/miden-vm
937
defect
3fa848d055907b0a17519fb19c9251b953b2773e
c9964cd01fb442e7969276f7ba662a998d8da58e
Generalize recursive verifier over the number of FRI queries
## Describe your changes Generalizes the recursive verifier so that it is generic over the number of FRI queries. This should close #922 ## Checklist before requesting a review - Repo forked and branch created from `next` according to naming convention. - Commit messages and codestyle follow [conventions](./CON...
diff --git a/core/src/random.rs b/core/src/random.rs index ecd1e3dfe42..4097ceb1850 100644 --- a/core/src/random.rs +++ b/core/src/random.rs @@ -14,7 +14,6 @@ const STATE_WIDTH: usize = Rpo256::STATE_WIDTH; const RATE_START: usize = Rpo256::RATE_RANGE.start; const RATE_END: usize = Rpo256::RATE_RANGE.end; const HALF...
3
3
0
[{"id": "G0", "claim": "The cycle-count comment for generate_list_indices (line 571, still 'Cycles: 797') should also be updated, since the procedure's cost now varies with num_queries.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment fo...
null
0xMiden__miden-vm__939
0xMiden/miden-vm
939
defect
d74d0aa663b459650766bfa5b8655fd200f89f10
41e7a02937eb376d8ea880693138d1113027eee5
add kernel rom procedure table
This PR completes the building of the auxiliary trace columns for the kernel ROM by building the `p1` column as described [here](https://github.com/0xPolygonMiden/miden-vm/issues/231). Since this reuses the column used for the hasher's sibling table, this includes a refactor of the chiplets auxiliary trace handling. ...
diff --git a/processor/src/chiplets/bus/mod.rs b/processor/src/chiplets/aux_trace/bus.rs similarity index 86% rename from processor/src/chiplets/bus/mod.rs rename to processor/src/chiplets/aux_trace/bus.rs index 9ec206d084f..b2f4b8d49af 100644 --- a/processor/src/chiplets/bus/mod.rs +++ b/processor/src/chiplets/aux_tra...
4
3
0
[{"id": "G0", "claim": "In the chiplets virtual table doc comment, the blank line between the two bullet-point paragraphs should be removed (or the bullets turned into regular paragraphs) so the comment does not render oddly in Markdown.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": ...
null
0xMiden__miden-vm__942
0xMiden/miden-vm
942
defect
ec7659d28966c2f08ccbec8a773c98ce831ed019
181b1d37bef74cbbaadaa6289bad59d18e288384
Introduce `RecAdviceProvider`
## Describe your changes This PR introduces a `RecAdviceProvider` which is an `AdviceProvider` that support data access recording capabilities from which data access proofs can be generated to enable stateless execution of programs. To support these requirements this PR introduces the following components and cha...
diff --git a/core/Cargo.toml b/core/Cargo.toml index 15fd53fba52..3c6682939c9 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -21,7 +21,7 @@ std = ["math/std", "winter-utils/std"] [dependencies] math = { package = "winter-math", version = "0.6", default-features = false } -crypto = { package = "miden-crypto",...
2
2
0
[{"id": "G0", "claim": "The struct should be renamed to `RecAdviceProvider` for consistency with `MemAdviceProvider`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The section header comment should be `RECORDING ADVICE PROVIDER` instead of `MEM...
null
0xMiden__miden-vm__944
0xMiden/miden-vm
944
defect
0562daa2a85493099aae607314463074fad34f33
8cc14e079a509be7c5369a42768d44bd628c256e
Add more variants for `adv.push_mapval` instruction
This PR addresses #835 and #880 but introducing additional variants of `adv.push_mapval` instruction. Specifically: - We add `adv.push_mapvaln` instruction to enable pushing the number of elements in a value list onto the advice stack. - We allow parameterization of both `adv.push_mapval` and `adv.push_mapvaln` to ...
diff --git a/assembly/src/assembler/instruction/adv_ops.rs b/assembly/src/assembler/instruction/adv_ops.rs index f04951a08e1..f9561dfbb35 100644 --- a/assembly/src/assembler/instruction/adv_ops.rs +++ b/assembly/src/assembler/instruction/adv_ops.rs @@ -1,5 +1,5 @@ use super::{validate_param, AssemblyError, SpanBuilder...
2
2
1
[{"id": "G0", "claim": "The docs for `MapValueToStack` present `key_offset` as an element of the operand stack (`[<key_offset>, KEY, ...]`) even though it is an immediate value on the instruction, so frisitano asks to consider an alternate representation (immediate operator value, operand stack `[KEY, ...]`), noting a ...
null
0xMiden__miden-vm__991
0xMiden/miden-vm
991
defect
770d867e9b69bd909988b80edf3fe2b6d23b9cce
bac3fb1e62a8778b1aaf76ef6e1ca79f54f80ad1
Add execution options for processor and prover
This PR adds implementation and usage for the `ExecutionOptions` struct, used to limit the maximum number of cycles and set their estimated number. CLI was changed to parse new parameters for the `ExecutionOptions`. This is the preparatory PR, that is data in this struct is not used anywhere yet. The actual limitation...
diff --git a/air/src/execution.rs b/air/src/execution.rs new file mode 100644 index 00000000000..8e9a8175479 --- /dev/null +++ b/air/src/execution.rs @@ -0,0 +1,23 @@ +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub struct ExecutionOptions { + max_cycles: Option<u32>, + expected_cycles: u32, +} + +impl Default ...
15
15
3
[{"id": "G0", "claim": "Put ExecutionOptions into a separate options.rs file and also move ProvingOptions there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add doc comments to the ExecutionOptions struct itself and its public methods, since ...
null
0xMiden__miden-vm__996
0xMiden/miden-vm
996
defect
6f7d07ea7e9c5e45e9f3d7ae9dbdb5cf2f3c84a7
ba4d98cb2e2407c88927282d767b7cb034661ca0
feat(stdlib): Allow arbitrary length sha256 hashes
`std::crypto::hashes::sha256` only exposed 2 procedures before this PR - `sha256::hash_1to1` and `sha256::hash_2to1`. These apply static padding to the input, which means input has to be exactly 256 bit or 512 bit. Any other input length could not be hashed using the existing interface. prepare_message_schedule_and_...
diff --git a/stdlib/asm/crypto/hashes/sha256.masm b/stdlib/asm/crypto/hashes/sha256.masm index 421e718943..92ccc82357 100644 --- a/stdlib/asm/crypto/hashes/sha256.masm +++ b/stdlib/asm/crypto/hashes/sha256.masm @@ -232,11 +232,13 @@ end #! - state0 through state7 are the hash state (in terms of 8 SHA256 words) #! - m...
2
2
2
[{"id": "G0", "claim": "Instead of exposing the low-level prepare_message_schedule_and_consume procedure, would it be better to expose higher-level procedures such as update and finalize, or maybe just hash_memory that hashes data from memory?", "category": "design", "verdict": "supported", "priority": "P1", "scope": "...
null
0xMiden__node__1022
0xMiden/node
1,022
defect
a03749a2aad1999438164f807577baecfb16de8e
4c550d170eb91a2b7cb5105030c499bb64d0c361
chore(proto): rename note message
closes #868 @igamigo I didn't change anything of the inner struct of the message since I plan to do it in #993 . Let me know what do you think, if I should change it here anyways. Also, should I make any other change in NTB or block-producer?
diff --git a/CHANGELOG.md b/CHANGELOG.md index cb82eb19f9..be14097b08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - [BREAKING] Consolidate default account filepath for bundled bootstrap and faucet start commands to `account.mac` (#976). - [BREAKING] Remove default value account filepath for faucet ...
3
3
1
[{"id": "G0", "claim": "Replace CommittedNote's block_num, note_index, note_id and merkle_path fields with the existing NoteInclusionInBlockProof message, and try replacing metadata and details with the Note message.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
0xMiden__node__1026
0xMiden/node
1,026
defect
c04e68ffa1c9255518f227413e4b8ff5ba402990
98ff23e6af54a10487ffbda49638bb228a2540e4
feat(block-producer): mempool event subscription
This PR adds a mempool event subscription stream via a gRPC endpoint on the block-producer. This will be used by the ntx builder to remain in sync with the mempool state. This is a component of #977 and is a companion PR to #1021. The even stream endpoint is intended to supersede all of the ntx builder's current ...
diff --git a/crates/block-producer/Cargo.toml b/crates/block-producer/Cargo.toml index a3a6cc04e9..22aa959d42 100644 --- a/crates/block-producer/Cargo.toml +++ b/crates/block-producer/Cargo.toml @@ -34,7 +34,7 @@ miden-tx-batch-prover = { workspace = true } rand = { version = "0.9" } th...
6
6
0
[{"id": "G0", "claim": "The commit_block doc comment should be updated to reflect that it also updates subscribers with the header and transaction info.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The uncommitted_txs field could be renamed to i...
null
0xMiden__node__1034
0xMiden/node
1,034
defect
3c11ee0a7aa89f60568a4c32f227be302a5208fc
879ae3f26639320351218d3a252ede5c539654ff
feat: store services on separate addresses
closes https://github.com/0xMiden/miden-node/issues/918 In https://github.com/0xMiden/miden-node/pull/932 the Store API was separated it into three APIs: RPC, BlockProducer, NtxBuilder. This PR changes the startup so that each API runs in a separate address.
diff --git a/bin/node/.env b/bin/node/.env index 7400decd19..fcaab1c5a7 100644 --- a/bin/node/.env +++ b/bin/node/.env @@ -5,7 +5,9 @@ MIDEN_NODE_NTX_BUILDER_URL= MIDEN_NODE_BATCH_PROVER_URL= MIDEN_NODE_BLOCK_PROVER_URL= MIDEN_NODE_NTX_PROVER_URL= -MIDEN_NODE_STORE_URL= +MIDEN_NODE_STORE_RPC_URL= +MIDEN_NODE_STORE_N...
5
5
2
[{"id": "G0", "claim": "The store's ntx-builder API should not be optional: the --ntx-builder.url CLI argument should be required and the ntx_builder_listener field non-optional, since there is no downside to always hosting that API.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
0xMiden__node__1035
0xMiden/node
1,035
defect
8257734514873b9397e73286e42e02bd80c69e85
28896de822b383d1900da32085a5705e9c8a0ee5
fix: stress-test assumed a -wal file exist from the get go
Address an assumption that doesn't hold for sqlite 3.46.1 as shipped with fedora 41
diff --git a/Cargo.lock b/Cargo.lock index d6f85e96dc..96de628c7b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1152,6 +1152,15 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fs-err" +version = "3.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88d7be93788013f265...
2
2
0
[{"id": "G0", "claim": "The hand-written `unwrap_or_else(|_| panic!(...))` on the store-file metadata lookup is unnecessary because fs_err already includes the filepath in its error output, so a plain `.expect(\"dumpfile should exist\")` would produce the path in the panic message.", "category": "maintainability", "ver...
null
0xMiden__node__1093
0xMiden/node
1,093
defect
41f4ca488a121ded93be5b2415cba77e1e0757d1
b257cc55924c248fdbb4af8d0b7c31673b7778c3
chore: check matching account delta commitments
closes #306
diff --git a/CHANGELOG.md b/CHANGELOG.md index ba2e439871..5e0c8b9364 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - [BREAKING] Updated MSRV to 1.88. - Added environment variable support for batch and block size CLI arguments ([#1081](https://github.com/0xMiden/miden-node/pull/1081)). +- Added check...
3
3
2
[{"id": "G0", "claim": "The commitment should be computed with AccountDelta::to_commitment() (renamed in miden-base#1603) instead of hashing the delta bytes, otherwise the check does not match and every incoming transaction would be rejected.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope...
null
0xMiden__node__1131
0xMiden/node
1,131
defect
6061d67901201a408babce1e100041e30989e7ed
aa2640320c9c1970472ae0db9d2a4f7b4fdc5780
chore: wait for nullifier tree to be loaded in stress test
closes #1124 This PR adds a call to the `status` method of the store component before starting with the benchmark, to ensure that is ready to operate. The benchmarks results were updated in the README.
diff --git a/bin/stress-test/README.md b/bin/stress-test/README.md index f17a64616f..6b425913ac 100644 --- a/bin/stress-test/README.md +++ b/bin/stress-test/README.md @@ -107,35 +107,35 @@ Current results of the store stress-tests: ``` bash $ miden-node-stress-test benchmark-store --data-directory ./data --iterations...
5
3
1
[{"id": "G0", "claim": "The added check_store_status helper only checks the store status once instead of waiting for the store to be ready, and should be waiting for the connection.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If the helper does n...
null
0xMiden__node__1133
0xMiden/node
1,133
defect
6061d67901201a408babce1e100041e30989e7ed
d02a99fa68bd42872268a6507ecb425b310c7ef8
feat: add timeout to servers
closes #1125
diff --git a/CHANGELOG.md b/CHANGELOG.md index bf2a58a935..5444cb0b72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - A transaction's account delta is now checked against its commitments in `SubmitProvenTransaction` endpoint ([#1093](https://github.com/0xMiden/miden-node/pull/1093)). - Added check fo...
4
3
0
[{"id": "G0", "claim": "The generic `timeout` flag and field name do not communicate that the timeout applies specifically to the gRPC server, so it should be renamed to something gRPC-specific (e.g. `grpc_timeout`) with matching documentation, across the commands and component structs.", "category": "design", "verdict...
null
0xMiden__node__1154
0xMiden/node
1,154
defect
5cc3d45be165c1048dfce24407f7f8a2b944703c
6c1e753b8eb18edbc3281d415465429fe259c6f0
chore: add store startup benchmark
closes #1139
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2123a828f4..caa7bfe1a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - A transaction's account delta is now checked against its commitments in `SubmitProvenTransaction` endpoint ([#1093](https://github.com/0xMiden/miden-node/pull/1093)). - Added check for ...
10
10
1
[{"id": "G0", "claim": "In State::load the errors from DataDirectory::load, BlockStore::load and Db::load should be propagated via the returned Result instead of being unwrapped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The timing instrumentat...
null
0xMiden__node__1205
0xMiden/node
1,205
defect
054fed75f9ad16226e3d508196f7fa9959312a11
eb9964358faa6b4009844445313c221972351919
feat: add `BlockRange` and `PaginationInfo` messages
closes #1204
diff --git a/CHANGELOG.md b/CHANGELOG.md index 71c0906baa..5e103d0c35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Added `GetNoteScriptByRoot` gRPC endpoint for retrieving a note script by its root ([#1196](https://github.com/0xMiden/miden-node/pull/1196)). - [BREAKING] Refactored `CheckNullifiersBy...
4
4
1
[{"id": "G0", "claim": "The pagination documentation comment should be more specific that pagination is across the single axis of blocks, since different or multiple pagination axes might exist.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The P...
null
0xMiden__node__1208
0xMiden/node
1,208
defect
e6c9e83bf291d9fba5ea03e7ca0a459973462c83
89c5203c6f4e25a59cca4cabc7cc30bd5e72bc48
chore: refactor SubmitProvenTransaction proto error
@Mirko-von-Leipzig @igamigo @sergerad I'm opening this as a draft just to double check the approach before continuing, what do you guys think? I'm based on [this comment](https://github.com/0xMiden/miden-node/issues/1106#issuecomment-3162673814)
diff --git a/crates/block-producer/src/errors.rs b/crates/block-producer/src/errors.rs index 159cbfe4a7..a986d9410e 100644 --- a/crates/block-producer/src/errors.rs +++ b/crates/block-producer/src/errors.rs @@ -1,5 +1,6 @@ use miden_block_prover::ProvenBlockError; use miden_node_proto::errors::ConversionError; +use m...
13
12
6
[{"id": "G0", "claim": "The protobuf response messages were not supposed to change; error codes should be passed through gRPC (status/headers) rather than adding error enums and payloads to block_producer.proto.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "clai...
null