From f4be0fe818e9c89ad46432eef71e3c137bbbd007 Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Thu, 22 Apr 2021 17:30:03 -0400 Subject: [PATCH] chore: update github.com/flynn/noise to v1 --- p2p/security/noise/crypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/security/noise/crypto.go b/p2p/security/noise/crypto.go index 954a38880b..2b1c5afef4 100644 --- a/p2p/security/noise/crypto.go +++ b/p2p/security/noise/crypto.go @@ -23,7 +23,7 @@ func (s *secureSession) encrypt(out, plaintext []byte) ([]byte, error) { if s.enc == nil { return nil, errors.New("cannot encrypt, handshake incomplete") } - return s.enc.Encrypt(out, nil, plaintext), nil + return s.enc.Encrypt(out, nil, plaintext) } // decrypt calls the cipher's decryption. It decrypts the provided ciphertext,