primitives

package
v0.0.0-...-fee3720 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const HEXTYPE = "INTERNAL"

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	ID             BlockID
	Time           int64
	PrevRootHash   []byte
	Hash           []byte
	ValidatorAddr  string
	TransactionIDs map[string]Transaction.Transaction
}

type BlockID

type BlockID *big.Int

type BlockchainIterator

type BlockchainIterator struct {
	CurrentBlock  *Block
	CurrentHeader *Header
	*storage.LocalStorage
}
type Header struct {
	BlockIndex int
}

type InvalidSnapShots

type InvalidSnapShots []*big.Int

type Receipts

type Receipts struct {
	ID               *big.Int
	TxID             *big.Int
	Time             uint64
	Recipient        string
	From             string
	Value            *big.Int
	Fee              *big.Int
	InBlockID        *big.Int
	ValidatorAddress string
	ValidatorHash    string
	Signature        []byte
}

type SnapShot

type SnapShot struct {
	ID               *big.Int
	SecPubKey        []byte
	Genesis          iBlock
	ChainID          *big.Int
	Time             uint64
	Receipts         []Receipts
	NumTx            uint32
	NumWallets       uint32
	LastHash         []byte
	LastTxID         *big.Int
	ChainValue       *big.Int
	NumAccounts      *big.Int
	LastCodeExecuted string
	LastProof        string
}

type SnapShots

type SnapShots []*SnapShot

type State

type State struct {
	ID   *big.Int
	Time uint64

	SnapShotID *big.Int
	// contains filtered or unexported fields
}

type ValidatedSnapShots

type ValidatedSnapShots []*big.Int

Jump to

Keyboard shortcuts

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