zenon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrZeroFromHash            = errors.New("cannot receive a block that comes from a zero hash send block")
	ErrNonExistentAccountBlock = errors.New("account-block does not exist")
	ErrDifferentReceiver       = errors.New("cannot receive a block with a different receiver")
	ErrContainsData            = errors.New("cannot receive a block that contains data")
	ErrNoNonce                 = errors.New("cannot have difficulty and no nonce")
)
View Source
var (
	RPCLogger    = log15.New("module", "go-sdk-rpc")
	WalletLogger = log15.New("module", "go-sdk-wallet")
	CommonLogger = log15.New("module", "go-sdk-common")
)

Functions

func CheckAndSetFields

func CheckAndSetFields(client *rpc_client.RpcClient, transaction *nom.AccountBlock, address types.Address, public []byte) error

func DebugAccountBlock

func DebugAccountBlock(ab *nom.AccountBlock)

func SetDifficulty

func SetDifficulty(client *rpc_client.RpcClient, transaction *nom.AccountBlock) error

Types

type Zenon

type Zenon struct {
	Client *rpc_client.RpcClient
	// contains filtered or unexported fields
}

func NewZenon

func NewZenon(keyFilePath string) (*Zenon, error)

func (*Zenon) Address

func (z *Zenon) Address() types.Address

func (*Zenon) Send

func (z *Zenon) Send(transaction *nom.AccountBlock) error

func (*Zenon) Start

func (z *Zenon) Start(password, url string, index uint32) error

func (*Zenon) Stop

func (z *Zenon) Stop() error

Jump to

Keyboard shortcuts

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