smt

package
v0.0.0-...-ded9150 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMT

type SMT struct {
	*smt.SMT
}

func NewSMT

func NewSMT() *SMT

func (*SMT) AddMessage

func (s *SMT) AddMessage(msg SmtMessage) error

func (*SMT) ProveCompact

func (s *SMT) ProveCompact(key []byte) (*smt.SparseCompactMerkleProof, error)

type SMTVerifierCompactProof

type SMTVerifierCompactProof struct {
	Key                    [32]byte
	Value                  [32]byte
	BitMask                *big.Int
	SideNodes              [][32]byte
	NumSideNodes           *big.Int
	NonMembershipLeafPath  [32]byte
	NonMembershipLeafValue [32]byte
}

func NewSMTVerifierProof

func NewSMTVerifierProof(key, value [32]byte, proof *smt.SparseCompactMerkleProof) *SMTVerifierCompactProof

type SmtMessage

type SmtMessage interface {
	Digest() ([32]byte, error)
	Key() [32]byte
}

Jump to

Keyboard shortcuts

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