Documentation ¶
Index ¶
- Constants
- func ProofDecoder(pop tmmerkle.ProofOp) (merkle.ProofOperator, error)
- type HasherType
- type ProofOp
- type Store
- func (s *Store) Delete(key []byte)
- func (s *Store) Get(key []byte) []byte
- func (s *Store) GetProof(key []byte) (*tmcrypto.ProofOps, error)
- func (s *Store) GetProofICS23(key []byte) (*ics23.CommitmentProof, error)
- func (s *Store) Has(key []byte) bool
- func (s *Store) Root() []byte
- func (s *Store) Set(key []byte, value []byte)
Constants ¶
View Source
const (
ProofType = "smt"
)
Variables ¶
This section is empty.
Functions ¶
func ProofDecoder ¶
func ProofDecoder(pop tmmerkle.ProofOp) (merkle.ProofOperator, error)
Types ¶
type ProofOp ¶
type ProofOp struct { Root []byte Key []byte Hasher HasherType Proof smt.SparseMerkleProof }
func NewProofOp ¶
func NewProofOp(root, key []byte, hasher HasherType, proof smt.SparseMerkleProof) *ProofOp
NewProofOp returns a ProofOp for a SparseMerkleProof.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store Implements types.KVStore and CommitKVStore.
func NewStore ¶
func NewStore(db dbm.DBReadWriter) *Store
func (*Store) GetProofICS23 ¶
func (s *Store) GetProofICS23(key []byte) (*ics23.CommitmentProof, error)
Click to show internal directories.
Click to hide internal directories.