[Core Protocol] Hardware signer support? #97
-
Issue DescriptionThe official doc has said that
But I don't find a way to use a combination of hardware security modules and hardware wallets like the doc said. Can someone guide us on this, we want to launch an OP stack chain on mainnet shortly. Additional Informationhttps://stack.optimism.io/docs/build/getting-started/#generate-accounts |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Hey @upnodedev, on a high level you would craft the transaction with a tool like viem and then sign the transactions with a hardware wallet. I'll see if I can find someone to provide more detailed information. If you haven't gotten in touch with OP Labs yet on your mainnet launch, I'd suggest filling out this form |
Beta Was this translation helpful? Give feedback.
-
Okay so I learned that there is an option in the forge script, with Here's the foundry docs: https://book.getfoundry.sh/tutorials/best-practices?highlight=script#private-key-management |
Beta Was this translation helpful? Give feedback.
-
Hey @upnodedev, I'm going to go ahead and close this discussion. The following is a summary of the questions and answers: Deploying contracts with a hardware walletUtilize the following options in the forge script, with --ledger or --trezor you can use a hardware wallet. It uses the same backend as something like metamask with libusb. So you can replace the account generation with generating your addresses with a hardware wallet. Then sign the transactions with the hardware wallet key. Here's the foundry docs: https://book.getfoundry.sh/tutorials/best-practices?highlight=script#private-key-management Can we rotate batcher and proposer with admin key in case emergency situation has happenedYes, you can make updates to the SystemConfig smart contract. How to handle the batcher and proposerThe batcher and proposer have the ability to use a remote signer through the standard json RPC API (eth_signTransaction). We use this in combination with a HSM. |
Beta Was this translation helpful? Give feedback.
-
Hey @upnodedev, We hope your recent question was resolved to your satisfaction. Your feedback is invaluable and helps us improve our support services. Could you spare a moment to fill out a short feedback survey. Thank you for helping us improve our developer community. |
Beta Was this translation helpful? Give feedback.
Hey @upnodedev, I'm going to go ahead and close this discussion. The following is a summary of the questions and answers:
Deploying contracts with a hardware wallet
Utilize the following options in the forge script, with --ledger or --trezor you can use a hardware wallet. It uses the same backend as something like metamask with libusb. So you can replace the account generation with generating your addresses with a hardware wallet. Then sign the transactions with the hardware wallet key.
Here's the foundry docs: https://book.getfoundry.sh/tutorials/best-practices?highlight=script#private-key-management
Can we rotate batcher and proposer with admin key in case emergency situation has happened