Documentation
¶
Overview ¶
Package crypto provides GPU-accelerated cryptographic operations.
All operations use the unified accel backend selection and fallback to CPU. Backend is selected at runtime via LUX_ACCEL_BACKEND env or auto-detection.
Index ¶
- Variables
- func AggregatePublicKeys(pks [][]byte) ([]byte, error)
- func AggregateSignatures(sigs [][]byte) ([]byte, error)
- func BatchVerify(sigType SigType, sigs, msgs, pubkeys [][]byte) ([]bool, error)
- func Hash(hashType HashType, inputs [][]byte) ([][32]byte, error)
- func MSM(curve string, scalars, points [][]byte) ([]byte, error)
- type HashType
- type SigType
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AggregatePublicKeys ¶
AggregatePublicKeys aggregates BLS public keys.
func AggregateSignatures ¶
AggregateSignatures aggregates BLS signatures.
func BatchVerify ¶
BatchVerify verifies multiple signatures in parallel. Returns a slice of bools indicating which signatures are valid. Uses GPU acceleration when available, falls back to CPU.
Types ¶
Click to show internal directories.
Click to hide internal directories.