Skip to content

Migrate to VM v0.21 and protocol v0.14#995

Draft
greenhat wants to merge 25 commits intonextfrom
pr/migrate-to-v0.21.1
Draft

Migrate to VM v0.21 and protocol v0.14#995
greenhat wants to merge 25 commits intonextfrom
pr/migrate-to-v0.21.1

Conversation

@greenhat
Copy link
Contributor

@greenhat greenhat commented Mar 4, 2026

Close #970

TODO:

  • merge changes from Switch to the miden-field from miden-crypto repo #923
  • delete miden-field crate from sdk/field folder;
  • rebase;
  • enable and fix test_all_templates and build_workspace_member_account_project tests
  • fix protocol crates deps override in the test projects;
  • enable mockchain tests crate;
  • warnings on Cargo.toml when cargo build
  • un-ignore 64-bit tests in instructions and test i64 intrinsics changes;
  • fix in miden-debug and remove push_i128_abi_parts, read_rust_memory
  • check for changes in the tx kernel API of the MASM procedures

djolertrk and others added 23 commits March 10, 2026 07:41
Migrate the compiler workspace from miden-vm v0.20 (crates.io) to
v0.21.1 (local checkout) and miden-base v0.13 to v0.14.

Key breaking changes addressed:
- Remove FieldElement/StarkField traits (now inherent methods on Felt)
- .as_int() -> .as_canonical_u64() across all crates
- miden_core::Program -> miden_core::program::Program
- miden_core::AdviceMap -> miden_core::advice::AdviceMap
- miden_core::utils::{Serializable,Deserializable} -> miden_core::serde::*
- miden_assembly::utils::Deserializable -> miden_assembly::serde::*
- Felt::ELEMENT_BYTES/read_from_bytes/elements_as_bytes removed
- Felt::inv() -> Field::try_inverse()
- StackOutputs::get_stack_item() -> get_element()
- miden_processor::AdviceInputs -> miden_processor::advice::AdviceInputs
- MASM: u32overflowing_mul -> u32widening_mul
- MASM: u32overflowing_madd -> u32widening_madd
- Breakpoint instruction removed (mapped to Nop)
- NoteInputs -> NoteStorage in miden-protocol v0.14
- Felt::from(bool) removed
- SmtLeaf::to_elements() now returns iterator (needs .collect())
use re-exported trait from the `miden-field`.
`build_workspace_member_account_project` tests
@greenhat greenhat force-pushed the pr/migrate-to-v0.21.1 branch from d59d8d4 to 3a01c88 Compare March 10, 2026 05:59
@greenhat
Copy link
Contributor Author

The integration tests are to be migrated after 0xMiden/miden-client#1891 is ready/merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to VM v0.21

2 participants