live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/stamp-ots


@orangecheck/stamp-ots / AnchorVerifierConfig

Interface: AnchorVerifierConfig

Defined in: anchor.ts:33

Properties

PropertyTypeDescriptionDefined in
<a id="property-headersource"></a> headerSourceBlockHeaderSourceSource of Bitcoin block headers. Can be a full node, SPV, or a pre-computed headers snapshot.anchor.ts:47
<a id="property-walkproof"></a> walkProof(input: &#123; digest: Uint8Array; proofBytes: Uint8Array; &#125;) => Promise&lt; | &#123; blockHeight: number; merkleRoot: Uint8Array; &#125; | null>Parse the proof bytes and return the Merkle root the proof walks to, plus the declared block height. Returns null if parsing failed or the proof isn't anchored.anchor.ts:39