We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be082d0 + b8dac5a commit fa7e84cCopy full SHA for fa7e84c
1 file changed
pkg/identity/identity.go
@@ -2,7 +2,6 @@ package identity
2
3
import (
4
"crypto/ed25519"
5
- "crypto/rand"
6
"encoding/hex"
7
"encoding/json"
8
"errors"
@@ -295,14 +294,6 @@ func (s *fileStore) VerifyMessage(msg *types.TssMessage) error {
295
294
return nil
296
}
297
298
-func generateRandom(nonceSize int) ([]byte, error) {
299
- nonce := make([]byte, nonceSize)
300
- if _, err := rand.Read(nonce); err != nil {
301
- return nil, err
302
- }
303
- return nonce, nil
304
-}
305
-
306
func (s *fileStore) EncryptMessage(plaintext []byte, peerID string) ([]byte, error) {
307
key, err := s.GetSymmetricKey(peerID)
308
if err != nil {
0 commit comments