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

genesis

package
v1.28.7 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CodecVersion = block.CodecVersion

Variables

View Source
var Codec = block.Codec

Functions

func Block

func Block(genesis *Genesis) (*block.Stateless, error)

Types

type Allocation

type Allocation struct {
	Address ids.ShortID `serialize:"true" json:"address"`
	Balance uint64      `serialize:"true" json:"balance"`
}

type Genesis

type Genesis struct {
	Timestamp   int64        `serialize:"true" json:"timestamp"`
	Allocations []Allocation `serialize:"true" json:"allocations"`
}

func Parse

func Parse(bytes []byte) (*Genesis, error)

Jump to

Keyboard shortcuts

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