db

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBlockKey

func BuildBlockKey(blockTimestamp uint64, blockNumber uint64) []byte

BuildBlockKey will build a block key for a signed block

func BuildBlockValue added in v0.19.0

func BuildBlockValue(hash []byte, signature []byte, blockID *big.Int) []byte

BuildBlockValue will build a block value for a signed block

Types

type SignedBlockData added in v0.19.0

type SignedBlockData struct {
	BlockID   *big.Int
	BlockHash common.Hash
	Signature string
}

SignedBlockData is the data stored in the db for a signed block

func SignedBlockDataFromValue added in v0.19.0

func SignedBlockDataFromValue(val []byte) SignedBlockData

SignedBlockDataFromValue will build a SignedBlockData from a value

Jump to

Keyboard shortcuts

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