MCPcopy Create free account
hub / github.com/cameri/nostream / OtsAttestation

Interface OtsAttestation

src/utils/nip03.ts:76–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74export type OtsAttestationKind = 'bitcoin' | 'pending' | 'litecoin' | 'ethereum' | 'unknown'
75
76export interface OtsAttestation {
77 kind: OtsAttestationKind
78 /**
79 * The 8-byte attestation type tag in lowercase hex. Useful for diagnostics
80 * and for distinguishing unknown attestation types from each other.
81 */
82 tag: string
83 /**
84 * Block height for Bitcoin / Litecoin / Ethereum attestations. Undefined
85 * when the attestation doesn't carry one (or failed to parse cleanly for
86 * unknown tags — we don't trust the height of attestations we don't know
87 * how to interpret).
88 */
89 height?: number
90}
91
92export interface OtsFileSummary {
93 /** Major version number from the file header. Currently always 1. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected