signer

package
v0.1.122-dev Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: AGPL-3.0 Imports: 32 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InputOpts = Opts{}
View Source
var PasswordPrompt = promptui.Prompt{
	Label:    "Password",
	Validate: PasswordValidation,
	Mask:     '*',
}

Functions

func GetKeystorePassword

func GetKeystorePassword() (string, error)

func GetSigner

func GetSigner() (ethtypes.Signer, error)

func GetTxDataToSign

func GetTxDataToSign() (*ethtypes.Transaction, error)

func OutputSignedTx

func OutputSignedTx(signedTx *ethtypes.Transaction) error

func PasswordValidation

func PasswordValidation(inputPw string) error

func SanityCheck

func SanityCheck(cmd *cobra.Command, args []string) error

func Sign

func Sign(pk *ecdsa.PrivateKey) error

Types

type GCPKMS

type GCPKMS struct{}

func (*GCPKMS) CreateImportJob

func (g *GCPKMS) CreateImportJob(ctx context.Context) error

func (*GCPKMS) CreateKey

func (g *GCPKMS) CreateKey(ctx context.Context) error

func (*GCPKMS) CreateKeyRing

func (g *GCPKMS) CreateKeyRing(ctx context.Context) error

func (*GCPKMS) ImportKey

func (g *GCPKMS) ImportKey(ctx context.Context) error

func (*GCPKMS) ListKeyRingKeys

func (g *GCPKMS) ListKeyRingKeys(ctx context.Context) error

func (*GCPKMS) Sign

func (g *GCPKMS) Sign(ctx context.Context, tx *ethtypes.Transaction) error

type Opts

type Opts struct {
	Keystore       string
	PrivateKey     string
	KMS            string
	KeyID          string
	UnsafePassword string
	DataFile       string
	SignerType     string
	ChainID        uint64
	GCPProjectID   string
	GCPRegion      string
	GCPKeyRingID   string
	GCPImportJob   string
	GCPKeyVersion  int
}

Opts are the input arguments for signer commands.

Jump to

Keyboard shortcuts

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