Documentation ¶
Index ¶
- type Matched
- type MerkleBlock
- type PartialMerkleTree
- func (pmt *PartialMerkleTree) ExtractMatches(matches []util.Hash, items []int) *util.Hash
- func (pmt *PartialMerkleTree) Serialize(w io.Writer) (err error)
- func (pmt *PartialMerkleTree) TraverseAndBuild(height uint, pos uint, txids []util.Hash, matches []bool)
- func (pmt *PartialMerkleTree) TraverseAndExtract(height uint, pos uint, bitUsed int, hashUsed int, matches []util.Hash, ...) *util.Hash
- func (pmt *PartialMerkleTree) Unserialize(r io.Reader) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MerkleBlock ¶
type MerkleBlock struct { Header block.BlockHeader Txn *PartialMerkleTree MatchedTxn []Matched }
func NewMerkleBlock ¶
func NewMerkleBlock(bk *block.Block, txids *set.Set) *MerkleBlock
func (*MerkleBlock) Unserialize ¶
func (mb *MerkleBlock) Unserialize(r io.Reader) (err error)
type PartialMerkleTree ¶
type PartialMerkleTree struct {
// contains filtered or unexported fields
}
func NewPartialMerkleTree ¶
func NewPartialMerkleTree(txids []util.Hash, matches []bool) *PartialMerkleTree
func (*PartialMerkleTree) ExtractMatches ¶
func (*PartialMerkleTree) Serialize ¶
func (pmt *PartialMerkleTree) Serialize(w io.Writer) (err error)
func (*PartialMerkleTree) TraverseAndBuild ¶
func (*PartialMerkleTree) TraverseAndExtract ¶
func (*PartialMerkleTree) Unserialize ¶
func (pmt *PartialMerkleTree) Unserialize(r io.Reader) (err error)
Click to show internal directories.
Click to hide internal directories.