genesis

package
v0.0.0-...-5d05a64 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGenesis

func GenerateGenesis(chainID uint64, stakeTransactionsFile string,
	dilithiumInfos []*protos.DilithiumInfo, genesisFilename string,
	preStateFilename string) error

func GeneratePreState

func GeneratePreState(transactions []*protos.Transaction) *protos.PreState

func GenesisBlock

func GenesisBlock() (*block.Block, error)

func LoadPreState

func LoadPreState() (*protos.PreState, error)

func NewGenesisBlock

func NewGenesisBlock(chainID uint64, txs []*protos.Transaction,
	foundationDilithiumPK []byte) (*block.Block, error)

func WriteYML

func WriteYML(jsonData []byte, filename string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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