Skip to content
On this page

Shared security model

Every orangecheck sibling inherits the same foundational security properties and the same limitations. This page is the shared threat model. Protocol-specific concerns (Lock's envelope authentication, Stamp's OTS anchor verification, Vote's ballot-commitment mode) are covered in each protocol's own docs.

Read this before shipping anything. The protocols are strong when used in the scenarios they were designed for and weak everywhere else.

TL;DRLink to this section

  • A Bitcoin stake proof proves the signer controls a Bitcoin address and has held N sats for N days.
  • It does not prove personhood, does not prove handle ownership, does not resist chain analysis, and does not hide the signer's on-chain activity.
  • For high-stakes use cases (payroll, governance final decisions, payments), Bitcoin stake is a signal in a larger decision — not the whole decision.

What a stake proof reveals (publicly, forever)Link to this section

Any orangecheck proof that's been published — to Nostr, embedded in a Stamp envelope, attached to a Vote ballot — is a public cryptographic artifact linking:

RevealedMeaning
The Bitcoin addressEvery tx history, balance, and linked UTXO is now visible under the handle(s) asserted in the proof
sats_bondedPublic wealth signal — the chain shows how much you hold at this address
days_unspentCold-storage signal — how long the UTXO has been idle
Every handle in the identities: listCross-platform correlation vector — the same real identity across all bound handles

You cannot un-publish. Nostr events replicate across independent relays; individual relay deletions don't remove them from the ecosystem.

Threats to the signerLink to this section

Chain analysis and pseudonymity lossLink to this section

Publishing an attestation binds your Bitcoin address to your handles. Chain analysis firms can then:

  • Cluster co-spending inputs to link adjacent addresses in the same wallet
  • Estimate total wallet size beyond just the bonded UTXO
  • Correlate with exchange deposit/withdrawal patterns

Mitigation: use a dedicated attestation address funded from a CoinJoin output or an isolated input. Treat it as burnt-for-publicity from day one.

Wealth advertisement ("wrench attack")Link to this section

sats_bonded is a public number. Combined with a real-name handle it gives attackers a list of wealthy targets by handle.

Mitigation: keep bonds modest; prefer pseudonymous handles; don't bind geographic identifiers to material balances.

Cross-platform correlationLink to this section

Binding multiple handles in one signed message is a stronger correlation than any of them alone. Third parties can dox or target from the union.

Mitigation: publish separate proofs for separate personas (different addresses, different handle sets).

Key loss or theftLink to this section

The proof is valid at signing time. If your keys are later stolen, the attacker can sign new proofs binding new handles to your address. There is no protocol-level revocation; the only "revoke" is to spend the bonded UTXO (which also requires the keys).

Mitigation: hardware wallet. Backup seed phrase. Treat your attestation-signing key as a hot wallet for signing and cold wallet for storage.

Threats to the verifierLink to this section

Relay censorship / partitionLink to this section

Discovering proofs via a single Nostr relay lets that relay hide events or serve partitioned views.

Mitigation: query ≥3 relays from independent operators. @orangecheck/sdk defaults to four; @orangecheck/nostr-core defaults to five.

Stale chain stateLink to this section

A signed proof reflects balance at signing time. By the time a verifier checks, the UTXO may have been spent.

Mitigation: always re-derive sats_bonded / days_unspent from live chain state, never from the signed message itself. The check() and verify() SDK functions do this by default.

BIP-322 implementation bugsLink to this section

Incorrect hashing, signature-format mishandling, or incomplete script-type coverage can silently accept invalid signatures.

Mitigation: use well-tested primitives — @orangecheck/bip322 in TypeScript, the Rust-backed bip322 crate in Python. Run the conformance vectors before any release.

Self-asserted handle spoofingLink to this section

The identities list is self-asserted at signing time. Nothing in the signature proves the signer actually controls github:alice.

Mitigation: verify handle ownership out-of-band. The reference SDKs ship helpers for Nostr (signed event containing attestation_id), GitHub (gist / repo), and a domain (its https://<domain>/.well-known/orangecheck.txt file; no DNS record is read). An X handle is checked by hand.

Sybil at the economic floorLink to this section

An attacker with N × min_sats can produce N valid proofs from N addresses. Stake raises the cost of sybils; it does not eliminate them.

Mitigation: choose min_sats and min_days thresholds such that N × min_sats exceeds the attacker's expected payoff at scale.

What orangecheck does NOT protect againstLink to this section

Not protectedWhy
Proof of personhoodAddress control is not humanness. One person can hold many addresses; one address can be shared.
Proof of uniquenessA wealthy attacker can split a bond into many smaller bonds.
Handle ownershipSelf-asserted. Verify out-of-band.
Chain analysisBitcoin is transparent; this protocol publishes on top of it.
Physical coercionAnyone with your keys can sign anything you can.
Compromised wallet softwareA malicious wallet could sign different bytes than what you see.
Zero-knowledge claimsOrangeCheck proofs are public by design. ZK variants are future research.

Per-protocol security pagesLink to this section

Each sibling has its own protocol-specific security page:

  • OC Attest — what an attestation proves and does not, the adversary model, verifier obligations
  • OC Lock — envelope authentication, device-key rotation, sealed-message re-encryption attacks
  • OC Stamp — OTS anchor verification, pre-anchor spoofing window, calendar-operator trust
  • OC Vote — ballot-commitment mode, weight-mode selection under sybil assumption, tally-operator determinism
  • OC Agent — delegation-scope confinement, action-replay protection, revocation-propagation latency, principal-key compromise blast radius
  • OC Pledge — bond-sufficiency analysis under public-exposure enforcement, resolution-mechanism gaming, abandonment-vs-default disambiguation

This page is the layer they share.

Reporting a vulnerabilityLink to this section

Security issues in a spec go to the protocol's repo:

Reference-implementation bugs go to oc-packages/security/advisories (opens in a new tab).

Do not open public issues for exploitable bugs.