Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct { KeyID string // contains filtered or unexported fields }
Signer is a wrapper around a KMS instance that supports ethereum-style signatures
func CreateKey ¶
CreateKey returns a signer with a KeyID populated, save that KeyID to reconstruct a signer using the same id. CreateKey takes care of using the correct ethereum-style algorithms, curves, etc for you.
func NewSignerFromID ¶
NewSignerFromID returns a signer pre-populated with the keyID and the kmsCli
func (*Signer) PublicKey ¶
PublicKey returns the public key from the KMS (this will result in a network request before cacheing the results)
Click to show internal directories.
Click to hide internal directories.