@@ -1550,14 +1550,14 @@ mod tests {
15501550 let mut ext = BasicExternalities :: default ( ) ;
15511551 ext. register_extension ( TaskExecutorExt :: new ( TaskExecutor :: new ( ) ) ) ;
15521552 ext. execute_with ( || {
1553- // invalid ed25519 signature
1553+ // identity ed25519 signature is valid
15541554 crypto:: start_batch_verify ( ) ;
15551555 crypto:: ed25519_batch_verify (
15561556 & Default :: default ( ) ,
15571557 & Vec :: new ( ) ,
15581558 & Default :: default ( ) ,
15591559 ) ;
1560- assert ! ( ! crypto:: finish_batch_verify( ) ) ;
1560+ assert ! ( crypto:: finish_batch_verify( ) ) ;
15611561
15621562 // 2 valid ed25519 signatures
15631563 crypto:: start_batch_verify ( ) ;
@@ -1577,16 +1577,13 @@ mod tests {
15771577 // 1 valid, 1 invalid ed25519 signature
15781578 crypto:: start_batch_verify ( ) ;
15791579
1580- let pair = ed25519:: Pair :: generate_with_phrase ( None ) . 0 ;
1580+ let pair1 = ed25519:: Pair :: generate_with_phrase ( None ) . 0 ;
1581+ let pair2 = ed25519:: Pair :: generate_with_phrase ( None ) . 0 ;
15811582 let msg = b"Important message" ;
1582- let signature = pair. sign ( msg) ;
1583- crypto:: ed25519_batch_verify ( & signature, msg, & pair. public ( ) ) ;
1583+ let signature = pair1. sign ( msg) ;
15841584
1585- crypto:: ed25519_batch_verify (
1586- & Default :: default ( ) ,
1587- & Vec :: new ( ) ,
1588- & Default :: default ( ) ,
1589- ) ;
1585+ crypto:: ed25519_batch_verify ( & signature, msg, & pair1. public ( ) ) ;
1586+ crypto:: ed25519_batch_verify ( & signature, msg, & pair2. public ( ) ) ;
15901587
15911588 assert ! ( !crypto:: finish_batch_verify( ) ) ;
15921589
@@ -1621,7 +1618,7 @@ mod tests {
16211618 crypto:: sr25519_batch_verify (
16221619 & Default :: default ( ) ,
16231620 & Vec :: new ( ) ,
1624- & Default :: default ( ) ,
1621+ & Default :: default ( )
16251622 ) ;
16261623
16271624 assert ! ( !crypto:: finish_batch_verify( ) ) ;
0 commit comments