Skip to content

Commit 5548fdc

Browse files
author
Danny Diekroeger
committed
spaces fix
1 parent 93fd72f commit 5548fdc

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

app/admin.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -200,23 +200,23 @@ const validateKey = function(key, type) {
200200
// if we have provided a verificationPub, then check the key signature
201201
if (process.config.verificationPub) {
202202

203-
if (!key.signature) {
204-
console.log(`Key ${key.pub} requires a signature and does not have one.`);
205-
return false;
206-
}
207-
208-
let validSig = false;
209-
try {
210-
validSig = bitcoinMessage.verify(key.pub, process.config.verificationPub, key.signature);
211-
} catch (err) {
212-
console.log(`There was an error when verifying key ${key.pub}: ` + err.message);
213-
return false;
214-
}
215-
216-
if (!validSig) {
217-
console.log(`Invalid signature detected on key ${key.pub}`);
218-
return false;
219-
}
203+
if (!key.signature) {
204+
console.log(`Key ${key.pub} requires a signature and does not have one.`);
205+
return false;
206+
}
207+
208+
let validSig = false;
209+
try {
210+
validSig = bitcoinMessage.verify(key.pub, process.config.verificationPub, key.signature);
211+
} catch (err) {
212+
console.log(`There was an error when verifying key ${key.pub}: ` + err.message);
213+
return false;
214+
}
215+
216+
if (!validSig) {
217+
console.log(`Invalid signature detected on key ${key.pub}`);
218+
return false;
219+
}
220220
}
221221

222222
return true;

0 commit comments

Comments
 (0)