Glossary
Quick reference for every cross-protocol term. The product's own words (account, backing, receipt, balance, release schedule) are in the orangecheck glossary.
AttestationLink to this section
An OC Attest signed envelope. Refers specifically to the OC Attest artifact — NOT to OC Lock envelopes, OC Stamp envelopes, or OC Vote ballots (which we avoid calling "attestations" to keep the vocabulary clean).
Attestation IDLink to this section
SHA-256(canonical_message) encoded as 64 lowercase hex characters.
Content-addressed, deterministic, URL-safe. Two different messages produce
different IDs.
BIP-322Link to this section
Bitcoin Improvement Proposal 322 (opens in a new tab) — the signing scheme every orangecheck protocol uses. See BIP-322 signing.
BondLink to this section
A declared commitment of sats, expressed via the bond: extension inside a
signed canonical message. Verifiers fail with bond_insufficient when the
confirmed balance drops below the declared bond, and use the declared value (not
the confirmed balance) as sats_bonded for scoring.
Canonical messageLink to this section
The exact UTF-8 text a Bitcoin wallet signs. Seven core lines for OC Attest, LF endings, one trailing LF, optional lexicographically-sorted extensions. Strict by design — see canonical message.
CAP (OC Vote)Link to this section
cap_days — the per-UTXO cap on age in days in the sats_days weight mode,
required there. Prevents a single ancient UTXO from dominating a tally.
Chain analysisLink to this section
The practice of clustering, tagging, and correlating Bitcoin addresses via on-chain heuristics. Publishing an orangecheck proof exposes the bonded address to chain-analysis linkage. See security — chain analysis.
Challenge (signed-challenge auth)Link to this section
A short-lived message with header orangecheck-auth and an explicit
expires_at. The user signs it with BIP-322 to prove address control in real
time. Distinct from an attestation so a signed challenge can never be confused
with one.
Commit (OC Vote secret mode)Link to this section
hex(SHA-256("oc-vote/v0/commit\npoll_id: <hex>\nvoter: <addr>\noption: <id>\n"))
— a voter's masked choice during the commit phase. Revealed in the reveal phase
so the poll's tally can count it.
Conformance vectorLink to this section
A (inputs, expected_output) fixture pinned in a protocol's
oc-*-protocol/conformance/ directory. Reference implementations are required
to pass them on every CI run. See conformance vectors.
CSRFLink to this section
Cross-Site Request Forgery — when a malicious site tricks a logged-in user's
browser into sending a request to a different site. The family session cookie is
SameSite=None, so the defence is a Sec-Fetch-Site / Origin check: a cookie
session on a state-changing request is refused unless it comes from the same
origin or a listed family site.
days_unspentLink to this section
Integer number of days since the earliest confirmation time among the bonded
UTXOs (or, if bond: is present, computed via oldest-first greedy selection).
Recomputed from live chain state at verification time.
Device key (OC Lock)Link to this section
An X25519 keypair representing one client device. Bound to a Bitcoin address via a BIP-322-signed binding statement, published to the kind-30078 directory.
Discovery relayLink to this section
A Nostr relay queried to find a published artifact (attestation, Lock device record, Stamp envelope, Vote poll) by its addressable tags. Default set ships with each SDK.
Envelope (OC Lock / OC Stamp)Link to this section
A self-contained JSON blob containing the artifact + signature + metadata. Verifies offline. Formats are per-protocol.
GateLink to this section
A server-side policy that either passes or rejects a request based on an OC
Attest proof. @orangecheck/gate ships drop-in gates for common Node / edge
frameworks.
HandleLink to this section
A user-facing identifier on an external system — nostr:npub1…, github:alice,
dns:example.com, twitter:@alice, etc. Bound inside the signed message as a
self-asserted claim.
Identity bindingLink to this section
A protocol:identifier pair bound inside the identities: field of an OC
Attest canonical message. Self-asserted — must be verified out-of-band if
ownership matters.
Kind 30078Link to this section
The original family Nostr event kind. It carries OC Attest attestations, OC Lock and OC Chat device records, and OC Pledge envelopes; the other protocols publish on kinds of their own, in the family range 30078–30115. Parameterized replaceable per NIP-78 (opens in a new tab) (application-specific data). See Nostr kind-30078.
MiCA / VASP / MSBLink to this section
Regulatory designations for custodial cryptocurrency services: Crypto-Asset Service Provider (EU MiCA 2023/1114), Virtual Asset Service Provider (FATF), Money Services Business (US BSA 31 USC §5330). The orangecheck protocols sign and verify messages; they never custody, transfer, or convert assets. ochk.app holds the sats people earn while it is in testing; see ochk.app/custody (opens in a new tab).
Nonce (canonical message)Link to this section
16 random bytes encoded as 32 lowercase hex characters. Prevents replay — a
signature for one nonce cannot be re-used for another.
OTS (OpenTimestamps)Link to this section
The protocol OC Stamp uses to anchor envelope IDs to Bitcoin block headers. Calendars batch digests into a Merkle tree; the root is committed on-chain; clients upgrade pending proofs to confirmed ones.
Reference score (score_v0)Link to this section
score_v0 = round(ln(1 + sats_bonded) * (1 + days_unspent / 30), 2)
One registered algorithm for OC Attest. Advisory — gates should use raw metrics.
Relying Party (RP)Link to this section
The app that consumes a proof and makes a decision. In orangecheck, an RP is whatever is gating access.
sats_bondedLink to this section
Integer satoshis — sum of confirmed, unspent UTXO values at the address, or the
declared bond: value if present.
SchemeLink to this section
The signature scheme used: "bip322" or "legacy". BIP-322 is preferred.
legacy (BIP-137) is accepted for P2PKH, P2SH-P2WPKH, P2WPKH and P2TR
addresses; P2PKH can sign only with legacy.
SubjectLink to this section
In /api/check / /api/discover, the thing you're querying about — an address,
attestation ID, or bound identity. Every endpoint accepts exactly one subject
per request.
TierLink to this section
A UI convenience for rendering OC Attest proofs. Four tiers: bronze (10k ×
30d), silver (100k × 90d), gold (1M × 180d), platinum (10M × 365d).
Thresholds are a suggestion, not protocol.
UTXOLink to this section
Unspent Transaction Output. The atomic unit of Bitcoin balance. An address's
confirmed UTXOs are what sats_bonded sums over.
VerifierLink to this section
Any app or server that checks a signature and recomputes metrics. The hosted
verifier at ochk.io/api/* is one; the SDK's verify() is another; your own
server is a third.
Weight mode (OC Vote)Link to this section
one_per_address / sats / sats_days — how a ballot resolves to a numeric
weight in the tally. See weight modes.
Wrench attackLink to this section
Physical-coercion attack on a cryptocurrency holder. Named after
xkcd/538 (opens in a new tab). Relevant because sats_bonded is a public
wealth signal; binding large bonds to real-name handles amplifies the risk. See
security — wealth advertisement.