//#region src/proof/proof-inner-node.d.ts /** * ProofInnerNode represents an inner node in a proof path. * Used internally during proof construction before conversion to ICS23 format. * * Contract: Left and Right can never both be set. Will result in an empty [] roothash. * * Based on Go IAVL v1.3.5 proof.go ProofInnerNode */ declare class ProofInnerNode { /** * Height of this inner node in the tree */ readonly height: number; /** * Size (number of leaf nodes) in the subtree rooted at this node */ readonly size: bigint; /** * Version when this node was created */ readonly version: bigint; /** * Hash of the left child (null if we traversed left) */ readonly left: Uint8Array | null; /** * Hash of the right child (null if we traversed right) */ readonly right: Uint8Array | null; constructor(height: number, size: bigint, version: bigint, left: Uint8Array | null, right: Uint8Array | null); /** * Compute the hash of this inner node given the child hash. * * The hash is computed as: * SHA256(varint(height) || varint(size) || varint(version) || * varint_bytes(left_or_child) || varint_bytes(right_or_child)) * * Where left_or_child is either the left sibling hash or the child hash, * and right_or_child is either the right sibling hash or the child hash. * * @param childHash - The hash of the child node (the path we traversed) * @returns The computed hash * @throws Error if both left and right are set, or on encoding errors */ hash(childHash: Uint8Array): Uint8Array; /** * String representation for debugging */ toString(): string; private toHex; } //#endregion export { ProofInnerNode }; //# sourceMappingURL=proof-inner-node.d.ts.map