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