@@ -3,7 +3,7 @@ import assert from 'assert';
33import * as ecc from 'tiny-secp256k1' ;
44import * as bitcoin from 'bitcoinjs-lib' ;
55import { fromHex , toHex } from 'uint8array-tools' ;
6- import * as fixtures from '../fixtures/p2sp.json' ;
6+ import fixtures from '../fixtures/p2sp.json' ;
77import { hash160 } from '../../ts_src/crypto.js' ;
88import {
99 calculateInputHashTweak ,
@@ -487,11 +487,8 @@ function runReceiverCase(tc: Recipient) {
487487 assert . ok ( scannedResult . has ( x ) , `receiver: missing expected entry ${ x } ` ) ;
488488}
489489
490- // ================================================================
491- // ======================= mocha suite ==========================
492- // ================================================================
493490describe ( 'BIP-352 Silent Payments — sender vectors' , ( ) => {
494- const groups : TestCase [ ] = fixtures as TestCase [ ] ;
491+ const groups : TestCase [ ] = fixtures ;
495492 let count = 0 ;
496493 for ( const g of groups ) {
497494 if ( ! g ?. sending ) continue ;
@@ -535,7 +532,7 @@ describe('BIP-352 Silent Payments — sender vectors', () => {
535532} ) ;
536533
537534describe ( 'BIP-352 Silent Payments — receiver vectors' , ( ) => {
538- const groups : TestCase [ ] = fixtures as TestCase [ ] ;
535+ const groups : TestCase [ ] = fixtures ;
539536 let count = 0 ;
540537 for ( const g of groups ) {
541538 if ( ! g ?. receiving ) continue ;
0 commit comments