trustbase

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(db keyvaluedb.KeyValueDB) (*Store, error)

func (*Store) GetDB

func (x *Store) GetDB() keyvaluedb.KeyValueDB

func (*Store) GetVersionNumber

func (x *Store) GetVersionNumber(epochNumber uint64) uint64

GetVersionNumber returns trust base version number based on epoch number

func (*Store) LoadTrustBase

func (x *Store) LoadTrustBase(epochNumber uint64) (types.RootTrustBase, error)

LoadTrustBase returns trust base for the given epoch number, with the cached verifiers.

func (*Store) StoreTrustBase

func (x *Store) StoreTrustBase(epochNumber uint64, tb types.RootTrustBase) error

StoreTrustBase saves to given trust base to disk indexed by the epoch number, in cbor encoding.

Jump to

Keyboard shortcuts

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