git ssb

1+

Dominic / ssb-keys



Commit 0d626789bd488bef3a0fa7f32ae71cc173449ed5

Merge pull request #34 from ssbc/staltz-patch-1

Avoid reserved keywords in sodium.js
Dominic 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.jschanged
sodium.jsView
@@ -18,14 +18,14 @@
1818 private: keys.privateKey || keys.secretKey
1919 }
2020 },
2121
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)
2424 },
2525
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)
2828 }
2929
3030 }
3131

Built with git-ssb-web