From 6b8c6eb20f0b03f392fa059331cafd97fe1843d0 Mon Sep 17 00:00:00 2001 From: Luke Date: Fri, 30 Oct 2020 00:08:31 -0400 Subject: [PATCH] funky linter fix --- encryption.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/encryption.go b/encryption.go index 26010fd..1b7be5a 100644 --- a/encryption.go +++ b/encryption.go @@ -64,7 +64,12 @@ func DecryptWithPrivateKeyString(privateKey, data string) (string, error) { } // EncryptShared will encrypt data and provide shared keys for decryption -func EncryptShared(u1priv *bsvec.PrivateKey, u2pub *bsvec.PublicKey, in []byte) (*bsvec.PrivateKey, *bsvec.PublicKey, []byte, error) { +func EncryptShared(u1priv *bsvec.PrivateKey, u2pub *bsvec.PublicKey, in []byte) ( + *bsvec.PrivateKey, + *bsvec.PublicKey, + []byte, + error, +) { // Generate shared keys that can be decrypted by either user sharedPrivKey, sharedPubKey := GenerateSharedKeyPair(u1priv, u2pub) // Encrypt data with shared key