package maps

import "github.com/google/trillian/maps"

Index

Types

type RootVerifier

type RootVerifier struct {
	// PubKey verifies the signature on the digest of MapRoot.
	PubKey crypto.PublicKey
	// SigHash computes the digest of MapRoot for signing.
	SigHash crypto.Hash
}

RootVerifier allows verification of signed root output from Trillian Maps; it is safe for concurrent use (as its contents are fixed after construction).

func NewRootVerifierFromTree

func NewRootVerifierFromTree(config *trillian.Tree) (*RootVerifier, error)

NewRootVerifierFromTree creates a new RootVerifier using the information from a Trillian Tree object.

func (*RootVerifier) VerifySignedMapRoot

func (m *RootVerifier) VerifySignedMapRoot(smr *trillian.SignedMapRoot) (*types.MapRootV1, error)

VerifySignedMapRoot verifies the signature on a SignedMapRoot and returns a verified MapRootV1 which allows access to the verified properties of the SMR.

Source Files

root_verifier.go

Version
v1.3.4
Published
Oct 23, 2019
Platform
js/wasm
Imports
8 packages
Last checked
7 hours ago

Tools for package owners.