Skip to content

What happens to your cryptoassets when you shrug off your mortal coil?

Notifications You must be signed in to change notification settings

skmgoldin/dead-mans-switch

Repository files navigation

Dead Man's Switch

Codeship Status for skmgoldin/dead-mans-switch

A smart contract for managing cryptoassets after shrugging off your mortal coil.

How it works

Deposit ERC-20 tokens using the deposit function. As the dead man, you must invoke the heartbeat function every heartbeatPeriod or you will be assumed dead and your beneficiaries will be allowed to withdraw your cryptoassets.

Install

npm i && npm run install && npm run compile

Test

npm run test

Deploy

Use the config file at conf/config.json to specify the owner, beneficiary and heartbeat period for the dead man's switch.

Deploying to a network other than the testRPC requires a secrets.json file with a mnemonic whose account on the m/44'/60'/0'/0 path is funded with Ether for the network being deployed to.

The secrets.json file should be in the following form:

{
  "mnemonic": "my very good mnemonic"
}

Rinkeby: npm run deploy-rinkeby

About

What happens to your cryptoassets when you shrug off your mortal coil?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published