github.com/koko1123/flow-go-1@v0.29.6/module/signature/aggregation_no_relic.go (about)

     1  //go:build !relic
     2  // +build !relic
     3  
     4  package signature
     5  
     6  import (
     7  	"github.com/onflow/flow-go/crypto"
     8  )
     9  
    10  const panic_relic = "function only supported with the relic build tag"
    11  
    12  // These functions are the non-relic versions of some public functions from the package.
    13  // The functions are here to allow the build of flow-emulator, since the emulator is built
    14  // without the "relic" build tag, and does not run the functions below.
    15  type SignatureAggregatorSameMessage struct{}
    16  
    17  func NewSignatureAggregatorSameMessage(
    18  	message []byte,
    19  	dsTag string,
    20  	publicKeys []crypto.PublicKey,
    21  ) (*SignatureAggregatorSameMessage, error) {
    22  	panic(panic_relic)
    23  }
    24  
    25  func (s *SignatureAggregatorSameMessage) Verify(signer int, sig crypto.Signature) (bool, error) {
    26  	panic(panic_relic)
    27  }
    28  func (s *SignatureAggregatorSameMessage) TrustedAdd(signer int, sig crypto.Signature) error {
    29  	panic(panic_relic)
    30  }
    31  
    32  func (s *SignatureAggregatorSameMessage) Aggregate() ([]int, crypto.Signature, error) {
    33  	panic(panic_relic)
    34  }