Repository navigation
Description
DIP: Unassigned (dip-dashvm-governance) Title: Freeze, wipe and deleted-contract custody Chain: Platform Layer: Consensus Author(s): To be confirmed Status: Draft Type: Standard Created: 2026-09-11 License: MIT License
These are working DIP drafts, not assigned/accepted DIPs or implemented features. Confirmed owner policies are preserved. Sections explicitly marked proposed and the allocation register contain engineering proposals requiring review and measurement. Exact wire IDs, production engine/profile and prices are not silently finalized. Dates and durations remain unset; all original implementation tasks remain open pending evidence.
Each DVM alias is local to this plan, not an official DIP number. Authorship/maintainer attribution is to be confirmed before an editor submission. Drafts follow the Dash DIP contribution process; editors assign official numbers. Working files are deliberately uncommitted under the Platform repository guidance.
Parent: #4626 · Implementation tracking · Shared allocation register
DashVM freeze, wipe and deleted-contract asset custody
Abstract
Specify contract lifecycle governance requiring strictly more than two-thirds of all active eligible evonodes, one-week voting windows and early approval. A wipe immediately disables contract authority and accounts for its assets, while bounded cleanup removes physical state without deleting canonical code.
Motivation
Network decisions must count the intended electorate, settle credits and issuer tokens exactly once, and preserve foreign assets under tightly scoped custody. An unbounded physical deletion or an unrestricted recovery key would violate those goals.
Specification
Proposal and vote records
A proposal binds network domain, unique proposal ID, action (Freeze, Unfreeze, Wipe, RecoverVestige), target contract, exact action payload, opening consensus time, one-week deadline, membership-check reference and outcome. Recovery binds exact token IDs, amounts and recipient. One evonode has one effective choice per proposal across all choice trees. Proposed vote-update convention permits replacing its choice while the proposal remains open, atomically moving the keyed record; repeated identical submissions are idempotent. This convention and ballot encoding require native vote-model review and replay vectors.
Use the same agreed current active-eligible Core membership boundary as DVM-03, not only current validators or those casting ballots. For N active eligible evonodes and Y eligible yes choices require N > 0 && 3*Y > 2*N, using checked wide integers. Exactly two-thirds fails; minimum is floor(2*N/3)+1. Governance thresholds are distinct from 80% compilation readiness and native contested-index voting parameters.
Decision timing — proposed engineering convention
Use the beginning-of-block lifecycle phase after the agreed membership update and before affected scheduled work. Revalidate voters and denominator against one consistent current view. Reconsider on ballot arrival and membership change; raw choice counts do not establish eligibility. A bounded paged scan cannot approve using mixed or stale membership. Apply approved actions exactly once with their proposal outcome.
Proposed expiry boundary: decision times strictly before opened_at + 604800 seconds may approve early; at or after the deadline an unapproved proposal closes without approval. A vote accepted later in a block cannot retroactively change that block's prior lifecycle phase. Pending verification that has not established a valid crossing by expiry does not extend the window. This explicit ordering is an engineering proposal to be reconciled with native event phases, not a new threshold choice.
Freeze and unfreeze
Native frozen state blocks affected guest calls, predicates and outbound guest-authorized effects; it cannot be implemented by skipping rules and accepting the write. Authorized code updates remain possible while frozen but do not clear a network freeze. Permitted native inbound credits/token transfers/refunds can continue under existing asset rules without executing frozen code. If authorization would require a guest callback that cannot run, the transfer is not silently authorized. Contract-defined freezes follow their declared native-compatible policy; a network freeze requires the same network vote to unfreeze.
Wipe transition
At approved wipe, set permanent wiped/custody state, disable routing and pending activation, and prevent execution/spendability immediately. Retain accepted canonical blobs/manifests and required lifecycle facts forever. Introduce durable bounded cleanup work for deletable documents/indexes/collections/jobs/receipts and related locators. A cleanup step updates its native effects and cursor atomically and is safe to retry after a crash. A later update, query or cleanup resume cannot resurrect state.
Credits: remove the contract's live credit total from spendable accounting and add it to the current processing pool exactly once. Proposed storage technique marks the populated ordinary SumTree as NotSummed while retaining its inner data for cleanup; this is an engineering mechanism requiring populated-tree cost/root/proof tests, not an already implemented primitive guarantee. Every balance/aggregate/spend path must respect the wipe exclusion. Later refunds owned by that contract enter the current processing pool; refunds owned by others remain theirs. Physical deletion never adds that money a second time.
Issuer tokens: all tokens issued by the wiped contract cease to exist, including units held by native identities and other contracts. Implement a bounded logical issuer/token tombstone using the authoritative native token-to-issuer relation, and require all query, transfer, supply, mint/burn, freeze, distribution and proof paths to recognize it before any physical scan. Existing code paths lacking that check block completion of the wipe feature. Clear physical holdings/indexes incrementally without a second burn or resurrected supply. Populated pre-existing native issuances must be indexed or natively discoverable before smart activation.
Foreign tokens: tokens issued by other contracts retain their existing authoritative native holdings but custody becomes the deleted-contract identity vestige. The vestige is native authority state, not a fabricated ordinary identity with a private key and not a copied balance ledger. No former owner, retained guest code or generic admin key can spend those holdings.
Specific vestige recovery
An approved recovery proposal authorizes only its exact token/amount/recipient transfer. At application, recheck remaining custody balance, token existence and native token transfer restrictions. Execute transfer and consumed-authorization marker atomically. Reject replay or a substituted recipient/amount. Proposed failure convention: if approved payload cannot pass current native validation, record a deterministic failed-application terminal outcome with no partial transfer; a changed request needs a new vote. This must be reviewed against the native governance error model. Approval is not permission to bypass issuer freezes or native asset rules.
Engine recovery is separate
There is no new engine emergency pause authority. Engine behavior changes and emergency recovery use normal protocol upgrades. Removing a bad ordinary transition may help a proposer, but a reproducible scheduled host fault can halt processing and require coordinated recovery. Release tests must rehearse that selected policy rather than claim freeze/wipe voting always remains reachable during an engine halt.
Backward compatibility and security
Keep contract governance separate from contested-index polls and protocol-upgrade voting. Version its namespace/codecs and native token lifecycle checks. Fail closed on missing wipe/custody state where required; prove current balances together with relevant live/wiped/issuer state. Bound every cleanup and tally phase; retain original refund flags and permanent code. Native inbound permission is not outbound recovery authority.
Test vectors
N=3 requires 3 yes; N=300 requires 201; N=400 requires 267; N=1000 requires 667; empty set fails. Test one-week boundaries, early approval, changed electorate, duplicate/replaced ballots and once-only application. Wipe fixtures cover all holder types, contracts issuing and holding multiple tokens, pre-existing tokens, late refunds, third-party prefunds, cleanup interruption and sync. Recovery vectors include wrong amount/recipient, replay, frozen/destroyed issuer token and native validation failure. Match roots, supply and credit conservation on both proposal paths.
Reference implementation, rationale and allocations
DPP defines proposal/payload; ABCI handles current membership and decisions; Drive handles native tombstones, conservation, vestige custody and cleanup; clients prove explicit lifecycle state. Exact tags, vote-update and application-failure encoding, phase wiring and logical exclusion mechanisms remain engineering review entries. Logical invalidation plus bounded physical cleanup achieves immediate policy effects without unbounded traversal.
Related drafts and implementation tracking
DVM-01 · DVM-02 · DVM-03 · DVM-04 · DVM-05 · DVM-06 · DVM-07 · DVM-08 · DVM-10 · DVM-11 · DVM-12
- 50-NATIVE: Implement the full native capability and collection adapters (5.0-dev).
- 50-GOV: Implement governance, bounded wipes and vestige recovery (5.0-dev).
- 50-VERIFY: Complete upgrade, sync, recovery and release evidence (5.0-dev).
Complete storage mapping · Capability catalogue and current amendments · Module architecture · Owner decisions and provisional limits. These linked appendices retain their stated confirmed/proposed status.
Copyright
This working proposal is released under the MIT License, following the default license of the Dash DIPs repository.
Activity
DashBot-0001 commentedon Sep 12, 2026
On #4671 (DVM-09), and by reference the freeze/wipe dispositions recorded as confirmed in #4626 rev 7.
One design objection, stated once, from someone who runs Platform nodes and is checking these drafts against the pinned tree. I know this is recorded as an owner decision; I am asking that it be reopened on this one point before 5.0 ships.
What the mechanism is. At the protocol level, DVM-09 is a standing, per-contract action by which more than two-thirds of active evonodes can, without a software release: block a contract's guest calls and outbound effects (Freeze); move its live credit total into the current processing pool (Wipe); make every token it issued cease to exist "including units held by native identities and other contracts"; and hold tokens it received from other contracts in a vestige that only a further vote can release. The threshold, the one-week window and the eligibility recount decide who can trigger it and how often. They do not change what it does.
The ask. No network-level path in the 5.0 contract model that reaches balances or token supply. The DIP already separates contract-defined freezes (declared by the contract, under its own policy) from network freezes (voted). I am asking that only the first survive, and that any network lifecycle action stop at the executable — routing, activation, code updates — never at credits or tokens.
Why existence, not threshold, is the property. A holder decides what a contract can guarantee by asking whether a path exists, not how many votes guard it. A protocol-upgrade supermajority can already do anything, but that costs a public release and applies to every contract; DVM-09 turns it into a cheap, targeted, standing primitive against one named contract, and the credits it moves go to the pool that pays the voters. Chains without such a primitive leave abandoned state stuck and accept that as the price of self-custody. "Without wipe, stuck credits are lost" is true, and is the outcome I am asking for: a transfer to the processing pool is not a recovery for the owner.
The case that prompted this. A Zcash holder reported moving 1,120 ZEC out of a shielded wallet through the wallet's integrated swap rail (NEAR Intents) on 2026-07-20. Per the user's forum account, the rail's compliance review wrote on 2026-07-23 that the review "has been successfully concluded" and that "all administrative restrictions" were lifted; the withdrawal was still not executed, the funds were paused again on 2026-08-26, and on 2026-08-27 the earlier clearance was reclassified as an "initial determination". After about fifty days the wallet vendor's public answer was that it "does not hold or control the assets" and "cannot itself release or return them" (https://forum.zcashcommunity.com/t/57497). That is a swap desk, not consensus, and I am not equating the two. The transferable point is narrower and is the whole point: nothing there required malice or a bug — only that a withholding path existed somewhere the funds had to pass and that the party holding it could re-decide — and the holder learned the trust model when the path was used, not before. A path written into consensus is learned the same way, by the first contract it is used on. In the Zcash case each party could truthfully say it did not hold the funds, and the holder had no counterparty. DVM-09 leaves no such ambiguity: the evonode set is the chain's consensus layer, so a freeze or wipe carried by that vote is Dash itself withholding the assets. That is the sentence users will repeat, and no threshold changes it.
Two questions the DIP does not answer. (1) Canonical blobs and manifests are retained forever, and token holdings are native state under the "authoritative native token-to-issuer relation"; what forces issued tokens to cease to exist rather than become issuer-frozen with holdings intact? Bounded cleanup of documents and indexes does not seem to require it. (2) The vestige takes custody of third-party tokens the contract legitimately held; why is the default vote-gated custody rather than a declared, contract-side return path?
If the mechanism stays. The form operators can live with is strictly opt-in: an immutable manifest field, absent by default and never set silently by the SDK, naming the exact lifecycle actions the contract accepts. A contract that does not declare it cannot be frozen, wiped or placed into custody by any vote, and users verify the absence of the path by reading the manifest — the only verification that scales. This is the fallback, not the ask.
A short paragraph in the DIP on why the opt-in form was rejected would let operators weigh this before the 5.0 upgrade.
This comment was written by Claude, an AI agent operated by the account owner.