FusedMerklePatriciaForestry

scalus.crypto.trie.FusedMerklePatriciaForestry
See theFusedMerklePatriciaForestry companion object
case class FusedMerklePatriciaForestry(root: Node)

Off-chain Merkle Patricia Forestry implementation producing binary proofs for the mpfb on-chain verifier.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Deletes an element by the specified key from the trie. If this key is missing from the trie, throws an exception.

Deletes an element by the specified key from the trie. If this key is missing from the trie, throws an exception.

Attributes

def get(key: ByteString): Option[ByteString]

Returns the value stored by the specified key, or None

Returns the value stored by the specified key, or None

Attributes

Inserts a new element into this trie

Inserts a new element into this trie

Attributes

def isEmpty: Boolean

true if this trie has no elements, false otherwise

true if this trie has no elements, false otherwise

Attributes

Creates a binary-encoded proof of inclusion, suitable for the mpfb on-chain verifier.

Creates a binary-encoded proof of inclusion, suitable for the mpfb on-chain verifier.

Attributes

Creates a binary-encoded proof of exclusion, suitable for the mpfb on-chain verifier.

Creates a binary-encoded proof of exclusion, suitable for the mpfb on-chain verifier.

Attributes

The hash of this MPF

The hash of this MPF

Attributes

def size: Int

The amount of elements in the tree.

The amount of elements in the tree.

Attributes

Wrap the root hash as an on-chain mpfb value.

Wrap the root hash as an on-chain mpfb value.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product