store

package
v0.0.0-...-2be76b0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadBlockStoreState

func LoadBlockStoreState(db dbm.DB) bcstore.BlockStoreState

LoadBlockStoreState loads state with PQC verification

func SaveBlockStoreState

func SaveBlockStoreState(bsj *bcstore.BlockStoreState, db dbm.DB)

SaveBlockStoreState persists state with PQC protection

Types

type BlockStore

type BlockStore struct {
	// contains filtered or unexported fields
}

BlockStore represents a quantum-safe low-level store for blocks with AI optimization

func NewBlockStore

func NewBlockStore(db dbm.DB, options ...BlockStoreOption) *BlockStore

NewBlockStore creates a new BlockStore with quantum-safe features and AI optimization

func (*BlockStore) SaveBlock

func (bs *BlockStore) SaveBlock(block *types.Block, blockParts *types.PartSet, seenCommit *types.Commit)

SaveBlock persists blocks with quantum-safe signatures

type BlockStoreMetrics

type BlockStoreMetrics struct {
	// contains filtered or unexported fields
}

BlockStoreMetrics holds performance metrics for AI optimization

type BlockStoreOption

type BlockStoreOption func(*BlockStore)

BlockStoreOption defines functional options for BlockStore

func WithAI

func WithAI(enabled bool) BlockStoreOption

WithAI enables/disables AI optimization

func WithPQC

func WithPQC(enabled bool) BlockStoreOption

WithPQC enables/disables quantum-safe cryptography

Jump to

Keyboard shortcuts

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