Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asn1EcPublicKey ¶
type Asn1EcPublicKey struct { EcPublicKeyInfo Asn1EcPublicKeyInfo PublicKey asn1.BitString }
asn1EcPublicKey is a struct to parse ECDSA public key from KMS.
type Asn1EcPublicKeyInfo ¶
type Asn1EcPublicKeyInfo struct { Algorithm asn1.ObjectIdentifier Parameters asn1.ObjectIdentifier }
asn1EcPublicKeyInfo is a struct to parse ECDSA public key from KMS.
type KeyManagementSystem ¶
type KeyManagementSystem interface { KeyViewer }
KeyManagementSystem is an interface that combines the KeyGenerator and KeyViewer interfaces.
type KeyViewer ¶
type KeyViewer interface { // ListKeysByID returns a list of all keys managed by the KMS. ListKeysByID() ([]string, error) // GetSigner returns a TxSigner instance associated with the given key ID. GetSigner(id string) TxSigner }
KeyViewer is an interface that defines a method for retrieving a TxSigner instance associated with a key ID.
type TxSigner ¶
type TxSigner interface { // Address returns the Ethereum address associated with the signer. Address() common.Address // SignerFunc returns a function that can be used to sign a transaction generated from a bind. SignerFunc(context.Context, *big.Int) (bind.SignerFn, error) }
TxSigner is an interface that defines a method for signing a transaction generated from a bind. The Address method returns the Ethereum address associated with the signer. The SignerFunc method returns a function that can be used to sign a transaction generated from a bind.
Click to show internal directories.
Click to hide internal directories.