Security
What we store. What can move funds. What if we disappear.
Plain answers, for you and for your security reviewer. Who holds the sats is computed live on Custody.
On this page+
§ 01
Where your records are kept.
Records orangecheck keeps about you, store by store: Supabase rows on ochk.io, Upstash Redis behind me.ochk.io and ochk.app, OpenTimestamps calendar entries and Nostr relays (both public). The privacy policy says how long they are kept. None of it is key material that can sign from your own Bitcoin wallet. The receipt store still matters: what you have earned is recomputed from those receipts on every read. Who holds that balance is a separate question, answered below.
Account row
- Where
- ochk.io · Supabase, the accounts table
- What
- Your account id (a did:oc), an opaque random id with the same shape whichever way you sign in. A display name, a Nostr npub, which of our sites you first signed up through, when you joined and when you last signed in. How you sign in is kept apart, in the next row. No password hash. No private key. No recovery phrase.
How you sign in
- Where
- ochk.io · Supabase, the linked_identities and oauth_subjects tables
- What
- A Bitcoin address you prove with a signature, in plain text, since it is public on chain. Or, for an email code, Google or GitHub, the email address, encrypted at rest, with a keyed hash of it so ochk.io can find your account. An unkeyed hash of it is kept beside them until a planned change removes it: anyone holding a copy of the database could test a list of addresses against that one. For Google or GitHub, that provider’s id for your account too, unencrypted, so a changed email still reaches the same account.
Passkeys
- Where
- ochk.io · Supabase, the webauthn_credentials table
- What
- For each passkey you add: its credential id and public key, the label you give it, the kind of authenticator and the transports it reported, whether it checked it was you, a use counter, and when it was added, last used and removed. Its private key stays in your authenticator.
Session record
- Where
- ochk.io · Supabase, the sessions table
- What
- A hash of the session token, the session’s id, the account id, the browser of the device that opened it, and when it was issued, expires and was revoked. Sessions opened in the same browser share a roster id, so ochk.io can tell which of your accounts were signed in from it. The token itself lives only in your browser, as a cookie signed with the Ed25519 sign-in key.
A coin backing your account
- Where
- ochk.io · Supabase, the account_bonds table
- What
- Only if you back your account with a coin: its address, outpoint and amount, the block height it confirmed at, the backing message you signed and your signature, and when ochk.io last found it unspent, or saw it released or spent. Earlier backings stay with your account.
OC Chat devices
- Where
- ochk.io · Supabase, the chat_device_vouches and chat_device_revocations tables
- What
- For each chat.ochk.io device ochk.io vouches for: its device and Nostr public keys, when it vouched, and the sign-in that asked (the session’s id and its roster id). For a device you revoke, the signed revocation, which is also published to Nostr relays.
Sign-in log
- Where
- ochk.io · Supabase, the linked_identity_audit table
- What
- Each sign-in and each way to sign in you link or remove, with the IP address and browser at the time. The IP address is cleared after 90 days; the entry stays until your account is deleted.
Events, and a receipt for each paid one
- Where
- The API at me.ochk.io · Upstash Redis, events store
- What
- A record of each event an app sends about you while it pays its users, charged or not: an id, the project key, your account id, the event and any note, label or payment amount the app adds, the fee split and when it happened. Its content address is the sha256 of its canonical bytes. A paid one is a receipt, signed as it is written with the receipt key (Ed25519), which is separate from the sign-in key and public at
me.ochk.io/.well-known/oc-envelope-jwks.json. Indexed by project and by person: see the cross-app graph.
Projects, webhooks, payouts, payments and alerts
- Where
- The API at me.ochk.io · Upstash Redis, one store each
- What
- Project keys, price configs, JWK URL patterns and domain verification state. Webhook URLs and their latency figures. Outflow ledger entries. Metadata only: none of it can sign.
OpenTimestamps proofs
- Where
- Public · OpenTimestamps calendars
- What
- Public by design. Anyone can check them against Bitcoin headers with orangecheck offline.
Nostr commitments
- Where
- Public · 4 relays (relay.damus.io, nos.lol, nostr.oxtr.dev, relay.ochk.io)
- What
- Kind 30087. A salted hash of each paid receipt, never the receipt: no account, app, amount or receipt id. Release batches are published in full: each names its project, its label and window, how many events and people it counted, its fees and what its recipients were paid in all, and no person.
Email sign-in code, for ten minutes only
- Where
- ochk.io · a signed token your browser carries, and a one-time record on ochk.io
- What
- The token holds your email, a keyed check of the code (bound to your email and this request) and an expiry, signed with the sign-in key. ochk.io keeps a hash of the token’s id, its kind, its expiry and how many wrong codes it has had, and deletes that record when the code is used or after too many wrong codes; an expired record is deleted the next time ochk.io issues a sign-in token. For its send limits it also keeps, for each code sent, a keyed hash of your address and of the network that asked, and drops them after a day.
§ 02
Nothing can move your own wallet. What you earn here is a different question.
orangecheck holds what you earn while payouts are in testing, and every key that can move it. That line is read live from the federation registry and the payout system. Custody has the full picture.
If you sign in with a Bitcoin wallet
You hold your own wallet. orangecheck sees only signatures and public addresses. No recovery phrase, private key or recovery factor that can move your funds reaches orangecheck at any point. If orangecheck vanished tomorrow, your wallet is unaffected.
If you sign in with email, today
You hold no key here: orangecheck signs on your behalf. Today orangecheck holds every key that can move funds.
You can bind a Bitcoin address now, but binding is not settlement. Payouts are in testing, so no sats move yet. On-chain payouts are deferred: the deployed payer settles to Lightning addresses only.
In short: no process orangecheck runs holds key material that could move your own wallet. BIP-322 keys stay in your wallet, and the database is metadata. What orangecheck does hold while the system is in testing is its executor: the Lightning node that holds the funds and will send payouts once they start, and the key that signs each settlement. There are no guardian seats yet; when a federation forms, its key shares live with its guardians.
§ 03
The way out is the point.
Holding people's sats only stays temporary if people take the way out. If they accumulate sats and never move them out, orangecheck is a custodian in practice. The way out is a payout to a Lightning wallet you choose, and it is the thesis, not a later feature.
Your own Bitcoin key
You sign with your own Bitcoin key. That half is live, and orangecheck never sees its key material.
Paid to a wallet you choose
Your sats will be paid to a Lightning wallet you choose. Pick one that holds its own keys. Until then, orangecheck holds what you earn. Custody shows who holds each key.
Your account id stays the same either way. The email or Bitcoin address behind it can change; the id does not, so everything tied to your account moves with it.
§ 04
Five scenarios, walked through.
What happens to your funds, your account and your receipts if orangecheck is bought, shuts down, or loses a key.
A hostile owner buys orangecheck
- Funds
- Wallets you sign in with: untouched. orangecheck never had their keys. Sats earned here are different: a new owner inherits whatever orangecheck holds, so see who holds them today.
- Your account
- The new owner controls the sign-in key, so could mint sessions. They cannot forge a BIP-322 signature from your wallet.
- Past receipts
- Every anchored receipt checks offline, forever, without orangecheck.
- New receipts
- Every paid receipt is signed with orangecheck’s receipt key, whoever signed in and however, so a new owner would sign them. A wallet user’s own sign-in signatures cannot be forged, but receipts are not among them. The receipt key stays with orangecheck in every phase, so no later phase ends this.
orangecheck goes bankrupt and shuts down
- Funds
- Wallets you sign in with: untouched. Sats earned here are a claim on whoever holds them, so see who holds them today. There is no stored balance: it is recomputed from the receipts.
- Your account
- The auth host goes dark and the key it publishes at ochk.io stops being served. Within 10 minutes ochk.app refuses every session, because it can no longer check that a session was not signed out, and nobody can sign in until the auth host is back.
- Past receipts
- Every anchored receipt checks offline, forever.
- New receipts
- None: receipts are signed by orangecheck’s receipt key, so they stop when orangecheck does. A Bitcoin wallet still signs anywhere, without orangecheck; email, Google and GitHub sign-in run through the auth host and stop with it.
The sign-in key leaks
- Funds
- An attacker minting sessions cannot sign from your Bitcoin wallet; no orangecheck key reaches it. They can act as you inside the app, including asking to cash out what you have earned. The fix: rotate the sign-in key and revoke active sessions.
- Your account
- The attacker can mint a session for any account. The fix: rotate
ochk.io/.well-known/jwks.jsonand revoke the leaked key id. - Past receipts
- Receipts are signed with a separate receipt key, not the sign-in key, so they still check. Anchored history stays intact under both keys' published key sets.
- New receipts
- Unaffected: new receipts keep signing under the receipt key. The work is revoking sessions and reissuing the sign-in key.
The receipt key leaks
- Funds
- No funds can move. The receipt key only signs records. It has no authority over wallets, federation balances or session tokens.
- Your account
- Unaffected.
- Past receipts
- Receipts under the leaked key id stay checkable against a saved copy of the key set. me.ochk.io publishes one receipt key today, so after a rotation the old id leaves the published set. Trust in those signatures is weaker: whoever holds the key could forge one with the same id. A forged receipt still has to appear in the events, custody-change or payments index to be found, and orangecheck controls those writes.
- New receipts
- The fix: rotate the receipt key and deploy a new key id; new receipts sign under the new id. Publishing the old id beside the new one is not built yet.
A regulator seizes a guardian’s key share
- Funds
- There are no guardian seats today. Today orangecheck holds every key that can move funds. Custody shows who holds each key.
- Your account
- Unchanged.
- Past receipts
- Unchanged.
- New receipts
- Unchanged.
§ 05
What happens if you lose something.
orangecheck holds no key that can sign from a Bitcoin wallet, and no recovery phrase for anyone. That is also why it cannot recover an account for you. With a wallet, recovery is your wallet. With email, it is the email itself today; later, a federation's operators will be able to move it to a new sign-in.
Your wallet: a lost device, a forgotten seed
- Signed in with a Bitcoin wallet
- Standard Bitcoin wallet recovery, from your seed phrase. orangecheck cannot do it for you. Your sats are on chain or in the wallet, recoverable only with that seed.
- Signed in with email
- You hold no key here. orangecheck signs on your behalf. There is no recovery phrase to lose on this path, and none to recover with.
Access to your email
- Signed in with a Bitcoin wallet
- No effect. Wallet sign-in does not use email.
- Signed in with email
- If email is the only way you sign in, losing it loses the sign-in: orangecheck has no second way to check it is you. Adding another way to sign in (a Bitcoin wallet, Google, GitHub or a passkey) under Account removes that dependency.
Control of your email
- Signed in with a Bitcoin wallet
- No effect.
- Signed in with email
- An attacker can sign in as you with a fresh code. Once you notice, add a new way to sign in under Account and remove that email. Then sign out here, and on the .ochk.io sites choose “sign out” in any site's account menu, which signs every account out of that browser. Receipts already anchored stay checkable. Receipts recorded during the compromise carry no session, so they cannot be told apart from yours afterwards.
§ 06
If something breaks, here is what survives.
orangecheck runs on one database, and the parts that hold money and accounts are copied to a second one every day at 04:07 UTC. Every paid receipt is sent to Bitcoin for a timestamp every hour. Once anchored, it checks without us. The Nostr relays hold commitments, not receipts, so they cannot rebuild a lost store.
- Copied
- Every day at 04:07 UTC, to a second database
- Covers
- The 141 kinds of record that hold money or accounts. Any that carry secrets are encrypted first, or left out.
- Kept for
- 30 days
- Last snapshot
- Nov 14, 2026, 04:07 UTC · 949 records
- Worst-case loss
- Up to a day of changes since the last snapshot
No restore has been timed or drilled yet.
So there is no recovery-time target we can stand behind.
§ 07
The cross-app graph is a policy commitment today, not architecture.
Every app you sign in to gets the same orangecheck id for you, so two apps that compare notes can match you. Inside orangecheck, the events store keeps an index by person, and one lookup in it returns every event for that person across every app that uses orangecheck. orangecheck commits not to join those records. That promise is policy, not architecture.
Today
One lookup in the by-person index returns every event for anyone across all apps. Billing needs that join to credit the right person. So the graph is reachable in plain storage. The protection is policy and audit-log monitoring, not architecture.
Planned
Per-app ids: your wallet derives a blinded id for each app from a shared secret and the project key. orangecheck sees only the project and a blinded id, and cannot link those across projects without your secret. Billing totals use blinded coupons. Active research, not shipped.
§ 08
The rate caps are public, so real people can see they are below them.
Generous for real people, tight enough that scripted farming does not pay. They change with usage data. These are the defaults; me.ochk.io/api/abuse-limits serves the caps in force now.
One-time events per person, per day
5- Why
- Joining an app, backing your account and letting an agent act for you pay the most, so they are capped. Real people join a few apps a week, not 5 a day.
One-time events per person, per month
30- Why
- The same cap, over a month.
One app’s share of a person’s monthly earnings
≤ 60%- Why
- So no single app can pump up one person’s earnings to make its own money look like real use. It applies once a person earns from two or more apps: with one, all of it comes from that app.
- Enforced
- At cash-out. A month past it waits for a person to clear the account before it is paid. Nothing is taken from the balance.
Monthly one-time earnings that send an account to review
≥ $50- Why
- Past this in a month, a person looks at the account. The line is set in dollars so it does not drift with the bitcoin price. Everyday actions and sessions are capped by design and never reach it.
- Enforced
- At cash-out. A month past it waits for a person to clear the account before it is paid. Nothing is taken from the balance.
Longest an app can hold earnings for a batch
92 days- Why
- An app may release earnings in batches, but none can hold back what someone has earned for longer, and a batch can only close sooner.
Reporting a problem
Found something? Tell us first.
Wire-format bugs, gaps in signature checks, forged or confused receipts, custody concerns. We aim to reply to every report within 30 days. We can't promise a time to a fix yet. Disclosure is coordinated with the affected protocol repositories on GitHub.