models

package module
v0.0.0-...-589b9c5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 4 Imported by: 0

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"`
	Hash           []byte  `json:"hash"`
	Account        string  `json:"account"`
	Previous       []byte  `json:"previous"`
	Representative string  `json:"representative"`
	Balance        big.Int `json:"balance"`
	Link           []byte  `json:"link"`
	Work           string  `json:"work"`
	Signature      []byte  `json:"signature"`
}

StateBlock is a block from the nano protocol

func (*StateBlock) Sign

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

Jump to

Keyboard shortcuts

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