correct func comment

pull/3374/head
Rongjian Lan 4 years ago
parent eb837336a8
commit 2a45a1d684
  1. 3
      consensus/consensus_service.go

@ -109,8 +109,7 @@ func NewFaker() *Consensus {
return &Consensus{} return &Consensus{}
} }
// Sign on the hash of the message with the private keys and return the signature. // Sign on the hash of the message
// If multiple keys are provided, the aggregated signature will be returned.
func (consensus *Consensus) signMessage(message []byte, priKey *bls_core.SecretKey) []byte { func (consensus *Consensus) signMessage(message []byte, priKey *bls_core.SecretKey) []byte {
hash := hash.Keccak256(message) hash := hash.Keccak256(message)
signature := priKey.SignHash(hash[:]) signature := priKey.SignHash(hash[:])

Loading…
Cancel
Save