File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -200,23 +200,23 @@ const validateKey = function(key, type) {
200
200
// if we have provided a verificationPub, then check the key signature
201
201
if ( process . config . verificationPub ) {
202
202
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
+ }
220
220
}
221
221
222
222
return true ;
You can’t perform that action at this time.
0 commit comments