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
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)
Click to show internal directories.
Click to hide internal directories.