wallet

package
v0.0.0-...-f0b43a4 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProducerTable

func CreateProducerTable() error

func GetBalance

func GetBalance() (uint64, error)

GetBalance opens the wallet and returns the balance

func GetPrivateKey

func GetPrivateKey() (*ecdsa.PrivateKey, error)

GetPrivateKey opens the wallet and returns the private key

func GetStateNonce

func GetStateNonce() (uint64, error)

GetStateNonce opens the wallet and returns the state nonce

func GetWalletAddress

func GetWalletAddress() ([]byte, error)

GetWalletAddress opens the wallet and returns the wallet address

func SetupWallet

func SetupWallet() error

SetupWallet initializes a JSON file called "aurum_wallet.json" with the hex encoded privatekey, balance, and nonce

func UpdateWallet

func UpdateWallet(balance, stateNonce uint64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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