@@ -355,7 +355,7 @@ describe('basic curve tests', () => {
355355 }
356356 throws ( ( ) => C . getPublicKey ( 'key' ) , "'key'" ) ;
357357 throws ( ( ) => C . getPublicKey ( { } ) ) ;
358- throws ( ( ) => C . getPublicKey ( new Uint8Array ( [ ] ) ) ) ;
358+ throws ( ( ) => C . getPublicKey ( Uint8Array . of ( ) ) ) ;
359359 throws ( ( ) => C . getPublicKey ( Array ( 32 ) . fill ( 1 ) ) ) ;
360360 } ) ;
361361
@@ -388,7 +388,7 @@ describe('basic curve tests', () => {
388388 // )
389389 // );
390390 should ( '.verify() should verify empty signatures' , ( ) => {
391- const msg = new Uint8Array ( [ ] ) ;
391+ const msg = Uint8Array . of ( ) ;
392392 const k = C . keygen ( ) ;
393393 const sig = C . sign ( msg , k . secretKey ) ;
394394 eql (
@@ -399,7 +399,7 @@ describe('basic curve tests', () => {
399399 } ) ;
400400
401401 should ( '.sign() type tests' , ( ) => {
402- const msg = new Uint8Array ( [ ] ) ;
402+ const msg = Uint8Array . of ( ) ;
403403 const k = C . keygen ( ) ;
404404 C . sign ( msg , k . secretKey ) ;
405405 for ( let [ item , repr_ ] of getTypeTests ( ) ) {
@@ -513,7 +513,7 @@ describe('basic curve tests', () => {
513513 }
514514
515515 // NOTE: fails for ed, because of empty message. Since we convert it to scalar,
516- // need to check what other implementations do. Empty message != new Uint8Array([0] ), but what scalar should be in that case?
516+ // need to check what other implementations do. Empty message != Uint8Array.of(0 ), but what scalar should be in that case?
517517 // should('should not verify signature with wrong message', () => {
518518 // fc.assert(
519519 // fc.property(
0 commit comments