@@ -34,6 +34,7 @@ void test_ecdsa_recovery_end_to_end(void) {
3434 /* Serialize/parse compact and verify/recover. */
3535 extra [0 ] = 0 ;
3636 CHECK (secp256k1_ecdsa_sign_recoverable (ctx , & rsignature [0 ], message , privkey , NULL , NULL ) == 1 );
37+ CHECK (secp256k1_ecdsa_sign (ctx , & signature [0 ], message , privkey , NULL , NULL ) == 1 );
3738 CHECK (secp256k1_ecdsa_sign_recoverable (ctx , & rsignature [4 ], message , privkey , NULL , NULL ) == 1 );
3839 CHECK (secp256k1_ecdsa_sign_recoverable (ctx , & rsignature [1 ], message , privkey , NULL , extra ) == 1 );
3940 extra [31 ] = 1 ;
@@ -43,6 +44,7 @@ void test_ecdsa_recovery_end_to_end(void) {
4344 CHECK (secp256k1_ecdsa_sign_recoverable (ctx , & rsignature [3 ], message , privkey , NULL , extra ) == 1 );
4445 CHECK (secp256k1_ecdsa_recoverable_signature_serialize_compact (ctx , sig , & recid , & rsignature [4 ]) == 1 );
4546 CHECK (secp256k1_ecdsa_recoverable_signature_convert (ctx , & signature [4 ], & rsignature [4 ]) == 1 );
47+ CHECK (memcmp (& signature [4 ], & signature [0 ], 64 ) == 0 );
4648 CHECK (secp256k1_ecdsa_verify (ctx , & signature [4 ], message , & pubkey ) == 1 );
4749 memset (& rsignature [4 ], 0 , sizeof (rsignature [4 ]));
4850 CHECK (secp256k1_ecdsa_recoverable_signature_parse_compact (ctx , & rsignature [4 ], sig , recid ) == 1 );
0 commit comments