mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
- Remove crypto/common/math/ (dead code, using luxfi/math instead) - Consolidate gpu/zk.go to use unified luxfi/gpu package - Delete platform-specific gpu/zk_metal.go in favor of unified approach - Update bls/types.go with GPU bindings - Update dependencies for luxfi/gpu
27 lines
1.0 KiB
Go
27 lines
1.0 KiB
Go
// Copyright (C) 2020-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package bls
|
|
|
|
import "errors"
|
|
|
|
const (
|
|
SecretKeyLen = 32
|
|
PublicKeyLen = 48 // Compressed G1 point
|
|
SignatureLen = 96 // Compressed G2 point
|
|
)
|
|
|
|
var (
|
|
ErrNoPublicKeys = errors.New("no public keys")
|
|
ErrFailedPublicKeyDecompress = errors.New("couldn't decompress public key")
|
|
ErrInvalidPublicKey = errors.New("invalid public key")
|
|
ErrFailedPublicKeyAggregation = errors.New("couldn't aggregate public keys")
|
|
ErrFailedSignatureDecompress = errors.New("couldn't decompress signature")
|
|
ErrInvalidSignature = errors.New("invalid signature")
|
|
ErrNoSignatures = errors.New("no signatures")
|
|
ErrFailedSignatureAggregation = errors.New("couldn't aggregate signatures")
|
|
ErrFailedSecretKeyDeserialize = errors.New("couldn't deserialize secret key")
|
|
ErrInvalidInput = errors.New("invalid input")
|
|
ErrGPUNotAvailable = errors.New("GPU not available")
|
|
)
|