Documentation
¶
Overview ¶
Copyright 2020 ChainSafe Systems SPDX-License-Identifier: LGPL-3.0-only
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTransactions1 ¶
func GetTransactions1() types.Transactions
func GetTransactions2 ¶
func GetTransactions2() types.Transactions
func GetTransactions3 ¶
func GetTransactions3() types.Transactions
func VerifyProof ¶
VerifyProof verifies merkle proof on path key against the provided root
Types ¶
type ProofDatabase ¶
type ProofDatabase struct {
// contains filtered or unexported fields
}
func NewProofDatabase ¶
func NewProofDatabase() *ProofDatabase
NewProofDatabase returns a wrapped map
func (*ProofDatabase) Close ¶
func (db *ProofDatabase) Close() error
Close sets ProofDatabase db's db to nil
func (*ProofDatabase) Delete ¶
func (db *ProofDatabase) Delete(key []byte) error
Delete removes the key and associated value from the database
func (*ProofDatabase) Get ¶
func (db *ProofDatabase) Get(key []byte) ([]byte, error)
Get retrieves value associated with key in ProofDatabase db, and checks for existance
type TxTries ¶
type TxTries struct {
// contains filtered or unexported fields
}
TxTries stores all the instances of tries we have on disk
func (*TxTries) CreateNewTrie ¶
AddNewTrie adds a new transaction trie to an existing TxTries object
func (*TxTries) RetrieveEncodedProof ¶
RetrieveEncodedProof retrieves an encoded Proof for a value at key in trie with root root
func (*TxTries) RetrieveProof ¶
RetrieveProof retrieves a Proof for a value at key in trie with root root