Dead man's switch: owner pings to stay alive, trustee can withdraw after 1000 seconds of inactivity
Context
Experimental dead man's switch contract by Vitalik Buterin (Nov 2015). Owner must call ping() periodically; after 1000 seconds of inactivity, designated trustee can call withdraw(). Verified: compiled with Serpent bc4ce59, exact runtime bytecode match.
Key Facts
Description
Deployed by Vitalik Buterin. A dead man's switch: the owner periodically pings the contract to prove liveness; if no ping arrives within roughly 1000 seconds, a designated trustee is allowed to withdraw the balance.
Source Verified
Exact 284-byte runtime match. Compiled with Serpent bc4ce59. Runtime extracted as result[14:14+284].
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Serpent)
data lastPing
data trustee
data owner
def ping():
if msg.sender == self.owner:
self.lastPing = block.timestamp
def setTrustee(x:address):
if msg.sender == self.owner:
self.trustee = x
def withdraw(to:address, amount:int256):
if msg.sender == self.owner:
send(to, amount)
return(1:bool)
elif block.timestamp > self.lastPing + 1000 and msg.sender == self.trustee:
send(to, amount)
return(1:bool)
else:
return(0:bool)External Links
Related contracts
SerpentGamble
Same deployerProvably-fair betting game where players choose their own odds. The owner settles bets with a commit-reveal random seed. Includes a 2-day emergency refund.
0x034df8...200e2fSeptember 20, 2015SerpentGamble
Same deployerSibling of 0x034dF870 (SerpentGamble). Provably-fair Serpent betting game; players choose their own odds, owner settles via commit-reveal seed, 2-day refund.
0x9ca7e9...fa8bb4September 21, 2015SerpentGamble
Same deployerSibling of 0x034dF870 (SerpentGamble). Provably-fair Serpent betting game; players choose their own odds, owner settles via commit-reveal seed, 2-day refund.
0x75649a...176028September 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xe1a99f...0d2457September 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xdc00a9...15861fSeptember 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xd0ed09...300b48September 21, 2015