signer

package
v0.1.102 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: AGPL-3.0 Imports: 32 Imported by: 0

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