Documentation
¶
Index ¶
- Variables
- func GetKeystorePassword() (string, error)
- func GetSigner() (ethtypes.Signer, error)
- func GetTxDataToSign() (*ethtypes.Transaction, error)
- func OutputSignedTx(signedTx *ethtypes.Transaction) error
- func PasswordValidation(inputPw string) error
- func SanityCheck(cmd *cobra.Command, args []string) error
- func Sign(pk *ecdsa.PrivateKey) error
- type GCPKMS
- func (g *GCPKMS) CreateImportJob(ctx context.Context) error
- func (g *GCPKMS) CreateKey(ctx context.Context) error
- func (g *GCPKMS) CreateKeyRing(ctx context.Context) error
- func (g *GCPKMS) ImportKey(ctx context.Context) error
- func (g *GCPKMS) ListKeyRingKeys(ctx context.Context) error
- func (g *GCPKMS) Sign(ctx context.Context, tx *ethtypes.Transaction) error
- type Opts
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 GetTxDataToSign ¶
func GetTxDataToSign() (*ethtypes.Transaction, error)
func OutputSignedTx ¶
func OutputSignedTx(signedTx *ethtypes.Transaction) error
func PasswordValidation ¶
func Sign ¶
func Sign(pk *ecdsa.PrivateKey) error
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.