Documentation
¶
Overview ¶
Package aws provides functions for key and signer generation in AWS KMS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(cfg *configs.Config, ctx context.Context, keyIndex, weight int) (*flow.AccountKey, *keys.Private, error)
Generates an asymmetric signing & verification key (ECC_SECG_P256K1 / ECDSA_SHA_256) in AWS KMS and returns data required for account creation; a flow.AccountKey and a private key. The private key has the KMS key ARN as the value.
Types ¶
type AWSKMSCrypter ¶
type AWSKMSCrypter struct {
// contains filtered or unexported fields
}
func NewAWSKMSCrypter ¶
func NewAWSKMSCrypter(key []byte) *AWSKMSCrypter
type AWSSigner ¶
type AWSSigner struct {
// contains filtered or unexported fields
}
Signer is a Google Cloud KMS implementation of crypto.Signer.
func SignerForKey ¶
SignerForKey returns a new AWSSigner for the given private key
Click to show internal directories.
Click to hide internal directories.