oc · docs
docs / documentation

@orangecheck/stamp-ots


@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

ParameterType
input&#123; blockHeight?: number; digest: Uint8Array; proofBytes: Uint8Array; &#125;
input.blockHeight?number
input.digestUint8Array
input.proofBytesUint8Array

Returns

Promise&lt; | &#123; blockHeight: number; merkleRoot: Uint8Array; &#125; | null>