7 Commits
Author SHA1 Message Date
Hanzo AI 0a2f7167e7 poseidon2_c.go: switch to pkg-config: lux-crypto 2026-05-21 17:25:55 -07:00
Zach Kelling af49b0a2b6 chore: sync with node requirements 2025-12-27 04:19:14 -08:00
Zach Kelling 9bb37d2a91 refactor: update import path to github.com/luxfi/constants 2025-12-27 02:09:03 -08:00
Zach Kelling 7ceaaaa711 refactor(poseidon2): rename gpu files to follow _cgo.go convention 2025-12-27 00:50:56 -08:00
Zach Kelling 9f8cb81a58 fix: update GPU build tags for cgo/pure Go separation
- Change CGO files to use luxgpu tag (opt-in)
- Change pure Go files to use !luxgpu tag (default)
- Fix relative paths to luxcpp/crypto headers

This allows CGO=0 and CGO=1 builds to work without requiring
the full GPU libraries to be installed.
2025-12-26 22:14:43 -08:00
Zach Kelling 4b5676f742 fix: use metal tag for GPU files, pure Go is default 2025-12-26 21:48:40 -08:00
Zach Kelling 46efbf33ed feat: add GPU stub files for CGO-less builds
Add stub implementations for GPU packages that return
false for Available() when GPU libraries are not present.
This allows building with CGO_ENABLED=0 or CGO_ENABLED=1
without requiring Metal/CUDA libraries.

- bls/gpu/gpu_stub.go
- hash/blake3/gpu/gpu_stub.go
- hash/poseidon2/gpu/gpu_stub.go
- pqcrypto/*/gpu/gpu_stub.go (mldsa, mlkem, slhdsa)
2025-12-26 21:22:38 -08:00