EIP-999 Restoring the Parity WalletLibrary code (Restore Contract Code at 0x863DF6BFa4469f3ead0bE8f9F2AAE51c91A907b4)
No call decision · Security & privacy · EIP status Withdrawn · created 2018-04-04
A proposal to revive the code of the self-destructed shared library contract used by Parity multisig wallets, with a patched version, so that frozen ether and assets can be accessed again.
Why it is needed
The WalletLibrary contract, which Parity wallets shared to reduce wallet deployment costs, was accidentally self-destructed, leaving every multisig wallet that relied on calling this library unable to access the ether and other assets it held. The Ethereum protocol has no mechanism to revive the code of a self-destructed contract, and affected users and companies had no other simple way to recover their assets. Without changing how the EVM itself works, this proposal sought to release the funds through a single, one-time state transition that replaced the code at the one affected address with a reviewed and tested patched version.
What changes
Today
- The WalletLibrary contract has self-destructed and its code is gone.
- Multisig wallets that call this library can no longer access their ether and assets.
- There is no protocol-level way to revive a self-destructed contract.
After EIP-999
- A reviewed and tested patched version of the WalletLibrary code is redeployed at the address.
- The dependent multisig wallets work normally again through their library calls.
- The EVM's instructions and behavior itself are not changed.
Who is affected
- Users of Parity multisig wallets: They regain access to the ether and other assets that had been frozen by the self-destruct.
- Client (node) teams: We need to implement a special state transition that replaces a specific address's contract code with patched bytecode at the moment of the hard fork.
- Ethereum community: We need to decide whether this sets a precedent of directly modifying blockchain state because of a specific incident.
In depth
Background of the proposal
The WalletLibrary contract was a shared library used by Parity Wallet to reduce the gas cost users paid when deploying multisig wallets. It contained the core functionality for confirming and revoking multisig transactions, and many wallets depended on it. However, this library contract was accidentally self-destructed, leaving a substantial amount of ether and other assets owned by multiple parties inaccessible. This document proposes restoring the WalletLibrary's code to a patched version so that owners of dependent wallets can regain access to their assets.
Motivation: limits of the protocol
The starting point of this proposal is that the Ethereum protocol provides no way to restore a self-destructed contract, and affected users and businesses have no other simple way to recover their assets. The author emphasizes that, unlike other recovery proposals discussed previously, this proposal does not change the EVM's semantics. Instead, as specified in the next section, it aims to resolve the frozen funds through a single state transition.
Specification: replacement target and method
This specifies replacing the contract code at the self-destructed address 0x863DF6BFa4469f3ead0bE8f9F2AAE51c91A907b4 with the bytecode of the patched walletLibrary.sol that was reviewed, tested, and approved in the parity-contracts/0x863df6bfa4 repository. The original text includes the bytecode (object) to be substituted, the corresponding list of opcodes, and the sourceMap as-is, and the entire change consists of planting this bytecode directly as the contract code at that address during the hard fork.
Nature of the change's scope
This proposal does not touch general rules such as EVM opcodes or how SELFDESTRUCT behaves; it touches the contract code itself at a single specified address. In other words, rather than creating a general protocol-level mechanism to revive self-destructed contracts, it proposes a one-time state replacement limited to the single contract affected by this incident.
Current status
This EIP's status is recorded as Withdrawn. In other words, the state transition contained in this proposal was never reflected in the actual Ethereum protocol, and the code restoration via the proposed hard fork did not take place.