Variable regularMerkleTreeConst

regularMerkleTree: {
    MerkleTree: typeof MerkleTree;
    calculateMerkleRoot: ((__namedParameters: MerkleRootInfo) => {
        appendPath: Buffer[];
        root: Buffer;
        size: number;
    });
    calculateMerkleRootWithLeaves: ((data: Buffer[]) => Buffer);
    calculateRightWitness: ((size: number, values: Buffer[]) => Buffer[]);
    calculateRootFromRightWitness: ((idx: number, appendPath: Buffer[], rightWitness: Buffer[]) => Buffer);
    calculateRootFromUpdateData: ((updateData: Buffer[], proof: {
        indexes: number[];
        siblingHashes: Buffer[];
        size: number;
    }) => Buffer);
    verifyDataBlock: ((queryData: readonly Buffer[], proof: Proof, rootHash: Buffer) => boolean);
    verifyProof: ((queryHashes: readonly Buffer[], proof: Proof, rootHash: Buffer) => boolean);
    verifyRightWitness: ((idx: number, appendPath: Buffer[], rightWitness: Buffer[], root: Buffer) => boolean);
} = ...

Type declaration

  • MerkleTree: typeof MerkleTree
  • calculateMerkleRoot: ((__namedParameters: MerkleRootInfo) => {
        appendPath: Buffer[];
        root: Buffer;
        size: number;
    })
      • (__namedParameters: MerkleRootInfo): {
            appendPath: Buffer[];
            root: Buffer;
            size: number;
        }
      • Parameters

        • __namedParameters: MerkleRootInfo

        Returns {
            appendPath: Buffer[];
            root: Buffer;
            size: number;
        }

        • appendPath: Buffer[]
        • root: Buffer
        • size: number
  • calculateMerkleRootWithLeaves: ((data: Buffer[]) => Buffer)
      • (data: Buffer[]): Buffer
      • Parameters

        • data: Buffer[]

        Returns Buffer

  • calculateRightWitness: ((size: number, values: Buffer[]) => Buffer[])
      • (size: number, values: Buffer[]): Buffer[]
      • Parameters

        • size: number
        • values: Buffer[]

        Returns Buffer[]

  • calculateRootFromRightWitness: ((idx: number, appendPath: Buffer[], rightWitness: Buffer[]) => Buffer)
      • (idx: number, appendPath: Buffer[], rightWitness: Buffer[]): Buffer
      • Parameters

        • idx: number
        • appendPath: Buffer[]
        • rightWitness: Buffer[]

        Returns Buffer

  • calculateRootFromUpdateData: ((updateData: Buffer[], proof: {
        indexes: number[];
        siblingHashes: Buffer[];
        size: number;
    }) => Buffer)
      • (updateData: Buffer[], proof: {
            indexes: number[];
            siblingHashes: Buffer[];
            size: number;
        }): Buffer
      • Parameters

        • updateData: Buffer[]
        • proof: {
              indexes: number[];
              siblingHashes: Buffer[];
              size: number;
          }
          • indexes: number[]
          • siblingHashes: Buffer[]
          • size: number

        Returns Buffer

  • verifyDataBlock: ((queryData: readonly Buffer[], proof: Proof, rootHash: Buffer) => boolean)
      • (queryData: readonly Buffer[], proof: Proof, rootHash: Buffer): boolean
      • Parameters

        • queryData: readonly Buffer[]
        • proof: Proof
        • rootHash: Buffer

        Returns boolean

  • verifyProof: ((queryHashes: readonly Buffer[], proof: Proof, rootHash: Buffer) => boolean)
      • (queryHashes: readonly Buffer[], proof: Proof, rootHash: Buffer): boolean
      • Parameters

        • queryHashes: readonly Buffer[]
        • proof: Proof
        • rootHash: Buffer

        Returns boolean

  • verifyRightWitness: ((idx: number, appendPath: Buffer[], rightWitness: Buffer[], root: Buffer) => boolean)
      • (idx: number, appendPath: Buffer[], rightWitness: Buffer[], root: Buffer): boolean
      • Parameters

        • idx: number
        • appendPath: Buffer[]
        • rightWitness: Buffer[]
        • root: Buffer

        Returns boolean

Generated using TypeDoc