wallet

package
v0.0.0-...-7c31276 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeystoreDirPath

func GetKeystoreDirPath(dataDir string) string

func NewKeystoreAccount

func NewKeystoreAccount(dataDir, password string) (common.Address, error)

func NewRandomKey

func NewRandomKey() (*keystore.Key, error)

func Sign

func Sign(msg []byte, privKey *ecdsa.PrivateKey) (sig []byte, err error)

func Verify

func Verify(msg, sig []byte) (*ecdsa.PublicKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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