Class SparseMerkleProof

Merkle proof CircuitValue for an element in a SparseMerkleTree.

Hierarchy

  • {
        root: Field;
        sideNodes: Field[];
    }
    • SparseMerkleProof

Constructors

  • Parameters

    • value: {
          root: Field;
          sideNodes: Field[];
      }
      • root: Field
      • sideNodes: Field[]

    Returns SparseMerkleProof

Properties

root: Field = Field
sideNodes: Field[] = ...
_isStruct: true
check: ((x: {
    root: Field;
    sideNodes: Field[];
}) => void)

Type declaration

    • (x: {
          root: Field;
          sideNodes: Field[];
      }): void
    • Parameters

      • x: {
            root: Field;
            sideNodes: Field[];
        }
        • root: Field
        • sideNodes: Field[]

      Returns void

fromFields: ((x: Field[]) => {
    root: Field;
    sideNodes: Field[];
})

Type declaration

    • (x: Field[]): {
          root: Field;
          sideNodes: Field[];
      }
    • Parameters

      • x: Field[]

      Returns {
          root: Field;
          sideNodes: Field[];
      }

      • root: Field
      • sideNodes: Field[]
fromJSON: ((x: {
    root: string;
    sideNodes: string[];
}) => {
    root: Field;
    sideNodes: Field[];
})

Type declaration

    • (x: {
          root: string;
          sideNodes: string[];
      }): {
          root: Field;
          sideNodes: Field[];
      }
    • Parameters

      • x: {
            root: string;
            sideNodes: string[];
        }
        • root: string
        • sideNodes: string[]

      Returns {
          root: Field;
          sideNodes: Field[];
      }

      • root: Field
      • sideNodes: Field[]
toAuxiliary: ((x?: {
    root: Field;
    sideNodes: Field[];
}) => [])

Type declaration

    • (x?: {
          root: Field;
          sideNodes: Field[];
      }): []
    • Parameters

      • Optional x: {
            root: Field;
            sideNodes: Field[];
        }
        • root: Field
        • sideNodes: Field[]

      Returns []

toFields: ((x: {
    root: Field;
    sideNodes: Field[];
}) => Field[])

Type declaration

    • (x: {
          root: Field;
          sideNodes: Field[];
      }): Field[]
    • Parameters

      • x: {
            root: Field;
            sideNodes: Field[];
        }
        • root: Field
        • sideNodes: Field[]

      Returns Field[]

toInput: ((x: {
    root: Field;
    sideNodes: Field[];
}) => {
    fields?: Field[];
    packed?: [Field, number][];
})

Type declaration

    • (x: {
          root: Field;
          sideNodes: Field[];
      }): {
          fields?: Field[];
          packed?: [Field, number][];
      }
    • Parameters

      • x: {
            root: Field;
            sideNodes: Field[];
        }
        • root: Field
        • sideNodes: Field[]

      Returns {
          fields?: Field[];
          packed?: [Field, number][];
      }

      • Optional fields?: Field[]
      • Optional packed?: [Field, number][]
toJSON: ((x: {
    root: Field;
    sideNodes: Field[];
}) => {
    root: string;
    sideNodes: string[];
})

Type declaration

    • (x: {
          root: Field;
          sideNodes: Field[];
      }): {
          root: string;
          sideNodes: string[];
      }
    • Parameters

      • x: {
            root: Field;
            sideNodes: Field[];
        }
        • root: Field
        • sideNodes: Field[]

      Returns {
          root: string;
          sideNodes: string[];
      }

      • root: string
      • sideNodes: string[]

Methods

  • Returns number

Generated using TypeDoc