How inscribing works
An inscription is a file written into the witness of a Bitcoin transaction. Scribbit's flow follows the five steps below. The mechanics are those of ord, the inscription indexer Blockspace Co. runs (ord 0.27.1).
1. Payload
Any file can be the payload: a PDF, JSON, plain text, an image. It is stored with a content type, such as application/pdf, so readers know how to open it.
Before you write, record the file's SHA-256 hash. The hash is how you, or anyone, later proves that the bytes on chain are your file.
2. Commit + reveal
The payload goes inside an envelope: a piece of Taproot script that starts with OP_FALSE OP_IF, so it never runs, and holds the data in pushes of at most 520 bytes each. Writing it takes two transactions:
- Commit. Pays a small amount to a Taproot address whose script contains the envelope. At this point only a hash of the script is on chain.
- Reveal. Spends that output. Spending it publishes the script, payload included, in the transaction's witness. The inscription is born in the reveal.
ord's inscription format (docs.ordinals.com/inscriptions); the 520-byte push limit is Bitcoin consensus.
3. Batch
One commit and one reveal can carry several inscriptions (ord's wallet batch does this). Each transaction has a fixed cost (inputs, outputs, signatures), so sharing a pair of transactions spreads that cost across every payload in it.
4. Settle
The reveal waits in the mempool until a miner includes it in a block. That is its first confirmation, and each later block adds one more. A block can be replaced by a competing one (a reorg). Each extra confirmation makes that less likely, so how many to wait for is a choice. Bitcoin aims for a block every ten minutes on average.
5. Cite
An inscription's id is the reveal's transaction id, the letter i, and its position in that transaction. A full citation is that id, the block, the content type, the length, and the SHA-256 hash. Here is a real one:
inscription 2e2fd1b1ea70bc719eefd8efeaf224287409004cb3645d59bb2ef936a8aa358ci0 block 965,177 txid 2e2fd1b1ea70bc719eefd8efeaf224287409004cb3645d59bb2ef936a8aa358c type application/pdf length 387,641 bytes sha256 f209bebb4739fbbb9a03a18fb2525a0a3bdbc8528247212425c746fcd2dec44b
Read from Blockspace Co.'s ord index; the hash is of the content ord returns. The inscription on block.space.
Anyone with an ord index can turn the id back into the bytes and check the hash. Nobody needs Scribbit for that.