Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHeight uint8 = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Leaf

type Leaf struct {
	Index uint32
	Hash  common.Hash
}

type Proof

type Proof [DefaultHeight]common.Hash

type Root

type Root struct {
	Hash          common.Hash `meddler:"hash,hash"`
	Index         uint32      `meddler:"position"`
	BlockNum      uint64      `meddler:"block_num"`
	BlockPosition uint64      `meddler:"block_position"`
}

func (*Root) String added in v0.4.0

func (r *Root) String() string

type TreeNode

type TreeNode struct {
	Hash  common.Hash `meddler:"hash,hash"`
	Left  common.Hash `meddler:"left,hash"`
	Right common.Hash `meddler:"right,hash"`
}

Jump to

Keyboard shortcuts

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