Skip to content

chore(aleo): bump snarkvm to 4.6.0#8658

Draft
tkporter wants to merge 4 commits intomainfrom
trevor/snarkvm-4.6.0
Draft

chore(aleo): bump snarkvm to 4.6.0#8658
tkporter wants to merge 4 commits intomainfrom
trevor/snarkvm-4.6.0

Conversation

@tkporter
Copy link
Copy Markdown
Member

Summary

  • Bumps snarkvm, snarkvm-algorithms, and snarkvm-console-account from 4.3.04.6.0 in rust/main/Cargo.toml (+ lockfile).
  • Adapts two breaking changes in hyperlane-aleo:
    • cost_in_microcredits_v3minimum_cost_in_microcredits_v3 (identical signature).
    • VM::authorize now returns VmAuthError instead of anyhow::Error; wrapped through anyhow::Error into the existing HyperlaneAleoError::SnarkVmError variant.

Context

The Aleo team recommends 4.6.0 for both testnet and mainnet. They are investigating a release channel for us so we know what to update.

⚠️ Do not review yet — draft

The added tokio::test (provider::tests::provable_mainnet_get_block_range, #[ignore], hits live https://api.explorer.provable.com/v2/mainnet) still fails on block 17918388 with:

Error("Mismatching solution ID, possible data corruption", line: 0, column: 0)

Same error as on 4.3.0 — the version bump alone does not resolve it. Keeping the failing test committed as a reproducer for follow-up with the Aleo team. Please hold off on review until that's sorted.

Test plan

  • cargo build -p hyperlane-aleo
  • cargo clippy --features aleo,integration_test -- -D warnings (CI-matching)
  • cargo test -p hyperlane-aleo — 70/70 existing tests pass
  • cargo test -p hyperlane-aleo -- --ignored provable_mainnet_get_block_rangecurrently fails on purpose (see above)

Bumps snarkvm, snarkvm-algorithms, and snarkvm-console-account from 4.3.0
to 4.6.0. The Aleo team recommends 4.6.0 for both testnet and mainnet.

Adapts two breaking changes in hyperlane-aleo:
- Renames the removed `cost_in_microcredits_v3` to its 4.6 equivalent
  `minimum_cost_in_microcredits_v3` (identical signature).
- `VM::authorize` now returns `VmAuthError` instead of `anyhow::Error`;
  convert through `anyhow::Error` so it continues to flow into the
  existing `HyperlaneAleoError::SnarkVmError` variant.
Adds an ignored tokio::test that hits https://api.explorer.provable.com/v2/mainnet
and calls get_block for 17918388..=17918398, panicking on the first error.

Currently fails on 17918388 with a snarkvm decode error
("Mismatching solution ID, possible data corruption"). Intended as a
reproducer for the Aleo team while we investigate.
@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 22, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcargo/​reqwest@​0.13.27910093100100
Updatedcargo/​snarkvm@​4.3.1 ⏵ 4.6.18310093100100
Updatedcargo/​snarkvm-console-account@​4.3.1 ⏵ 4.6.110010093100100
Updatedcargo/​snarkvm-algorithms@​4.3.1 ⏵ 4.6.1100100100100100

View full report

@tkporter tkporter force-pushed the trevor/snarkvm-4.6.0 branch from 9a38429 to 882bd6d Compare April 22, 2026 20:18
@hyper-gonk
Copy link
Copy Markdown
Contributor

hyper-gonk Bot commented Apr 22, 2026

🦀 Rust Agent Docker Image Built Successfully

Service Tag
agent 00a9835-20260422-202326
Full image paths
ghcr.io/hyperlane-xyz/hyperlane-agent:00a9835-20260422-202326

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

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

1 participant