v1.2.2 - Ethereum Interoperability Update
This release introduces native support for Keccak-256 hashing, enabling full, byte-perfect interoperability with the Ethereum ecosystem.
馃殌 New Features
- Keccak-256 Support: Added
Keccak256implementation indcrypt-algorithms. This uses the original Keccak padding (0x01domain separator) required for Ethereum addresses, function selectors, and EIP-712 signatures, distinguishing it from the standard NIST SHA3-256. - Hash API Integration:
Keccak256implements the standardHashFunctiontrait, allowing seamless integration with existing hashing workflows. - Parameter Constants: Added
KECCAK256_OUTPUT_SIZEandKECCAK256_BLOCK_SIZEtodcrypt-params.
馃摎 Documentation
- Updated hashing documentation to clarify the distinction between
Sha3_256andKeccak256. - Added specific guidance on when to use
Keccak256(e.g., EVM compatibility).
馃洜 Fixes & Improvements
- Expanded test coverage to include vectors for Keccak-256.
- Fixed unused import warnings in elliptic curve modules.