github.com/koko1123/flow-go-1@v0.29.6/engine/execution/computation/computer/spock_norelic.go (about)

     1  //go:build !relic
     2  // +build !relic
     3  
     4  package computer
     5  
     6  import (
     7  	"github.com/onflow/flow-go/crypto"
     8  	"github.com/onflow/flow-go/crypto/hash"
     9  )
    10  
    11  // This is a temporary wrapper that simulates a call to SPoCK prove,
    12  // required for the emulator build. The function is never called by the
    13  // emulator although it is required for a successful build.
    14  //
    15  // TODO(tarak): remove once the crypto module properly implements a non-relic
    16  // version of SPOCKProve.
    17  func SPOCKProve(
    18  	sk crypto.PrivateKey,
    19  	data []byte,
    20  	kmac hash.Hasher,
    21  ) (
    22  	crypto.Signature,
    23  	error,
    24  ) {
    25  	panic("SPoCK prove not supported when flow-go is built without relic")
    26  }