jshint compliance
This commit is contained in:
6
rpc.js
6
rpc.js
@@ -18,9 +18,11 @@ var isValidChannel = function (chan) {
|
||||
var checkSignature = function (signedMsg, publicKey) {
|
||||
if (!(signedMsg && publicKey)) { return null; }
|
||||
|
||||
var signedBuffer;
|
||||
var pubBuffer;
|
||||
try {
|
||||
var signedBuffer = Nacl.util.decodeBase64(signedMsg);
|
||||
var pubBuffer = Nacl.util.decodeBase64(publicKey);
|
||||
signedBuffer = Nacl.util.decodeBase64(signedMsg);
|
||||
pubBuffer = Nacl.util.decodeBase64(publicKey);
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user