types

package
v0.0.0-...-80ff8fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 5 Imported by: 0

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 Asn1EcSig

type Asn1EcSig struct {
	R asn1.RawValue
	S asn1.RawValue
}

asn1EcSig is a struct to parse ECDSA signature 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL