Skip to content

Example of smart contract wallet recovery using BLS Wallet

License

Notifications You must be signed in to change notification settings

blakecduncan/recovery-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recovery Example

Example of recovering a smart contract wallet to a new private key. For a detailed explanation check out my blog post

This example uses the BLS Wallet. The smart contract wallet is deployed on Arbitrum Goerli testnet.

Installation

npm install
  • These scripts run agains the Arbitrum Goerli testnet

Steps

  1. Create wallet zero and wallet one
npm run create-wallets
  1. Set the recovery hash for wallet zero. We will use the address of wallet one to create this hash
  • Note: this action gives wallet one permission to recover wallet zero to a new private key
npm run set-recovery
  1. Recover wallet zero to a new private key. After successful recovery we will call the recovered wallet, wallet two.
npm run recover-wallet-zero

Contributing

Pull requests are welcome.

License

MIT

About

Example of smart contract wallet recovery using BLS Wallet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published