wallet

package
v0.0.0-...-69e5406 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Filenames = struct {
	sync.RWMutex
	M map[string]*SafeFilename
}{M: make(map[string]*SafeFilename)}

Functions

func GenerateAndSaveEthereumWallet

func GenerateAndSaveEthereumWallet(keystoreFilepath, password string) error

func GenerateAndSaveEthereumWalletFromPrivateKey

func GenerateAndSaveEthereumWalletFromPrivateKey(privateKey, keystoreFilepath, password string) error

Types

type EthereumKeyset

type EthereumKeyset struct {
	PublicKey [64]byte
	Address   [20]byte
	// contains filtered or unexported fields
}

func GetEthKeySet

func GetEthKeySet(keystoreFilepath, password string) (ethKeySet EthereumKeyset, err error)

func (*EthereumKeyset) ExportPrivateKey

func (e *EthereumKeyset) ExportPrivateKey() (string, error)

CAUTION! Exposing your private key may lead to a loss of Ethereum token! Do not use this function unless you are familiar with best security practices with respect to public-key cryptography.

func (*EthereumKeyset) ExportPrivateKeyBytes

func (e *EthereumKeyset) ExportPrivateKeyBytes() []byte

CAUTION! Exposing your private key may lead to a loss of Ethereum token! Do not use this function unless you are familiar with best security practices with respect to public-key cryptography.

func (*EthereumKeyset) SignTx

func (e *EthereumKeyset) SignTx(tx *types.Transaction, height string) (*types.Transaction, error)

type SafeFilename

type SafeFilename struct {
	sync.RWMutex
}

Jump to

Keyboard shortcuts

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