oc · docs
docs / documentation

@orangecheck/stamp-ots


@orangecheck/stamp-ots / AnchorVerifierConfig

Interface: AnchorVerifierConfig

Defined in: anchor.ts:24

Properties

PropertyTypeDescriptionDefined in
<a id="property-headersource"></a> headerSourceBlockHeaderSourceSource of Bitcoin block headers: a full node, SPV, a headers snapshot, or mempoolHeaderSource(). This is the verifier's trust anchor.anchor.ts:40
<a id="property-walkproof"></a> walkProof?(input: &#123; blockHeight?: number; 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 its block height. Optional: the built-in OTS parser is used when omitted. blockHeight is the declared height, for proofs that carry attestations at more than one height.anchor.ts:31