From 94827400a20fe17a0d2fc2c1d81f0745f52a27cf Mon Sep 17 00:00:00 2001 From: lauener Date: Mon, 19 Aug 2024 08:28:11 +0200 Subject: [PATCH] Remove unused func --- sign/bls/bls.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/sign/bls/bls.go b/sign/bls/bls.go index f6126342..8e368b8c 100644 --- a/sign/bls/bls.go +++ b/sign/bls/bls.go @@ -13,7 +13,6 @@ package bls import ( "crypto/cipher" - "crypto/sha256" "errors" "go.dedis.ch/kyber/v4" @@ -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 -}