6 Commits
Author SHA1 Message Date
Hanzo AI 9af8a66139 chore: remove all TODOs from production code 2025-12-27 08:39:37 -08:00
Zach Kelling 0ee940111e fix(bn256/gnark): fix inverted TestBytes logic in G1/G2 Unmarshal
The TestBytes function returns true when all bytes are zero (point at infinity).
The condition was inverted, causing non-zero points to be treated as infinity.
2025-12-14 21:24:02 -08:00
Zach Kelling a9769373ca fix: resolve build errors and ensure crypto independence from geth
- Fix bn256/gnark imports to use crypto/bitutil instead of standalone bitutil
- Remove unused secp256k1 import from crypto.go
- Fix mlkem test files to use correct API (GenerateKeyPair returns pub,priv,err)
- Fix mlkem constant names (MLKEM512SharedKeySize not SharedSecretSize)
- Restore crypto/common types as standalone (not aliases to geth/common)
- Update crypto.go and keccak.go to use crypto/common instead of geth/common
- Fix secp256k1 fuzz tests to use correct DecompressPubkey/CompressPubkey API
- Remove stale test files and go.work files

crypto package is now fully independent of geth (geth -> crypto, not reverse)
2025-12-12 21:51:02 -08:00
Zach Kelling 78d37550c9 Sync with geth 2025-12-12 19:49:01 -08:00
Zach Kelling 45463e1cc7 refactor: remove geth dependencies and internalize utilities
- Created utils package with common types (Address, Hash, Big1, Big0)
- Added utility functions (BytesToAddress, HexToAddress, CopyBytes, FromHex)
- Implemented math utilities (PaddedBigBytes, MustParseBig256)
- Created minimal RLP encoder for CreateAddress function
- Added hexutil functions for KZG4844 support
- Updated all imports to use local utils instead of geth
- All tests passing successfully
2025-07-31 18:53:05 +00:00
Hanzo Dev c3d2563353 Initial commit 2025-07-25 19:04:58 -05:00