digest_signer

package
v0.0.0-...-0632440 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OidPublicKeyECDSA = asn1.ObjectIdentifier{1, 2, 840, 10045, 2, 1}
	OidSecp256k1      = asn1.ObjectIdentifier{1, 3, 132, 0, 10}
)

Functions

This section is empty.

Types

type KMSCred

type KMSCred struct {
	ProjectID   string
	Location    string
	KeyRing     string
	Key         string
	KeyVersion  string             // (Optional) if you want to use a specific key version
	TokenSource oauth2.TokenSource // (Optional) if you want to use a custom token source, e.g. a service account
}

type KMSSigner

type KMSSigner struct {
	// contains filtered or unexported fields
}

func NewKMSSigner

func NewKMSSigner(ctx context.Context, cfg *KMSCred) (*KMSSigner, error)

func (*KMSSigner) Close

func (l *KMSSigner) Close() error

func (*KMSSigner) GetAddresses

func (k *KMSSigner) GetAddresses() []common.Address

func (*KMSSigner) GetConnectionStatus

func (s *KMSSigner) GetConnectionStatus() string

func (*KMSSigner) HasAddress

func (s *KMSSigner) HasAddress(addr common.Address) bool

func (*KMSSigner) ListVersionedKeys

func (k *KMSSigner) ListVersionedKeys() map[common.Address]string

func (*KMSSigner) ResourcePath

func (s *KMSSigner) ResourcePath() string

func (*KMSSigner) SignDigest

func (k *KMSSigner) SignDigest(ctx context.Context, address common.Address, digest []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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