Skip to content

Commit 25f3ec8

Browse files
committed
better linter fix
1 parent 6b8c6eb commit 25f3ec8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

encryption.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ func DecryptWithPrivateKeyString(privateKey, data string) (string, error) {
6565

6666
// EncryptShared will encrypt data and provide shared keys for decryption
6767
func EncryptShared(u1priv *bsvec.PrivateKey, u2pub *bsvec.PublicKey, in []byte) (
68-
*bsvec.PrivateKey,
69-
*bsvec.PublicKey,
70-
[]byte,
71-
error,
72-
) {
68+
*bsvec.PrivateKey, *bsvec.PublicKey, []byte, error) {
7369
// Generate shared keys that can be decrypted by either user
7470
sharedPrivKey, sharedPubKey := GenerateSharedKeyPair(u1priv, u2pub)
7571
// Encrypt data with shared key

0 commit comments

Comments
 (0)