- Open spec, MIT
- The bond stays in your wallet
- Never slashed
- Anyone can check the outcome
Today someone else keeps the score.
People make public promises all the time. A release date. A service level. A research plan registered before the data comes in.
A registrar holds the record, an escrow agent holds the money, or a court decides. Each one is a party you have to trust. Most promises are also written so that only a person can judge whether they were kept.
OC Pledge does two things instead. It writes the promise so a machine can check it. And it puts something at stake without handing your coins to anyone.
Write it. Bond it. Anyone checks.
- 01
Write the promise and the rule that checks it
One line in plain words, plus one rule from a closed list of seven: a Bitcoin block or balance, a Nostr post, an OC Stamp, a file at a URL, a DNS record, an OC Vote result, or the other party’s signature. Set a deadline, as a date or a block height. - 02
Bond it and sign it
Point to an OC Attest attestation: sats at your address, left unspent. Name the minimum amount and age. Sign once with your Bitcoin wallet. Nothing is sent and nothing moves. The pledge is published to Nostr relays. - 03
Anyone checks the outcome
At the deadline, anyone runs the rule against public data and gets the same answer: kept or broken. The result stays attached to your address. You cannot take a pledge back. If you give up early, you publish an abandonment, and it counts as broken.
- What Bitcoin does here
- The bond is coins at your address that stay unspent, and anyone can see their amount and age on the chain. Deadlines can be block heights, and the
chain_staterule reads Bitcoin directly. An Ed25519 key has no stake to point at and no neutral clock.
Every other way keeps the score for you.
The spec’s own audit of the field, in words.
- A promise about the futureOC PledgeYesEscrow or multisigYesEAS (Ethereum)YesArbitration courtsYesOSF preregistrationYes
- Bitcoin behind itOC PledgeYes, an OC Attest bondEscrow or multisigYesEAS (Ethereum)NoArbitration courtsNoOSF preregistrationNo
- No one holds the coinsOC PledgeYesEscrow or multisigNo: the escrow holds themEAS (Ethereum)PartlyArbitration courtsNoOSF preregistrationYes
- A machine can check itOC PledgeYes, by one of seven rulesEscrow or multisigYesEAS (Ethereum)YesArbitration courtsPartlyOSF preregistrationNo: free text
- No issuerOC PledgeYes, BIP-322 onlyEscrow or multisigPartlyEAS (Ethereum)No: token-gatedArbitration courtsNoOSF preregistrationNo: a registrar
- Checks offlineOC PledgeYesEscrow or multisigYesEAS (Ethereum)No: needs an RPC nodeArbitration courtsNoOSF preregistrationNo
The full argument is in the spec’s WHY.md.
Open under MIT, and free to use.
The spec is v1.0, published under MIT, and a draft again: its dispute rules changed on 2026-10-29, and it returns to stable once implementations conform to them. The tools at pledge.ochk.io are free. OC Pledge never holds your coins and never slashes them: the bond stays in your wallet.
- Version
- 1.0
- Licence
- MIT
- Nostr kind
- 30078
- Test vectors
- 46
What you can do today.
- Create a pledgeYou need a Bitcoin wallet that can sign a message (or you can sign by hand), and an OC Attest attestation for that address.pledge.ochk.io/create
- Verify a pledgeIt also takes an outcome or an abandonment, and opens share links.pledge.ochk.io/verify
- Look up an addressEvery pledge it swore, kept, broken and in flight.pledge.ochk.io/address
- Try the rulesThe playground checks resolution rules in your browser. Nothing leaves the page.pledge.ochk.io/playground
- Make the attestation firstThe bond a pledge points to is an OC Attest proof for the same address.attest.ochk.io/create
One pledge lives at pledge.ochk.io/p/<id>. It finds the pledge and its outcome on Nostr.
Build on it.
@orangecheck/pledge-core (MIT) builds and verifies pledge, outcome and abandonment envelopes, runs the state machine, and validates the seven rules. It does no networking and no signing of its own: you pass in a BIP-322 verifier and, for bond checks, a chain lookup.
npm install @orangecheck/pledge-core @orangecheck/bip322import { verifySignature } from '@orangecheck/bip322';
import { verifyPledge, classifyState } from '@orangecheck/pledge-core';
const pledge = JSON.parse(pledgeJson); // a .pledge envelope
const r = await verifyPledge({
envelope: pledge,
verifyBip322: async (msg, sig, addr) => verifySignature(addr, msg, sig),
});
if (!r.ok) throw new Error(`${r.code}: ${r.message}`);
const now = new Date().toISOString().replace(/\.\d+Z$/, 'Z');
const state = classifyState({ pledge, outcome: null, abandonment: null, now });verifyBond, with a lookup you supply. The reference site wires it to @orangecheck/sdk.Verify a pledge someone sent you.
Paste the pledge, its id or its share link. An id opens the pledge’s own page; a pledge, an outcome or an abandonment opens in pledge.ochk.io’s verifier.
The verifier checks, in order:
- Shape and version. Every required field is present and well formed.
- The id. It rebuilds the signed text from the fields and confirms its SHA-256 is the pledge’s id. Change one character and the id changes.
- The signature. A BIP-322 signature from the swearer’s address. If an agent signed, it also checks the OC Agent delegation that allowed it.
- The bond, now. It finds the OC Attest attestation, confirms it belongs to the same address, and confirms the coins are still unspent and meet the minimum amount and age.
- The state. Pending, resolvable, kept, broken, disputed, or expired unresolved.
All of it runs in your browser, with no orangecheck server involved. The id and signature checks need only the pledge itself. The bond check reads public Nostr relays and a Bitcoin chain API.
One step is not built into the site yet: re-running the rule against public data. An unsigned outcome found on a relay is shown as a claim and does not change the state until it is recomputed. Outcomes signed by a counterparty, and abandonments, do count.
Every party you rely on, by name.
- Bitcoin, for the bond
- The site reads chain data from mempool.space by default. Developers can point the lookup at their own Esplora-compatible endpoint.
- The rule you chose
- Each rule names its own anchor.
chain_statetrusts only Bitcoin.counterparty_signstrusts the named counterparty; if they never sign, the pledge expires unresolved. A dispute goes to the poll or oracle address named when the pledge was sworn, or nowhere.vote_resolvestrusts the voters of the named OC Vote poll.http_get_hashtrusts the server and its certificate authority.dns_recordtrusts the DNS-over-HTTPS resolvers (at least two of Cloudflare, Google and Quad9).nostr_event_existsandstamp_publishedtrust Nostr relays: at least two are queried, and one honest relay is enough. - Relays, for finding pledges
- pledge.ochk.io publishes to nos.lol, relay.primal.net, relay.damus.io, nostr.oxtr.dev and relay.ochk.io. A pledge is a file, so it can also travel any other way.
- The swearer’s clock
- The “sworn at” time is set by the person signing. Use a block height when time matters.
The limits, plainly.
- Not escrow and not a contract
- Nothing can seize the bond. The only consequence of breaking a pledge is that the record says so, publicly and for good.
- Spending the bond is visible, not punished
- Verifiers then see the bond as spent. The pledge’s state still comes only from its outcome.
- Not private
- Your address, your promises and their outcomes are public. Use a fresh address if that matters, at the cost of your history.
- Not a score
- The protocol publishes the raw record of kept and broken pledges. Each app decides what that record means.
Apps that use it.
- No showcase app yet
- None of the showcase apps uses OC Pledge yet. The tools at pledge.ochk.io are the reference implementation.
- OC Attest
- Every pledge’s bond is an OC Attest proof, re-checked against the chain whenever the pledge is verified.
Make your first pledge.
The tools are free and need no account. The spec is open to anyone who wants to build their own.
With thanks to Bram Kanstein (opens in a new tab), whose work on Bitcoin as a sovereignty layer shaped the premise.