The Coding Process

Simple Step-by-Step Guide: Creating Permanent Court Records
What This Does
Creates tamper-proof court documents that can never be changed or lost, stored permanently on the internet with blockchain verification.
Step 1: Set Up Your Storage Account (Pinata)
What it is: Think of this like a permanent cloud storage that never goes down.
Go to pinata.cloud
Click "Sign Up"
Use your email and create a password
Check your email and click the verification link
Choose the Free Plan (good for testing)
Get Your Keys:
Click "API Keys" in your dashboard
Click "New Key"
Check the boxes for uploading files
Name it "Court Records"
Save the key and secret - you'll need these later
Step 2: Prepare Your Documents
Put all court documents in one folder on your computer
Name them clearly (like "case-123-filing.pdf")
Make sure they're in PDF format
Step 3: Upload Documents and Get Codes
Upload Method (Easy Way):
Go back to Pinata dashboard
Click "Upload" → "File"
Select your court document
Add details like case number and date
Click "Upload"
You'll Get Two Important Codes:
CID Code: Looks like QmX7M9C... (this is your document's permanent address)
Hash Code: A long string of letters/numbers (this proves the document hasn't been changed)
Write these down! You need them for the next step.
Step 4: Set Up Blockchain Account (Stellar)
What it is: This creates a permanent, unchangeable record that the document exists.
Go to laboratory.stellar.org
Click "Create Account"
Save your keys (public and secret) - keep the secret key VERY safe
For testing, get free test money at friendbot.stellar.org
Step 5: Create Your Permanent Record
You'll need to run a simple program that:
Takes your document's CID code
Takes your document's hash code
Stores them permanently on the blockchain
Creates a record ID number
The program does this automatically:
Connects to your Stellar account
Creates a permanent record with timestamp
Links to your document on Pinata
Gives you a record number
Step 6: Verify Everything Works
Test your system:
Use your record ID number
Check that it shows the correct CID code
Check that the document opens from the CID
Verify the hash matches (proves no tampering)
What You End Up With
For each court document, you get:
Record ID: A number to find your record (like a filing number)
CID Code: Permanent web address for your document
Hash Code: Fingerprint that proves document is unchanged
Blockchain Entry: Permanent, tamper-proof record with timestamp
Web Link: Anyone can view at https://gateway.pinata.cloud/ipfs/[YOUR-CID]
Why This Works
Document stored on IPFS: Can never be lost or deleted
Hash code: If anyone changes even one letter, the hash changes
Blockchain record: Permanent timestamp that can't be faked
Public verification: Anyone can check if documents are real
Result: You have court records that are:
✅ Permanent (can't be deleted)
✅ Tamper-proof (can't be changed)
✅ Publicly verifiable (anyone can check authenticity)
✅ Timestamped (proves when they were filed)
Daily Use
To file a new document:
Upload to Pinata → Get CID and hash
Store CID and hash on blockchain → Get record ID
Done! Document is now permanent and verifiable
To verify a document:
Enter the record ID
System checks if hash matches
Green checkmark = document is authentic and unchanged
This creates an unbreakable chain of evidence for all court proceedings.

