gethkeystore

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path     string `json:"path"`
	Password string `json:"-"`
}

func (*Config) SetDefault

func (cfg *Config) SetDefault() *Config

type KeyStore

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

func New

func New(cfg *Config) *KeyStore

func (*KeyStore) CreateAccount

func (s *KeyStore) CreateAccount(_ context.Context) (*keystore.Account, error)

func (*KeyStore) Import added in v0.2.2

func (s *KeyStore) Import(_ context.Context, hexkey string) (*keystore.Account, error)

Import a secp256k1 private key in hexadecimal format

func (*KeyStore) SignTx

Jump to

Keyboard shortcuts

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