Commit 0d626789bd488bef3a0fa7f32ae71cc173449ed5
Merge pull request #34 from ssbc/staltz-patch-1
Avoid reserved keywords in sodium.jsDominic Tarr authored on 4/13/2017, 7:47:53 PM
GitHub committed on 4/13/2017, 7:47:53 PM
Parent: 578610e8c48d0313a1d7bb6f0526b1ea666a837a
Parent: 4344e616c4767fdd5bacd1c85e19b506fb8d8772
Files changed
sodium.js | changed |
sodium.js | |||
---|---|---|---|
@@ -18,14 +18,14 @@ | |||
18 | 18 … | private: keys.privateKey || keys.secretKey | |
19 | 19 … | } | |
20 | 20 … | }, | |
21 | 21 … | ||
22 | - sign: function (private, message) { | ||
23 | - return sodium.crypto_sign_detached(message, private) | ||
22 … | + sign: function (privateKey, message) { | ||
23 … | + return sodium.crypto_sign_detached(message, privateKey) | ||
24 | 24 … | }, | |
25 | 25 … | ||
26 | - verify: function (public, sig, message) { | ||
27 | - return sodium.crypto_sign_verify_detached(sig, message, public) | ||
26 … | + verify: function (publicKey, sig, message) { | ||
27 … | + return sodium.crypto_sign_verify_detached(sig, message, publicKey) | ||
28 | 28 … | } | |
29 | 29 … | ||
30 | 30 … | } | |
31 | 31 … |
Built with git-ssb-web