class FilteredTransaction
Class representing merkleized filtered transaction.
rootHash
- Merkle tree root hash.
filteredLeaves
- Leaves included in a filtered transaction.
partialMerkleTree
- Merkle branch needed to verify filteredLeaves.
filteredLeaves |
val filteredLeaves: FilteredLeaves |
partialMerkleTree |
val partialMerkleTree: PartialMerkleTree |
rootHash |
val rootHash: SecureHash |
verify |
fun verify(): Boolean
Runs verification of Partial Merkle Branch against rootHash. |
verifyWithFunction |
fun verifyWithFunction(checkingFun: (Any) -> Boolean): Boolean
Runs verification of Partial Merkle Branch against rootHash. Checks filteredLeaves with provided checkingFun. |
buildMerkleTransaction |
fun buildMerkleTransaction(wtx: WireTransaction, filtering: (Any) -> Boolean): FilteredTransaction
Construction of filtered transaction with Partial Merkle Tree. |