(c) 2025 Cyborg Unicorn Pty Ltd - MIT License
Creates the Genesis ROM - the immutable "seed" that anchors your entire blockchain.
Every blockchain starts here. This 64KB file of high-entropy random data becomes the root of trust. Without it, nothing else works.
Once, at the very beginning, before creating any blocks.
ztbcreate genesis.rom
Adds a new block of data to an existing chain (trunk or branch).
This is how you store data on the blockchain - documents, transactions, records, anything.
Every time you want to add new data to your chain.
chainid_0001_blockguid.ztb-t "text" - Add a text string-f filename - Add a file's contents# First block on a new trunk
ztbaddblock genesis.rom MyTrunk -t "Invoice #001"
# Second block
ztbaddblock genesis.rom MyTrunk -t "Invoice #002"
# Add a file
ztbaddblock genesis.rom MyTrunk -f contract.pdf
Creates a new branch that splits off from the trunk at the current point.
Perfect for organizing data hierarchically. Think: trunk = company, branches = departments. Or trunk = financial year, branches = accounts.
When you want to create a separate but linked chain of blocks.
ztbaddblock# Create main company trunk
ztbaddblock genesis.rom CompanyLedger -t "2024 Books"
# Branch off for departments
ztbaddbranch genesis.rom CompanyLedger Sales -t "Sales Q1"
ztbaddbranch genesis.rom CompanyLedger Marketing -t "Marketing Q1"
# Now add blocks to branches
ztbaddblock genesis.rom Sales -t "Sale #001"
ztbaddblock genesis.rom Marketing -t "Campaign #001"
Retrieves and decodes a specific block from any chain.
To actually read the data you stored! Blocks are ZOSCII-encoded, so you need this tool to decode them.
Whenever you want to see what's in a block.
# Fetch block 3 from MyTrunk
ztbfetch genesis.rom MyTrunk 3
# Output shows:
# - Block metadata (ID, timestamp, etc.)
# - Checksum verification
# - Your decoded data
Verifies that your blockchain is intact and untampered. Works backwards from the latest block to Genesis.
To prove your data hasn't been altered. If anyone modifies even one byte in block 5, verification will fail on block 6 (and all subsequent blocks).
-t - Verify trunk only-b branchid - Verify specific branch only-bb - Verify all branches only (skip trunk)# Verify everything
ztbverify genesis.rom MyTrunk
# Verify just the trunk
ztbverify genesis.rom MyTrunk -t
# Verify specific branch
ztbverify genesis.rom MyTrunk -b Sales
Result: If ANY block has been tampered with, verification fails and tells you exactly which block is corrupt.
Creates an archival boundary that lets you move old blocks to slow/cheap storage while keeping the chain verifiable.
Over time, chains grow huge. Checkpoints let you archive historical data without breaking the chain.
# At end of 2024
ztbcheckpoint MyTrunk genesis.rom last_block_of_2024_guid
# Now you can:
# 1. Move all 2024 blocks + Genesis ROM to archive storage
# 2. Keep checkpoint + 2025 blocks on fast storage
# 3. Both archives remain independently verifiable
Scenario: Accounting firm tracking invoices with separate accounts
# 1. Start fresh
ztbcreate genesis.rom
# 2. Create main trunk for 2025
ztbaddblock genesis.rom FY2025 -t "Financial Year 2025"
# 3. Create branches for different accounts
ztbaddbranch genesis.rom FY2025 ClientA -t "Client A Account"
ztbaddbranch genesis.rom FY2025 ClientB -t "Client B Account"
# 4. Add invoices to Client A
ztbaddblock genesis.rom ClientA -t "Invoice #1001"
ztbaddblock genesis.rom ClientA -f invoice_1002.pdf
# 5. Add invoices to Client B
ztbaddblock genesis.rom ClientB -t "Invoice #2001"
# 6. Retrieve a specific invoice
ztbfetch genesis.rom ClientA 2
# 7. Verify everything is intact
ztbverify genesis.rom FY2025
# 8. At year-end, create checkpoint
ztbcheckpoint FY2025 genesis.rom last_block_guid
# 9. Archive 2025 data to slow storage, start FY2026
If you change ANY byte in block N, all blocks N+1 onwards fail verification. The ZOSCII pointer encoding makes forgery combinatorially impossible (10^152900 combinations).
This isn't encryption - it's addressing. The data is encoded as pointers into the Rolling ROM. Without the exact Rolling ROM, the pointers are meaningless.
Checkpoints + Genesis copies let you create self-contained archives that verify independently. Perfect for legal compliance, backups, and long-term storage.
Use branches like folders. Trunk = main timeline, branches = parallel sub-timelines. All verified together.