eval

package
v0.0.0-...-fffdf24 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SignaturePrefix is the prefix for the signature entry in a proof
	SignaturePrefix = "sig:"
)

Variables

This section is empty.

Functions

func Branch

func Branch(startHash []byte, branch map[string]interface{}) (resultBranch map[string]interface{}, endHash []byte)

Branch evaluates a Chainpoint branch and returns the result branch and end hash

func Eval

func Eval(proof interface{}) (result map[string]interface{}, err error)

Eval evaluates given Proof JSON and calculate anchor infos such as merkle root

Types

This section is empty.

Jump to

Keyboard shortcuts

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