genesis

package
v0.0.0-...-3fa05c8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Version = blocks.Version

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 State

type State struct {
	UTXOs         []*Vidar.UTXO
	Validators    []*txs.Tx
	Chains        []*txs.Tx
	Timestamp     uint64
	InitialSupply uint64
}

State represents the genesis state of the platform chain

func ParseState

func ParseState(genesisBytes []byte) (*State, error)

type UTXO

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

UTXO adds messages to UTXOs

Jump to

Keyboard shortcuts

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