2020-10-08 18:37:12 +00:00
|
|
|
// +build darwin windows !blst_enabled
|
2020-09-16 13:28:28 +00:00
|
|
|
|
|
|
|
package blst
|
|
|
|
|
|
|
|
import "github.com/prysmaticlabs/prysm/shared/bls/iface"
|
|
|
|
|
2020-10-08 18:37:12 +00:00
|
|
|
// 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"
|
|
|
|
|
2020-09-16 13:28:28 +00:00
|
|
|
// SecretKey -- stub
|
|
|
|
type SecretKey struct{}
|
|
|
|
|
|
|
|
// PublicKey -- stub
|
|
|
|
func (s SecretKey) PublicKey() iface.PublicKey {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Sign -- stub
|
|
|
|
func (s SecretKey) Sign(msg []byte) iface.Signature {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Marshal -- stub
|
|
|
|
func (s SecretKey) Marshal() []byte {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// PublicKey -- stub
|
|
|
|
type PublicKey struct{}
|
|
|
|
|
|
|
|
// Marshal -- stub
|
|
|
|
func (p PublicKey) Marshal() []byte {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Copy -- stub
|
|
|
|
func (p PublicKey) Copy() iface.PublicKey {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Aggregate -- stub
|
|
|
|
func (p PublicKey) Aggregate(p2 iface.PublicKey) iface.PublicKey {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Signature -- stub
|
|
|
|
type Signature struct{}
|
|
|
|
|
|
|
|
// Verify -- stub
|
|
|
|
func (s Signature) Verify(pubKey iface.PublicKey, msg []byte) bool {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// AggregateVerify -- stub
|
2020-10-08 18:37:12 +00:00
|
|
|
func (s Signature) AggregateVerify(_ []iface.PublicKey, _ [][32]byte) bool {
|
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// FastAggregateVerify -- stub
|
2020-10-08 18:37:12 +00:00
|
|
|
func (s Signature) FastAggregateVerify(_ []iface.PublicKey, _ [32]byte) bool {
|
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Marshal -- stub
|
|
|
|
func (s Signature) Marshal() []byte {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Copy -- stub
|
|
|
|
func (s Signature) Copy() iface.Signature {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SecretKeyFromBytes -- stub
|
2020-10-08 18:37:12 +00:00
|
|
|
func SecretKeyFromBytes(_ []byte) (SecretKey, error) {
|
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// PublicKeyFromBytes -- stub
|
2020-10-08 18:37:12 +00:00
|
|
|
func PublicKeyFromBytes(_ []byte) (PublicKey, error) {
|
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SignatureFromBytes -- stub
|
2020-10-08 18:37:12 +00:00
|
|
|
func SignatureFromBytes(_ []byte) (Signature, error) {
|
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// AggregatePublicKeys -- stub
|
2020-10-08 18:37:12 +00:00
|
|
|
func AggregatePublicKeys(_ [][]byte) (PublicKey, error) {
|
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// AggregateSignatures -- stub
|
2020-10-08 18:37:12 +00:00
|
|
|
func AggregateSignatures(_ []iface.Signature) iface.Signature {
|
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// VerifyMultipleSignatures -- stub
|
2020-10-08 18:37:12 +00:00
|
|
|
func VerifyMultipleSignatures(_ [][]byte, _ [][32]byte, _ []iface.PublicKey) (bool, error) {
|
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewAggregateSignature -- stub
|
|
|
|
func NewAggregateSignature() iface.Signature {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// RandKey -- stub
|
|
|
|
func RandKey() iface.SecretKey {
|
2020-10-08 18:37:12 +00:00
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// VerifyCompressed -- stub
|
2020-10-08 18:37:12 +00:00
|
|
|
func VerifyCompressed(_ []byte, _ []byte, _ []byte) bool {
|
|
|
|
panic(err)
|
2020-09-16 13:28:28 +00:00
|
|
|
}
|