Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article examines HIP-15, which proposes adding a five-letter checksum to Hedera addresses to help prevent mistaken transfers caused by typing errors or similar-looking addresses.

This explanation is based on the following specification.

For other EIPs, BIPs, SLIPs, and CAIPs, see the following page.

Overview

Hedera addresses can be represented with or without a checksum.

A checksum consists of five lowercase letters appended to an address. It is used to detect typing errors, including incorrect digits.

For example, 0.0.123 can be represented with a checksum as 0.0.123-vfmkw.

This allows software to detect errors in manually entered destination addresses before an incorrect transaction is submitted.

Motivation

The traditional Hedera address format, such as 0.0.12345, is compact and easy to remember, but manual entry can introduce transposed, omitted, or additional digits.

Because a completed transfer cannot simply be reversed, entering an incorrect destination address can result in loss of funds.

A malicious party could also exploit input errors by obtaining accounts whose addresses resemble those of legitimate recipients. The original article notes that Hedera's low account creation cost makes it possible to obtain many accounts in a short period.

HIP-15 proposes checksums to help prevent these mistakes. For backward compatibility, checksums remain optional in input addresses.

Additional Considerations

Entities on the Hedera public ledger, including accounts, files, smart contracts, topics, and tokens, are identified using formats such as 0.0.123.

The original format provides no built-in mechanism for detecting manual input errors.

The proposed checksum format appends five letters to the original address. The checksum is calculated from both the address and the ledger ID.

The original article describes the algorithm as designed to detect typical typing errors, including digit changes, adjacent digit transpositions, and certain insertions or deletions of one to four digits.

For a substantially different address or ledger ID, it reports a probability of matching checksums below one in a million. These properties should be interpreted according to the error classes and conditions defined by HIP-15.

Specification

A checksummed address follows these formatting rules.

  • Example: 0.0.123-vfmkw.
  • A hyphen separates the address from the five lowercase checksum letters.
  • Integers in the address must not contain leading zeros.
  • Spaces and additional symbols are not allowed.

Software should display addresses in checksummed form and accept both forms as input. An invalid format or a supplied checksum that does not match must result in an error.

The specification also defines regular expressions for input validation and ensures generated output matches the checksummed address format.

Checksum Generation Algorithm

  1. Convert the address into an array, treating each period as 10.
  2. Append six zero bytes to the ledger ID to form another array.
  3. Calculate several components, including sums of digits at even and odd positions modulo 11 and a weighted sum modulo 26326^3.
  4. Calculate a ledger-ID-dependent weighted sum modulo 26526^5.
  5. Combine the components and reduce the result modulo 26526^5.
  6. Multiply by the prime number 1,000,003 as the final permutation.
  7. Convert the result into five base-26 letters, from a to z.

The algorithm is designed so that small input changes affect the checksum, particularly its first two letters.

Backward Compatibility

The checksum is optional to preserve compatibility with existing address formats. Addresses without checksums remain valid, so existing applications are not immediately required to change their input format.

However, software should display checksummed addresses wherever possible, helping users recognize addresses and detect entry errors.

Security

The checksum helps reduce the risk of funds being lost through incorrect destination addresses. Collisions cannot be eliminated entirely, but HIP-15 describes properties designed to improve the detection of practical typing errors compared with a generic pseudorandom function (PRF).

The original article illustrates this with a comparison of sequential addresses: a generic PRF might produce a collision after approximately 3,500 addresses, whereas the proposed function's reported first collision occurs more than ten times later.

The cited examples are 0.0.39004-gyebe and 0.0.10690-gyebe. Although their checksums match, the address numbers differ substantially, making them less likely to be confused through a simple typo.

A more plausible typing mistake, such as entering 0.0.3904, produces a different checksum, -csury, allowing compliant software to detect the error when the original checksum is supplied.

A checksum is an error-detection mechanism rather than proof of the recipient's identity.

Citation

This document is licensed under the Apache License, Version 2.0 -- see LICENSE or (https://www.apache.org/licenses/LICENSE-2.0)

Conclusion

HIP-15 introduces a five-letter checksum to Hedera addresses, helping software detect common typing errors while retaining compatibility with existing address formats.