sender

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender interface {
	// Address returns the Ethereum address for the signer.
	Address() common.Address
	// Sign takes in a hash and signs it using the sender's private key.
	Sign(ctx context.Context, hash common.Hash) ([]byte, error)
}

func FromKMS

func FromKMS(ctx context.Context, client *kms.Client, keyID string) (Sender, error)

func FromKey

func FromKey(hexPriv string) (Sender, error)

Jump to

Keyboard shortcuts

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