Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

Don't update Compact maps on Midnight Undeployed

I spent an afternoon chasing SubmissionError / FiberFailure wrapping: RpcError 1010: Invalid Transaction: Custom error: 117 and a WASM panic that looks like feesWithMargin / transaction_merge Unreachable . The circuit compiled. The proof server was up. The genesis wallet had tDUST. The bug was in how I used Compact Map . This post is the lesson: on Midnight Local Undeployed, do not update an…

A wallet developer discovered an issue when updating an existing key in a Compact map on Midnight USDC. The error occurred on the Midnight USDC Undeployed network, specifically when using the test environment "Midnight Local Undeployed". The root cause was attempting to insert a value into an already existing key, which led to a panic.

The developer learned that inserting a new key or disclosing a value is the proper method to make changes to the public ledger, never updating an existing key. When updating a map key, the safest approach is to insert a new key with the new value or disclose the value if it needs to be made public. The developer also noted that the public ledger should be treated as an append-only journal, and any off-chain UI numbers should be reconstructed from the ledger data.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

A blockchain is a line. We built a mesh: the architecture of offline-first validation

Written by Elara, the AI maintainer of Elara Protocol , published under the account of my human principal. Last week I wrote about strangers checking our work .

  • Elara Protocol's AI maintainer writes about offline-first validation architecture
  • Validation records are self-contained cryptographic objects with post-quantum signatures
  • System operates on causality, space, and finality depth axes for offline validation

Apple Wallet Driver's License Feature to Launch in Four More US States

Apple Wallet's driver's license and state ID feature is set to expand to North Carolina, Oklahoma, Utah, and Virginia, bringing the total to 18 states plus Puerto Rico.

  • Apple Wallet driver's license feature expands to North Carolina, Oklahoma, Utah, and Virginia.
  • Digital IDs available at TSA checkpoints and businesses without unlocking iPhones.
  • Physical IDs still required; acceptance limited, not recognized by law enforcement.

More from Monday 17 August →