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

genesis

package
v1.16.18 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: BSD-3-Clause Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const CodecVersion = block.CodecVersion

Variables

Functions

This section is empty.

Types

type Genesis

type Genesis struct {
	UTXOs         []*UTXO   `serialize:"true"`
	Validators    []*txs.Tx `serialize:"true"`
	Chains        []*txs.Tx `serialize:"true"`
	Timestamp     uint64    `serialize:"true"`
	InitialSupply uint64    `serialize:"true"`
	Message       string    `serialize:"true"`
}

Genesis represents a genesis state of the platform chain

func Parse

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

type UTXO

type UTXO struct {
	lux.UTXO `serialize:"true"`
	Message  []byte `serialize:"true" json:"message"`
}

UTXO adds messages to UTXOs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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