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

After EIP-999

Who is affected

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.

Original EIP · ← EIPs