account

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAccount added in v0.0.2

func GenAccount() (crypto.PrivateKey, crypto.PublicKey)

func SavePrivateKey added in v0.0.2

func SavePrivateKey(path string, content string)

Types

type SampleAccount

type SampleAccount struct {
	Id         int
	PrivateKey crypto.PrivateKey
	PublicKey  crypto.PublicKey
	Address    common.Address

	InitBalance uint64
	// contains filtered or unexported fields
}

func NewAccount

func NewAccount(privateKeyHex string) *SampleAccount

func (*SampleAccount) ConsumeNonce

func (s *SampleAccount) ConsumeNonce() (uint64, error)

func (*SampleAccount) GetNonce

func (s *SampleAccount) GetNonce() (uint64, error)

func (*SampleAccount) SetNonce

func (s *SampleAccount) SetNonce(lastUsedNonce uint64)

Jump to

Keyboard shortcuts

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