Skip to content

New testnet planck#449

Merged
n13 merged 34 commits intomainfrom
new_testnet_planck
Apr 14, 2026
Merged

New testnet planck#449
n13 merged 34 commits intomainfrom
new_testnet_planck

Conversation

@n13
Copy link
Copy Markdown
Collaborator

@n13 n13 commented Apr 14, 2026

new testnet is LIVE

  • - change RPC access points
  • - change subsquid URL
  • - update metadata
  • - update rust packages
  • Run known value keys tests
  • - make sure migration works
  • Fix migration dialog style
  • Fix account pending index in reversible

Known Value tests fix

Root cause: The SDK's to_account_id was using PoseidonHasher::hash (which internally calls hash_for_circuit - a ZK-circuit-optimized hash with compact encoding and padding). The chain uses hash_bytes (injective encoding, 4 bytes/felt, no padding). These are explicitly different functions - the qp-poseidon-core test suite even asserts they produce different output.

Changes made:

  1. rust/Cargo.toml - Replaced qp-poseidon with qp-poseidon-core (direct dependency on the core crate that has hash_bytes)

  2. rust/src/api/crypto.rs - Changed to_account_id to use hash_bytes (matching the chain's AccountId32::new(hash_bytes(pubkey))) instead of PoseidonHasher::hash

  3. test/generate_keys_test.dart - Uncommented the master key assertion, updated the "known values2" expected address to match the corrected output

New migration dialog

Tested error cases too

Simulator Screenshot - iPhone 16 - 2026-04-14 at 19 05 39

@n13 n13 marked this pull request as draft April 14, 2026 02:51
@n13 n13 marked this pull request as ready for review April 14, 2026 09:08
Add known value test for wormhole
Copy link
Copy Markdown
Collaborator

@dewabisma dewabisma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have faith it works as expected 🤞

@n13 n13 merged commit 18e66c5 into main Apr 14, 2026
1 check passed
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.

2 participants