maps

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

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