prysm-pulse/shared/bls/blst/stub.go
Preston Van Loon 4ddacd57c6
fix blst build tag (#7443)
* fix blst build tag

* fix fuzz build

* remove buildkite specific bazelrc line

* remove conflicting kafka gotag in CI

* fix again

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-10-08 18:37:12 +00:00

118 lines
2.3 KiB
Go

// +build darwin windows !blst_enabled
package blst
import "github.com/prysmaticlabs/prysm/shared/bls/iface"
// This stub file exists until build issues can be resolved for darwin and windows.
const err = "blst is only supported on linux with blst_enabled gotag"
// SecretKey -- stub
type SecretKey struct{}
// PublicKey -- stub
func (s SecretKey) PublicKey() iface.PublicKey {
panic(err)
}
// Sign -- stub
func (s SecretKey) Sign(msg []byte) iface.Signature {
panic(err)
}
// Marshal -- stub
func (s SecretKey) Marshal() []byte {
panic(err)
}
// PublicKey -- stub
type PublicKey struct{}
// Marshal -- stub
func (p PublicKey) Marshal() []byte {
panic(err)
}
// Copy -- stub
func (p PublicKey) Copy() iface.PublicKey {
panic(err)
}
// Aggregate -- stub
func (p PublicKey) Aggregate(p2 iface.PublicKey) iface.PublicKey {
panic(err)
}
// Signature -- stub
type Signature struct{}
// Verify -- stub
func (s Signature) Verify(pubKey iface.PublicKey, msg []byte) bool {
panic(err)
}
// AggregateVerify -- stub
func (s Signature) AggregateVerify(_ []iface.PublicKey, _ [][32]byte) bool {
panic(err)
}
// FastAggregateVerify -- stub
func (s Signature) FastAggregateVerify(_ []iface.PublicKey, _ [32]byte) bool {
panic(err)
}
// Marshal -- stub
func (s Signature) Marshal() []byte {
panic(err)
}
// Copy -- stub
func (s Signature) Copy() iface.Signature {
panic(err)
}
// SecretKeyFromBytes -- stub
func SecretKeyFromBytes(_ []byte) (SecretKey, error) {
panic(err)
}
// PublicKeyFromBytes -- stub
func PublicKeyFromBytes(_ []byte) (PublicKey, error) {
panic(err)
}
// SignatureFromBytes -- stub
func SignatureFromBytes(_ []byte) (Signature, error) {
panic(err)
}
// AggregatePublicKeys -- stub
func AggregatePublicKeys(_ [][]byte) (PublicKey, error) {
panic(err)
}
// AggregateSignatures -- stub
func AggregateSignatures(_ []iface.Signature) iface.Signature {
panic(err)
}
// VerifyMultipleSignatures -- stub
func VerifyMultipleSignatures(_ [][]byte, _ [][32]byte, _ []iface.PublicKey) (bool, error) {
panic(err)
}
// NewAggregateSignature -- stub
func NewAggregateSignature() iface.Signature {
panic(err)
}
// RandKey -- stub
func RandKey() iface.SecretKey {
panic(err)
}
// VerifyCompressed -- stub
func VerifyCompressed(_ []byte, _ []byte, _ []byte) bool {
panic(err)
}