block

package
v1.11.14 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package block provides block chain engine functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block interface {
	// ID returns the block's unique identifier
	ID() string

	// Height returns the block's height
	Height() uint64

	// Parent returns the parent block's ID
	Parent() string

	// Timestamp returns the block's timestamp
	Timestamp() int64
}

Block represents a block in the blockchain

type Builder added in v1.11.14

type Builder interface {
	// Build creates a new block
	Build() (Block, error)
}

Builder builds new blocks

Jump to

Keyboard shortcuts

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