github.com/amazechain/amc@v0.1.3/common/crypto/bls/blst/stub.go (about)

     1  //go:build blst_disabled
     2  
     3  package blst
     4  
     5  // This stub file exists until build issues can be resolved for libfuzz.
     6  const err = "blst is only supported on linux,darwin,windows"
     7  
     8  // SecretKey -- stub
     9  type SecretKey struct{}
    10  
    11  // PublicKey -- stub
    12  func (s SecretKey) PublicKey() common.PublicKey {
    13  	panic(err)
    14  }
    15  
    16  // Sign -- stub
    17  func (s SecretKey) Sign(_ []byte) common.Signature {
    18  	panic(err)
    19  }
    20  
    21  // Marshal -- stub
    22  func (s SecretKey) Marshal() []byte {
    23  	panic(err)
    24  }
    25  
    26  // IsZero -- stub
    27  func (s SecretKey) IsZero() bool {
    28  	panic(err)
    29  }
    30  
    31  // PublicKey -- stub
    32  type PublicKey struct{}
    33  
    34  // Marshal -- stub
    35  func (p PublicKey) Marshal() []byte {
    36  	panic(err)
    37  }
    38  
    39  // Copy -- stub
    40  func (p PublicKey) Copy() common.PublicKey {
    41  	panic(err)
    42  }
    43  
    44  // Aggregate -- stub
    45  func (p PublicKey) Aggregate(_ common.PublicKey) common.PublicKey {
    46  	panic(err)
    47  }
    48  
    49  // IsInfinite -- stub
    50  func (p PublicKey) IsInfinite() bool {
    51  	panic(err)
    52  }
    53  
    54  // Equals -- stub
    55  func (p PublicKey) Equals(_ common.PublicKey) bool {
    56  	panic(err)
    57  }
    58  
    59  // Signature -- stub
    60  type Signature struct{}
    61  
    62  // Verify -- stub
    63  func (s Signature) Verify(_ common.PublicKey, _ []byte) bool {
    64  	panic(err)
    65  }
    66  
    67  // AggregateVerify -- stub
    68  func (s Signature) AggregateVerify(_ []common.PublicKey, _ [][32]byte) bool {
    69  	panic(err)
    70  }
    71  
    72  // FastAggregateVerify -- stub
    73  func (s Signature) FastAggregateVerify(_ []common.PublicKey, _ [32]byte) bool {
    74  	panic(err)
    75  }
    76  
    77  // Eth2FastAggregateVerify -- stub
    78  func (s Signature) Eth2FastAggregateVerify(_ []common.PublicKey, _ [32]byte) bool {
    79  	panic(err)
    80  }
    81  
    82  // Marshal -- stub
    83  func (s Signature) Marshal() []byte {
    84  	panic(err)
    85  }
    86  
    87  // Copy -- stub
    88  func (s Signature) Copy() common.Signature {
    89  	panic(err)
    90  }
    91  
    92  // SecretKeyFromBytes -- stub
    93  func SecretKeyFromBytes(_ []byte) (SecretKey, error) {
    94  	panic(err)
    95  }
    96  
    97  // PublicKeyFromBytes -- stub
    98  func PublicKeyFromBytes(_ []byte) (PublicKey, error) {
    99  	panic(err)
   100  }
   101  
   102  // SignatureFromBytes -- stub
   103  func SignatureFromBytes(_ []byte) (Signature, error) {
   104  	panic(err)
   105  }
   106  
   107  // MultipleSignaturesFromBytes -- stub
   108  func MultipleSignaturesFromBytes(multiSigs [][]byte) ([]common.Signature, error) {
   109  	panic(err)
   110  }
   111  
   112  // AggregatePublicKeys -- stub
   113  func AggregatePublicKeys(_ [][]byte) (PublicKey, error) {
   114  	panic(err)
   115  }
   116  
   117  // AggregateSignatures -- stub
   118  func AggregateSignatures(_ []common.Signature) common.Signature {
   119  	panic(err)
   120  }
   121  
   122  // AggregateMultiplePubkeys -- stub
   123  func AggregateMultiplePubkeys(pubs []common.PublicKey) common.PublicKey {
   124  	panic(err)
   125  }
   126  
   127  // AggregateCompressedSignatures -- stub
   128  func AggregateCompressedSignatures(multiSigs [][]byte) (common.Signature, error) {
   129  	panic(err)
   130  }
   131  
   132  // VerifyMultipleSignatures -- stub
   133  func VerifyMultipleSignatures(_ [][]byte, _ [][32]byte, _ []common.PublicKey) (bool, error) {
   134  	panic(err)
   135  }
   136  
   137  // NewAggregateSignature -- stub
   138  func NewAggregateSignature() common.Signature {
   139  	panic(err)
   140  }
   141  
   142  // RandKey -- stub
   143  func RandKey() (common.SecretKey, error) {
   144  	panic(err)
   145  }
   146  
   147  // VerifyCompressed -- stub
   148  func VerifyCompressed(_, _, _ []byte) bool {
   149  	panic(err)
   150  }