github.com/onflow/flow-go@v0.33.17/engine/verification/utils/hasher.go (about)

     1  package utils
     2  
     3  import (
     4  	"github.com/onflow/flow-go/crypto/hash"
     5  	"github.com/onflow/flow-go/module/signature"
     6  )
     7  
     8  // NewResultApprovalHasher generates and returns a hasher for signing
     9  // and verification of result approvals
    10  func NewResultApprovalHasher() hash.Hasher {
    11  	h := signature.NewBLSHasher(signature.ResultApprovalTag)
    12  	return h
    13  }