MerkleProof

data class MerkleProof(val eventHash: ByteArray, val blockHash: ByteArray, val proofPath: List<ByteArray>, val proofFlags: List<Boolean>)

Merkle proof for an event in a block.

Structure:

         Root (Block Hash)
/ \
H1 H2
/ \ / \
E1 E2 E3 E4

To prove E1 is in root, provide path: E2, H2

Constructors

Link copied to clipboard
constructor(eventHash: ByteArray, blockHash: ByteArray, proofPath: List<ByteArray>, proofFlags: List<Boolean>)

Properties

Link copied to clipboard

Root hash (should match block hash)

Link copied to clipboard

Hash of the event

Link copied to clipboard

Flags indicating left/right direction at each level

Link copied to clipboard

Hashes along path from event to root

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int