Skip to main content

MetadataMap

MetadataMap is a wrapper around MerkleMap that stores Metadata

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

data

data: MerkleMap

The MerkleMap of the data

kind

kind: MerkleMap

The MerkleMap of the kind

Methods

get

  • Get value at key


    Parameters

    • key: Field

      key of the data and kind requested

    Returns Metadata

    Metadata value of the data and kind at key

getRoot

  • Calculates the root of the MerkleMap


    Returns Metadata

    Metadata root of the MerkleMap

getWitness

  • Calculates the witness of the data and kind at key


    Parameters

    • key: Field

      key of the data and kind, for which witness is requested

    Returns MetadataWitness

    MetadataWitness witness of the data and kind at key

set

  • Sets the data and kind at key


    Parameters

    • key: Field

      key of the data and kind to set

    • value: Metadata

      Metadata data and kind to set

    Returns void