account

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SampleAccount

type SampleAccount struct {
	Id         int
	PrivateKey crypto.PrivateKey
	PublicKey  crypto.PublicKey
	Address    types.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