merklestore

package
v0.0.0-...-5fd17ea Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: BSD-3-Clause, BSD-3-Clause Imports: 9 Imported by: 0

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

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

GetLatestEntry returns the latest (active) entry for the given MerkleStore

Jump to

Keyboard shortcuts

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