Overview
This patch release upgrades Confidential Assets to the DART v1.0.1 protocol and binds non-relayer batched proof submissions to the signing account. It adds AccountStateUpdated and FeeAccountStateUpdated events so indexers can follow account and fee-account leaves without decoding proofs, hardens the asset-leaf and account-registration proofs, and updates the Polymesh Worker to protocol 1.0.1 with rebuilt modules.
Runtime spec_version: 8_002_010
New Features
Confidential Assets (DART v1.0.1)
- Confidential Assets now run the DART v1.0.1 protocol; proof wire formats are unchanged (#2035)
- Zero-amount leg affirmations are now accepted, so a party can refresh its account commitment without moving funds (#2035)
Account State Update Events
- Every account and fee-account curve-tree leaf insert now emits
AccountStateUpdated/FeeAccountStateUpdatedin addition to the existing events. Each carries the leaf index, the new commitment, and anupdate_actiondescribing the operation that produced it (#2035)AccountStateUpdateAction:AccountAssetRegistration,AssetMinting,SenderAffirmation,ReceiverAffirmation,SenderUpdateCounter,ReceiverClaim,SenderRevertAffirmation,ReceiverRevertAffirmation,InstantSenderAffirmation,InstantReceiverAffirmationFeeAccountStateUpdateAction:FeeAccountRegistration,FeeAccountTopup,FeePayment- State-consuming actions embed their nullifier; registration actions don't. Indexers get a complete append-only leaf record without decoding proofs (#2035)
Modified External API
- Clients must generate Confidential Assets proofs with the DART v1.0.1 prover (#2035)
batched_settlement,submit_batched_proofsandexecute_instant_settlementnow verify every proof under a context derived from the signing account: the SCALE encoding of (b"polymesh/dart/submission/v1",2u8, account id) (#2035)- These proofs must be built with that context. Proofs built for v8.2.0 (no context) fail with
InvalidProof - Every proof in the batch, including included settlement, instant-settlement and affirmation proofs, inherits the entry point's context
create_settlement, the direct affirmation, minting and registration extrinsics remain context-free
- These proofs must be built with that context. Proofs built for v8.2.0 (no context) fail with
relayer_submit_batched_proofsis unchanged: every proof is still bound to the fee payment's one-time nullifier, so relayer clients only need the new prover (#2035)- New helper
pallet_confidential_assets::non_relayer_batch_proof_context(account)returns the context bytes clients must prove against (#2035) - The DART prover/verifier now derives a state update's nullifier from its
update_action; proof wire formats are unchanged (#2035)
New Events
confidentialAssets.AccountStateUpdated { leaf_index, account_commitment, update_action }: emitted on every account curve-tree leaf insert (#2035)confidentialAssets.FeeAccountStateUpdated { leaf_index, fee_account_commitment, update_action }: emitted on every fee-account curve-tree leaf insert (#2035)
Modified Events
confidentialAssets.AccountStateLeafInsertedandconfidentialAssets.FeeAccountStateLeafInsertedare deprecated in favor ofAccountStateUpdated/FeeAccountStateUpdated; they are still emitted unchanged for existing integrations (#2035)
Data Migration
ConfidentialAssets: cached DART parameters are regenerated on upgrade when they were generated by an older protocol version, so in-runtime fallback verification uses parameters matching the deployed 1.0.1 modules. The pallet storage version stays at 1 (#2035)
Bug Fixes
Confidential Assets
- Asset leaf proofs now prove the full-width asset leaf commitment and take the curve-tree height from the root, so a leaf with unused key slots can't be misrepresented (#2035)
- Account registration proofs now derive the registration randomness from the device master seed and bind it to the new account commitment, preventing a caller from choosing randomness that isn't derivable from its seed (#2035)
Other Changes
- DART dependencies (
polymesh-dart,curve-trees,crypto,arkworks-algebra) are now pinned to immutabledart-v1.0.1tags in the node and integration workspaces instead ofdart-v1.0.0branches (#2035) - Polymesh Worker protocol
polymesh-worker-protocol-dart-v1bumped to 1.0.1; the native, PolkaVM, WASM and testing modules were rebuilt and are embedded in the node (#2035)- Release configs now contain three modules (PolkaVM v2, WASM v2, Native v1). The uncompressed
module_version 1entries were dropped, and the v00.1.0config drops itsmodule_version 1entries too
- Release configs now contain three modules (PolkaVM v2, WASM v2, Native v1). The uncompressed
- Updated
docs/spec/18-confidential-assets.mdand the confidential-assets integration tests to match the new contexts and events (#2035)
Full Changelog: v8.2.0...v8.2.1