genesis

package
v1.10.18-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: BSD-3-Clause Imports: 3 Imported by: 7

Documentation

Index

Constants

View Source
const Version = block.Version

Version is the current default codec version

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