command
module
Version:
v0.0.0-...-de1998f
Opens a new window with list of versions in this module.
Published: Jan 23, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-kms-hdwallet-example
Example how to use AWS KMS to store entropy and sign messages using an ethereum HD wallet.
Example
go run main.go
The example does the following
- Authenticate with AWS.
- Create a KMS key if there are none.
- Generate random 256 bit entropy.
- Encrypt entropy with KMS.
- Decrypt the encrypted entropy with KMS.
- Generate mnemonic based on decrypted entropy.
- Create an HD wallet from the mnemonic.
- Derive an account from HD wallet the given an HD path.
- Sign a message with the derived account private key.
- Print all the steps.
License
MIT
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.