Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKmsEncryptedPrivateKeyProvider ¶
func NewKmsEncryptedPrivateKeyProvider(svc *kms.Client, kmsKeyId string, encryptedKey string, chainId *big.Int) (key.Provider, error)
NewKmsEncryptedPrivateKeyProvider is a utility method to easily create a transaction signer from a kms encrypted private key for the given chainID.
Types ¶
type Decrypter ¶
type Decrypter interface { // Decrypt decrypts ciphertext that was encrypted by a KMS key using RSAES_OAEP_SHA_256 algorithm Decrypt(ctx context.Context, data string) (string, error) // Encrypt encrypts plaintext with a KMS key using RSAES_OAEP_SHA_256 algorithm Encrypt(ctx context.Context, data string) (string, error) }
Decrypter defines methods used to encrypt and decrypt text with a KMS key
Click to show internal directories.
Click to hide internal directories.