Skip to content

Commit

Permalink
Remove unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Aug 19, 2024
1 parent 9078f66 commit 9482740
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions sign/bls/bls.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ package bls

import (
"crypto/cipher"
"crypto/sha256"
"errors"

"go.dedis.ch/kyber/v4"
Expand Down Expand Up @@ -93,15 +92,3 @@ func (s *scheme) Verify(X kyber.Point, msg, sig []byte) error {
}
return nil
}

func distinct(msgs [][]byte) bool {
m := make(map[[32]byte]bool)
for _, msg := range msgs {
h := sha256.Sum256(msg)
if m[h] {
return false
}
m[h] = true
}
return true
}

0 comments on commit 9482740

Please sign in to comment.