Duplicate ledger
A copy of your records that nobody can quietly rewrite, including you
A duplicate ledger is a second copy of your business's own records (invoices, adjustments, payments, tip allocations, tip payouts and dispute notes), held by Rightshold and sealed as each event happens. Once a record is sealed, your business cannot rewrite it. You can hand one record to a customer, an accountant or a worker, and they can check it for themselves.
What it is
Your books stay where they are, in the system you already use. Each time something happens (an invoice, a credit, a payment, a tip), your system also sends that record to Rightshold, which seals it: it fixes the record's exact words and amounts, notes the time, and links it to the record before it.
A sealed record is never edited. A correction is a new record, sealed after the one it corrects, so both stay visible. If anyone later changes the record in your own books, the sealed copy shows what it said at the time.
How it works, in five steps
- Open a duplicate ledger. One call with your account key. Rightshold gives the ledger an id and a neutral public label.
- Seal each record as it happens. Your system sends one call per event: the kind of record and its content. Rightshold returns the sealed record, with its fingerprint and its place in the ledger.
- Hand a share link for one record. When a customer, an accountant or a worker should see a record, you make a link that opens that record and nothing else. The link is shown once, and you can revoke it.
- They open it free, without an account. The link shows the record exactly as it was sealed, when it was sealed, and the checks that tie it to the public Rightshold ledger.
- If they say the record is wrong, the sealed record is the evidence. The holder of the link, signed in to a free Rightshold account, or the business itself can file a dispute about that record. It opens a review case that reads from the sealed record, not from anyone's copy of it. Filing a dispute never changes the sealed record.
The calls, with your account key in RIGHTSHOLD_API_KEY. Words in angle brackets are yours to fill in; {ledger_id}, {entry_id} and {token} are the values the previous call gave you.
# 1. Open a ledger. category is one of: service, retail, food, professional, other
curl -s https://www.rightshold.com/v1/mirror-ledgers -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" -H "Content-Type: application/json" \
-d '{"category": "<the kind of business>"}'
# 2. Seal a record (here an invoice) as it happens
curl -s https://www.rightshold.com/v1/mirror-ledgers/{ledger_id}/entries -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" -H "Content-Type: application/json" \
-d '{"type": "invoice", "content": {"invoice_ref": "<your invoice number>", "customer_ref": "<your reference for the customer>", "total_cents": <whole cents>}, "occurred_at": "<when it happened, ISO 8601>", "idempotency_key": "<your own unique key for this event>"}'
# 3. Make a share link for one record (the token is shown once)
curl -s -X POST https://www.rightshold.com/v1/mirror-entries/{entry_id}/shares -H "Authorization: Bearer $RIGHTSHOLD_API_KEY"
# 4. Open it: no account, no key (the same record as a page: https://www.rightshold.com/mirror-shares/{token})
curl -s https://www.rightshold.com/v1/mirror-shares/{token}
# 5. Dispute it, from your own account, with the token from the link
curl -s https://www.rightshold.com/v1/mirror-entries/{entry_id}/dispute -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" -H "Content-Type: application/json" \
-d '{"share_token": "<the token from your link>", "role": "<customer, worker or business>", "claim": "<what the sealed record shows and what you say is wrong>", "ai_consent": <true or false>}'
occurred_at is optional: it is the time the event happened in your books, and without it the seal time is used. idempotency_key is optional: sending the same key again returns the record already sealed instead of sealing a second one. In a dispute, ai_consent set to true asks for review by Rightshold's AI arbitrator; false asks for the human panel only. The review gives an opinion for the person who filed it; it binds no one.
The six kinds of record
Each record has a type and a content object. The content is stored exactly as you send it, and you may add fields of your own, up to 16 KB of JSON. These fields are required:
invoice: An invoice you issued. Requiresinvoice_ref(your invoice number),total_cents(the total, in whole cents).adjustment: A credit or an extra charge on an invoice, with the exact words the customer was shown. Requiresinvoice_ref(the invoice it changes),kind("credit" or "charge"),amount_cents(the amount, in whole cents),customer_wording(the exact words the customer saw).payment: A payment received against an invoice. Requiresinvoice_ref(the invoice it pays),amount_cents(the amount, in whole cents).tip_allocation: A tip assigned to a worker from an invoice. Requiresinvoice_ref(the invoice the tip came with),worker_ref(your own reference for the worker),amount_cents(the amount, in whole cents).tip_payout: A tip paid out to a worker, pointing to the tip allocation it pays. Requiresworker_ref(your own reference for the worker),amount_cents(the amount, in whole cents),allocation_entry(the id of a tip allocation already sealed in the same ledger).dispute_note: A note about a disagreement, in your words. Requiressummary(what happened).
Amounts are whole cents. Fields ending in _ref are your own references, such as your invoice numbers or your own codes for customers and workers.
What it proves, and what it does not
It proves
- What was recorded: the record exactly as it was sealed.
- When it was sealed with Rightshold.
- That it has not changed since it was sealed.
- Its place in the order: each record carries the fingerprint of the one before it, so a record changed later, or removed or slipped in between two others, breaks the chain.
It does not
- Stop a business from editing its own books. It makes a later change detectable by anyone shown the record.
- Show that a record is true. Rightshold does not check what a record says, only that it was sealed then and is unchanged.
- Show that every event was sealed. Something the business never sent is not in the ledger.
- Count as an audit, an assurance, a valuation, or a tax or legal opinion.
The time a record says the event happened is the business's own statement. The seal time is Rightshold's.
Every shared record carries this statement, word for word:
This page shows a record exactly as it was sealed with Rightshold at the time shown. The mirror proves what was recorded, and when. It does not stop a business from changing its own books — it makes any later change detectable by anyone the business has given this record's share link.
Who can see what
Entry contents are never public. The business opens its own records with its account key and can hand a share link for one record to whoever should see it, such as a customer or an accountant; it can revoke that link. The public Rightshold ledger carries only a salted commitment for each record, which anyone can check is sealed and unchanged but which reveals nothing about the record.
- In public, a duplicate ledger has no owner's name. Rightshold gives it a neutral label made of the kind of business you chose and a number. Its public summary shows that label, the kind of business, when the ledger was opened, how many records of each type were sealed, and the first and last seal times. Nothing else.
- Each seal appears on the public Rightshold ledger with the ledger's label and id, the type of record, the time and a salted commitment. The record's words and amounts are not there.
- You read your own records with your account key. A record's id alone opens nothing, on any page or call.
- A share link opens exactly one record. It is shown once when you make it; Rightshold keeps only a fingerprint of it. When you revoke it, it stops opening the record at once. The page it opens is not indexed by search engines.
- Names stay out. A record whose content has a field for a name, an email, a phone number, a street address or a tax number is refused when you seal it, so customers and workers travel as references you choose, such as
customer_refandworker_ref. Rightshold checks the names of the fields, not every word, so keep names out of free-text fields such as an adjustment's wording or a dispute note's summary.
Checking a record without trusting Rightshold
The person holding a share link sees the record exactly as sealed, when it was sealed, the time the business gave for the event, Rightshold's check of the ledger's hash chain up to that record, whether its seal is on the main Rightshold ledger (and whether that block is finalized and timestamped in Bitcoin), and the opening of its public seal. The same link under /v1/mirror-shares/{token} gives all of it as JSON, which is what these checks use:
- Fingerprint the content yourself. Write the content as JSON with its keys sorted (canonical JSON) and take its SHA-256. It must equal
content_sha256. - Open the public seal. The seal's opening must hold this record's id,
content_sha256andentry_hash. Take the SHA-256 ofcommit:followed by the canonical JSON of the opening and the salt; it must equal the commitment in public ledger entryledger_seq, which anyone can read at/v1/ledger/entries/{ledger_seq}. The JSON'sseal.how_to_verifysays exactly what to compare for that record. - Check the entry is in the ledger. That ledger entry comes with its inclusion proof against its signed block. Anyone can recompute the whole public ledger, and its blocks are timestamped in Bitcoin, which nobody, including Rightshold, can move to another date.
The salt is what keeps the public seal private: without it, nobody can test a guess at a record's contents against the public ledger. Only the business and the people it gives a share link get it.
What still rests on Rightshold: the seal time, and the chain check across the business's earlier records, which only Rightshold can see in full.
What it costs
- None of
open_mirror_ledger,seal_mirror_entry,share_mirror_entry,open_mirror_share,open_mirror_disputehas a line of its own on the price list. They fall under the list's line for API, MCP and CLI calls: within the free allowance; $0.10 per 1,000 calls beyond it (planned). Free allowance: 10,000 calls per day per account. - Opening a share link needs no account and no key.
Lines marked charged are charged at the listed price beyond their free allowance, from your prepaid service credits. Free checks stay free. Operations agreements are priced separately and invoiced only after the paying owner accepts their exact terms. The price list always shows what is charged right now.
Where to start
You run the business, or build its system
Create a free account; the account and its key stay yours. Your builder adds one sealing call to your system for each event, using the calls above. Every call, with its fields, is in the API reference under open_mirror_ledger, seal_mirror_entry, share_mirror_entry, open_mirror_share and open_mirror_dispute.
You were sent a share link
Open the link you were given. Keep it private: anyone holding it can read that record. The checks above work on the record it shows.
You need whole periods of books on record
For a lender, a buyer or a partner who needs to check months of books at a time, each period countersigned and timestamped.
Live totals for duplicate ledgers (ledgers opened and records sealed by type, counts only) are published at /v1/stats.
