⛓️ SORRENTO-2007 PSEUDO-BLOCKCHAIN CONTRACT LEDGER

This is a local-only HTML “ledger” that helps you track payments like a mini blockchain. It stores data in your browser (localStorage), and you can Export/Import JSON for backups or manual edits.
How this works (in one sentence): the balance is computed as
Balance = Sale Price − (Tow Deductions) − (Payments).
Quick Start (2 minutes)
  1. Fill in Seller, Buyer, and confirm Sale Price and Monthly Payment.
  2. Tap Save Contract (this records a CONTRACT_UPDATE block so changes are auditable).
  3. If you paid a tow bill, add a TOW_DEDUCTION block for that amount.
  4. Each month, add a PAYMENT block (e.g., $300).
  5. Use Export JSON occasionally to keep a backup file somewhere safe.
Important: this is not a legal blockchain or a court-grade contract system. It’s a clear, structured “receipt trail” that makes it hard to lose track of who paid what and when.

1) Contract Details

This section describes the agreement terms. You can edit later; updates get their own block.
Tip: Put the “title transfer halfway through” and “inspection/registration decided later” in the agreement text. Then record actual events later using TITLE_TRANSFER and FEE_DECISION blocks.

2) Add a Ledger Block

Think of each block as an entry in a notebook. The “hash chain” makes it obvious if anything in the middle changed.
Guide: What each block type means

PAYMENT — Reduces the balance. Usually $300, final payment might be smaller.

TOW_DEDUCTION — Also reduces the balance because it is deducted from the $1,300 total owed.

NOTE — Adds context without changing money (e.g., “mechanic says starter replaced”).

TITLE_TRANSFER — Record when you actually hand over title / sign paperwork.

FEE_DECISION — When you decide who pays inspection, registration, etc., document it here.

Contract Status

Totals are computed from blocks in the chain, not from your memory (sadly, a scarce resource).
Starting Price
$0.00
Balance Due
$0.00
Payments Total
$0.00
Deductions Total
$0.00
Contract ID:

Chain Health

What “Chain Health” means

Each block contains a hash (a fingerprint) of its own content and the previous block’s hash. If you edit an older block, the fingerprints no longer match, and the chain will show as BROKEN.

This is not military-grade security. It’s a strong “tamper-evidence” system for accidental changes and clean recordkeeping.


Ledger (Blocks)

The table is your timeline. A tow deduction and payments will automatically change totals above.
# Type Date Amount Memo Prev Hash Hash
Suggested “best practice” workflow
  1. Whenever money changes hands: add a PAYMENT block immediately with a short memo.
  2. Whenever towing costs are known: add a TOW_DEDUCTION block, memo the receipt/provider.
  3. Whenever major decisions happen: add a NOTE block (“mechanic friend replaced X”).
  4. Export JSON after each real-world milestone so you have an off-device backup.