case class BatchMerkleProof[D <: Digest](indices: Seq[(Int, Digest)], proofs: Seq[(Digest, Side)])(implicit hf: CryptographicHash[D]) extends SparkzEncoding with Product with Serializable
Implementation is based on Compact Merkle Multiproofs by Lum Ramabaja Retrieved from https://deepai.org/publication/compact-merkle-multiproofs
- indices
- leaf indices used to build the proof
- proofs
- hash and side of nodes in the proof
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BatchMerkleProof
- Serializable
- Product
- Equals
- SparkzEncoding
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new BatchMerkleProof(indices: Seq[(Int, Digest)], proofs: Seq[(Digest, Side)])(implicit hf: CryptographicHash[D])
- indices
- leaf indices used to build the proof
- proofs
- hash and side of nodes in the proof
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- implicit val encoder: SparkzEncoder
- Definition Classes
- SparkzEncoding
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: Any): Boolean
- Definition Classes
- BatchMerkleProof → Equals → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit val hf: CryptographicHash[D]
- val indices: Seq[(Int, Digest)]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val proofs: Seq[(Digest, Side)]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def valid(expectedRootHash: Digest): Boolean
Validate BatchMerkleProof against an expected root hash
Validate BatchMerkleProof against an expected root hash
- expectedRootHash
- BatchMerkleProof should evaluate to this hash
- returns
true or false (Boolean)
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated