Blockchain Commons LifeHash Visual Hash Library for TypeScript
npm install @bcts/lifehash> Disclaimer: This package is under active development and APIs may change.
LifeHash is a method of generating visual hashes from data. It is based on Conway's Game of Life cellular automaton. Given the same input, LifeHash will always produce the same visual output, making it useful for verifying data integrity at a glance.
LifeHash generates a unique, colorful, abstract image from any input data. It's designed to be:
- Deterministic: Same input always produces the same image
- Visually Distinct: Different inputs produce visually different images
- Human-Friendly: Easy to recognize and compare at a glance
- Collision-Resistant: Hard to find two inputs that produce similar images
This TypeScript implementation is based on bc-lifehash (commit b5e8d43).