package batch
- Alphabetic
- Public
- Protected
Package Members
- package serialization
Type Members
- trait AuthenticatedTreeOps[D <: Digest] extends BatchProofConstants with ToStringHelper
Code common to the prover and verifier of https://eprint.iacr.org/2016/994 (see Appendix B, "Our Algorithms")
- class BatchAVLProver[D <: Digest, HF <: CryptographicHash[D]] extends AuthenticatedTreeOps[D] with ToStringHelper with SparkzLogging
Implements the batch AVL prover from https://eprint.iacr.org/2016/994 Not thread safe if you use with ThreadUnsafeHash
- class BatchAVLVerifier[D <: Digest, HF <: CryptographicHash[D]] extends AuthenticatedTreeOps[D] with ToStringHelper
Implements the batch AVL verifier from https://eprint.iacr.org/2016/994
- trait BatchProofConstants extends AnyRef
- case class Insert(key: ADKey, value: ADValue) extends Modification with Product with Serializable
- case class InsertOrUpdate(key: ADKey, value: ADValue) extends Modification with Product with Serializable
- sealed trait InternalNode[D <: Digest] extends Node[D]
- class InternalProverNode[D <: Digest] extends ProverNodes[D] with InternalNode[D]
- class InternalVerifierNode[D <: Digest] extends VerifierNodes[D] with InternalNode[D]
- trait KeyInVar extends AnyRef
- class LabelOnlyNode[D <: Digest] extends VerifierNodes[D]
- sealed trait Leaf[D <: Digest] extends Node[D] with KeyInVar
- case class Lookup(key: ADKey) extends Operation with Product with Serializable
- trait Modification extends Operation with SparkzEncoding
- sealed trait Node[D <: Digest] extends ToStringHelper
- sealed trait Operation extends AnyRef
- abstract class PersistentBatchAVLProver[D <: Digest, HF <: CryptographicHash[D]] extends AnyRef
- class ProverLeaf[D <: Digest] extends Leaf[D] with ProverNodes[D]
- sealed trait ProverNodes[D <: Digest] extends Node[D] with KeyInVar
- case class Remove(key: ADKey) extends Modification with Product with Serializable
- case class RemoveIfExists(key: ADKey) extends Modification with Product with Serializable
- trait ToStringHelper extends SparkzEncoding
- case class Update(key: ADKey, value: ADValue) extends Modification with Product with Serializable
- case class UpdateLongBy(key: ADKey, delta: Long) extends Modification with Product with Serializable
If the key exists in the tree, add delta to its value, fail if the result is negative, and remove the key if the result is equal to 0.
If the key exists in the tree, add delta to its value, fail if the result is negative, and remove the key if the result is equal to 0. If the key does not exist in the tree, treat it as if its value is 0: insert the key with value delta if delta is positive, fail if delta is negative, and do nothing if delta is 0.
- class VerifierLeaf[D <: Digest] extends Leaf[D] with VerifierNodes[D]
- sealed trait VerifierNodes[D <: Digest] extends Node[D]
- trait VersionedAVLStorage[D <: Digest] extends AnyRef
Interface for persistent versioned
Value Members
- object InternalNode
- object Leaf
- object PersistentBatchAVLProver
- case object UnknownModification extends Modification with Product with Serializable