types

package
v0.0.0-...-0b69eb1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_LEVELS = 30
View Source
const NODE_LENGTH = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Hash [NODE_LENGTH]byte
}

func NewNode

func NewNode(hash []byte) Node

func (*Node) MarshalJSON

func (n *Node) MarshalJSON() ([]byte, error)

func (*Node) UnmarshalJSON

func (n *Node) UnmarshalJSON(b []byte) error

type State

type State struct {
	LastIndex uint64
	Version   int
	Root      Node
	Address   *address.Address
}

Jump to

Keyboard shortcuts

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