mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 10:12:19 +00:00
7cc32c4dda
* remove unused code * remove defer use in loop * Remove unused methods and constants * gofmt and gaz * nilness check * remove unused args * Add TODO for refactoring subscribeWithBase to remove unused arg. It seems too involved to include in this sweeping PR. https://github.com/prysmaticlabs/prysm/issues/7437 * replace empty slice declaration * Remove unnecessary type conversions * remove redundant type declaration * rename receivers to be consistent * Remove bootnode query tool. It is now obsolete by discv5 * Remove relay node. It is no longer used or supported * Revert "Remove relay node. It is no longer used or supported" This reverts commit 4bd7717334dad85ef4766ed9bc4da711fb5fa810. * Delete unused test directory * Delete unsupported gcp startup script * Delete old k8s script * build fixes * fix build * go mod tidy * revert slasher/db/kv/block_header.go * fix build * remove redundant nil check * combine func args Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
118 lines
2.2 KiB
Go
118 lines
2.2 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(_ []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(_ iface.PublicKey) iface.PublicKey {
|
|
panic(err)
|
|
}
|
|
|
|
// Signature -- stub
|
|
type Signature struct{}
|
|
|
|
// Verify -- stub
|
|
func (s Signature) Verify(_ iface.PublicKey, _ []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)
|
|
}
|