Sitemap

Understanding SHAMap and LedgerHash in the XRP Ledger

3 min readNov 7, 2025

Understanding SHAMap and LedgerHash in the XRP Ledger — A Practical Hands-On Guide

Press enter or click to view image in full size

🧭 Introduction

Most people see the XRP Ledger (XRPL) as a mysterious blockchain full of hashes and ledgers.
But in reality, you can feel how its structure works — just by running a few SHA256 commands.

In this article, we’ll explore how SHAMap and ledgerHash work, and reproduce them step by step on your local machine.

🔐 1. SHA256 — The Digital Fingerprint

SHA256 is a one-way function that turns any data into a 64-character “digital fingerprint.”
Even the smallest change in input completely alters the result — a property called the avalanche effect.

Try it:

echo -n "hello" | shasum -a 256

Now change just one character:

echo -n "Hello" | shasum -a 256

→ You’ll see a totally different hash, even though only the first letter changed.
That’s why blockchains can detect even 1-bit tampering.

🌳 2. Building a Mini SHAMap

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web
Already have an account? Sign in
CCQ
CCQ

Written by CCQ

I am a Web SE . But more interested in what kind of mindset of the VUCA society we can enjoy our lives from now on.

No responses yet

Write a response