Skip to content

Commit

Permalink
better linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rohenaz committed Oct 30, 2020
1 parent 6b8c6eb commit 25f3ec8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ 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,
) {
*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
Expand Down

0 comments on commit 25f3ec8

Please sign in to comment.