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 ¶
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.
Click to show internal directories.
Click to hide internal directories.