merklestore

package
v0.0.0-...-52f30ea Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 10 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMerkleStore

func NewMerkleStore(g *libkb.GlobalContext, tag, endpoint, kitFilename string, supportedVersion keybase1.MerkleStoreSupportedVersion,
	getHash func(root libkb.MerkleRoot) string) libkb.MerkleStore

Types

type MerkleStoreError

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

func NewMerkleStoreError

func NewMerkleStoreError(msgf string, a ...interface{}) MerkleStoreError

func (MerkleStoreError) Error

func (e MerkleStoreError) Error() string

type MerkleStoreImpl

type MerkleStoreImpl struct {
	libkb.Contextified
	sync.Mutex
	// contains filtered or unexported fields
}

MerkleStore is the way verify data stored on the server matches the hash which is published in the merkle root. This allows an auditable trail for data the clients fetch from the server and use for proof or other validation. Talks to MerkleClient Has an in-memory and LocalDB cache.

func (*MerkleStoreImpl) GetLatestEntry

GetLatestEntry returns the latest entry for the given MerkleStore

func (*MerkleStoreImpl) GetLatestEntryWithKnown

func (s *MerkleStoreImpl) GetLatestEntryWithKnown(m libkb.MetaContext, knownHash *keybase1.MerkleStoreKitHash) (ret *keybase1.MerkleStoreEntry, err error)

GetLatestEntry returns the latest entry for the given MerkleStore. Returns (nil, nil) if knownHash is the active entry.

Jump to

Keyboard shortcuts

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