@@ -36,8 +36,8 @@ const schnorr = exports;
3636 */
3737
3838schnorr . hash = function hash ( q , pubkey , msg ) {
39- let totalLength = 66 + msg . byteLength // 33 q + 33 pubkey + variable msgLen
40- let Q = q . toArrayLike ( Buffer , 'be' , 33 ) ;
39+ const totalLength = 66 + msg . byteLength // 33 q + 33 pubkey + variable msgLen
40+ const Q = q . toArrayLike ( Buffer , 'be' , 33 ) ;
4141 const B = Buffer . allocUnsafe ( totalLength ) ;
4242
4343 Q . copy ( B , 0 ) ;
@@ -70,8 +70,8 @@ schnorr.trySign = function trySign(msg, prv, k, pn, pubKey) {
7070 if ( k . gte ( curve . n ) )
7171 return null ;
7272
73- let Q = curve . g . mul ( k ) ;
74- let compressedQ = new BN ( Q . encodeCompressed ( ) ) ;
73+ const Q = curve . g . mul ( k ) ;
74+ const compressedQ = new BN ( Q . encodeCompressed ( ) ) ;
7575
7676 const r = schnorr . hash ( compressedQ , pubKey , msg ) ;
7777 const h = r . clone ( ) ;
@@ -139,8 +139,8 @@ schnorr.verify = function verify(msg, signature, key) {
139139 const l = kpub . mul ( sig . r ) ;
140140 const r = curve . g . mul ( sig . s ) ;
141141
142- let Q = l . add ( r ) ;
143- let compressedQ = new BN ( Q . encodeCompressed ( ) ) ;
142+ const Q = l . add ( r ) ;
143+ const compressedQ = new BN ( Q . encodeCompressed ( ) ) ;
144144
145145 const r1 = schnorr . hash ( compressedQ , key , msg ) ;
146146
0 commit comments