Skip to content

Commit 8537688

Browse files
pelleclaude
andcommitted
Add TAIP-12 name hashing implementation with browser crypto support
This implementation provides privacy-preserving name matching capabilities compatible with VerifyVASP and GTR networks. Includes comprehensive test coverage with non-Western name support (Arabic, Chinese, Korean, Japanese). - Add nameHash.ts with SHA-256 hashing using Web Crypto API and Node.js crypto - Add extensive test suite with 19 test cases including TAIP-12 test vectors - Support cross-platform compatibility (browsers and Node.js) - Add Vitest for testing framework - Export nameHash utilities from package index 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a583d03 commit 8537688

6 files changed

Lines changed: 1827 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ This changelog focuses on:
1414
- Protocol structural changes
1515
- Breaking changes
1616

17+
## [2025-08-18]
18+
19+
### Added
20+
- **TAIP-12 Name Hashing Implementation**: Added production-ready TypeScript implementation for privacy-preserving name matching
21+
- Added `generateNameHash()` function with SHA-256 hashing using Web Crypto API and Node.js crypto fallback
22+
- Added `normalizeForHashing()` function for TAIP-12 compliant name normalization (uppercase, whitespace removal)
23+
- Cross-platform compatibility supporting browsers and Node.js environments without additional dependencies
24+
- Comprehensive test suite with 19 test cases including TAIP-12 specification test vectors
25+
- Support for non-Western names (Arabic, Chinese, Korean, Japanese scripts)
26+
- Compatible with VerifyVASP and GTR networks per TAIP-12 specification
27+
- Added Vitest testing framework for comprehensive validation
28+
- Enhanced TypeScript package (@taprsvp/types) with new nameHash utilities
29+
1730
## [2025-08-16]
1831

1932
### Fixed

0 commit comments

Comments
 (0)