models

package
v0.0.0-...-2e063d1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateBlock

type StateBlock struct {
	Type           string `json:"type" mapstructure:"type"`
	Hash           string `json:"hash" mapstructure:"hash"`
	Account        string `json:"account" mapstructure:"account"`
	Previous       string `json:"previous" mapstructure:"previous"`
	Representative string `json:"representative" mapstructure:"representative"`
	Balance        string `json:"balance" mapstructure:"balance"`
	Link           string `json:"link" mapstructure:"link"`
	LinkAsAccount  string `json:"link_as_account,omitempty" mapstructure:"link_as_account,omitempty"`
	Work           string `json:"work" mapstructure:"work"`
	Signature      string `json:"signature" mapstructure:"signature"`
	Banano         bool   `json:"-"`
}

StateBlock is a block from the nano protocol

func (*StateBlock) Sign

func (b *StateBlock) Sign(privateKey ed25519.PrivateKey) error

type WalletInfo

type WalletInfo struct {
	AccountsCount      int
	AdhocCount         int
	DeterministicCount int
	DeterministicIndex int
}

Jump to

Keyboard shortcuts

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