Class CompactSparseMerkleProof

Proof for compact sparse merkle tree

Hierarchy

  • {
        nonMembershipLeafData: Field[];
        root: Field;
        siblingData: Field[];
        sideNodes: Field[];
    }
    • CompactSparseMerkleProof

Constructors

  • Parameters

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

    Returns CompactSparseMerkleProof

Properties

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

Type declaration

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

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

      Returns void

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

Type declaration

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

      • x: Field[]

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

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

Type declaration

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

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

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

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

Type declaration

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

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

      Returns []

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

Type declaration

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

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

      Returns Field[]

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

Type declaration

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

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

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

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

Type declaration

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

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

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

      • nonMembershipLeafData: string[]
      • root: string
      • siblingData: string[]
      • sideNodes: string[]

Methods

  • Returns number

Generated using TypeDoc