Example how to use AWS KMS to store entropy and sign messages using an ethereum HD wallet.
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.