diff --git a/pkg/identity/identity.go b/pkg/identity/identity.go index 2fb98822..bb83600c 100644 --- a/pkg/identity/identity.go +++ b/pkg/identity/identity.go @@ -2,7 +2,6 @@ package identity import ( "crypto/ed25519" - "crypto/rand" "encoding/hex" "encoding/json" "errors" @@ -295,14 +294,6 @@ func (s *fileStore) VerifyMessage(msg *types.TssMessage) error { return nil } -func generateRandom(nonceSize int) ([]byte, error) { - nonce := make([]byte, nonceSize) - if _, err := rand.Read(nonce); err != nil { - return nil, err - } - return nonce, nil -} - func (s *fileStore) EncryptMessage(plaintext []byte, peerID string) ([]byte, error) { key, err := s.GetSymmetricKey(peerID) if err != nil {