Skip to content

Commit

Permalink
funky linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rohenaz committed Oct 30, 2020
1 parent e45724e commit 6b8c6eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b8c6eb

Please sign in to comment.