@orangecheck/stamp-ots / walkOtsProof
Function: walkOtsProof()
function walkOtsProof(input: {
blockHeight?: number;
digest: Uint8Array;
proofBytes: Uint8Array;
}): Promise<
| {
blockHeight: number;
merkleRoot: Uint8Array;
}
| null>;
Defined in: anchor.ts:44
Built-in walker: parse the OTS proof and pick the Bitcoin attestation.
Parameters
| Parameter | Type |
|---|---|
input | { blockHeight?: number; digest: Uint8Array; proofBytes: Uint8Array; } |
input.blockHeight? | number |
input.digest | Uint8Array |
input.proofBytes | Uint8Array |
Returns
Promise<
| {
blockHeight: number;
merkleRoot: Uint8Array;
}
| null>