99 INVALID_SHORT_KEYPAIR_KEY ,
1010 INVALID_LONG_KEYPAIR_PRV ,
1111} from '../../resources/account' ;
12+ import { ecc } from '@bitgo/secp256k1' ;
1213import { EXPORT_IN_C } from '../../resources/transactionData/exportInC' ;
1314import { IMPORT_IN_P } from '../../resources/transactionData/importInP' ;
1415
@@ -368,18 +369,6 @@ describe('Utils', function () {
368369 } ) ;
369370 } ) ;
370371
371- describe ( 'isValidSignature' , function ( ) {
372- it ( 'should throw NotImplementedError' , function ( ) {
373- assert . throws ( ( ) => utils . isValidSignature ( SEED_ACCOUNT . signature ) , / i s V a l i d S i g n a t u r e n o t i m p l e m e n t e d / ) ;
374- } ) ;
375- } ) ;
376-
377- describe ( 'isValidTransactionId' , function ( ) {
378- it ( 'should throw NotImplementedError' , function ( ) {
379- assert . throws ( ( ) => utils . isValidTransactionId ( EXPORT_IN_C . txhash ) , / i s V a l i d T r a n s a c t i o n I d n o t i m p l e m e n t e d / ) ;
380- } ) ;
381- } ) ;
382-
383372 describe ( 'addressToString' , function ( ) {
384373 it ( 'should convert address buffer to mainnet bech32 string' , function ( ) {
385374 const address = SEED_ACCOUNT . addressMainnet ;
@@ -514,7 +503,6 @@ describe('Utils', function () {
514503 const privateKey = Buffer . from ( SEED_ACCOUNT . privateKey , 'hex' ) ;
515504
516505 // Get original public key
517- const { ecc } = require ( '@bitgo/secp256k1' ) ;
518506 const originalPubKey = Buffer . from ( ecc . pointFromScalar ( privateKey , true ) as Uint8Array ) ;
519507
520508 // Create signature and recover public key
@@ -529,7 +517,6 @@ describe('Utils', function () {
529517 const message = Buffer . from ( SEED_ACCOUNT . message , 'utf8' ) ;
530518 const privateKey = Buffer . from ( ACCOUNT_1 . privateKey , 'hex' ) ;
531519
532- const { ecc } = require ( '@bitgo/secp256k1' ) ;
533520 const originalPubKey = Buffer . from ( ecc . pointFromScalar ( privateKey , true ) as Uint8Array ) ;
534521
535522 const signature = utils . createSignature ( network , message , privateKey ) ;
0 commit comments