IMO fancy hardware stuff is all overrated and most people should just store the bulk of their coins in a multisig (>= 5 participants) where most of the keys are held by trusted family and friends. [--== From vitalik.eth ==--]]
So let's use Multi-Signature Wallet.
- Demo contract
- Deploy script
- Sign
- Transact
To get started with this boilerplate, you just need to follow these simple steps:
-
Deploy demo contract with script
npx hardhat run --network sepolia scripts/multisig/deploy_multisig.js
-
Create postgres storage on Vercel
-
Create tables and insert default data
node scripts/multisig/seed.js
-
Operate and observe data changes to understand contract features
// 重点,直传hash在合约部分利用ecrecover检查签名会对不上 [{ message: txHash! }] const hash = await signMessageAsync({ message: { raw: txHash! } })
By MIT licensed.