test/src/crypto/secp256k1/secp256k1_provider_test.cpp
TEST_F(Secp256k1ProviderTest, RecoverInvalidSignatureFailure) {
  RSVSignature wrong_signature{};
  *wrong_signature.rbegin() = 99;
  EXPECT_OUTCOME_ERROR(res,
                       secp256K1_provider->recoverPublickeyUncompressed(
                           wrong_signature, secp_message_hash),
                       Secp256k1ProviderError::INVALID_ARGUMENT);
}
/**
 * @given Sample message and wrong signature
 * @when Recover pubkey from message and signature
 * @then Recovery must be unsuccessful
 */
@given Sample message and wrong signature
@when Recover pubkey from message and signature
@then Recovery must be unsuccessful
@given Sample message and wrong signature @when Recover pubkey from message and signature @then Recovery must be unsuccessful
TEST_F(Secp256k1ProviderTest, RecoverInvalidSignatureFailure) {
  RSVSignature wrong_signature{};
  *wrong_signature.rbegin() = 99;
  EXPECT_OUTCOME_ERROR(res,
                       secp256K1_provider->recoverPublickeyUncompressed(
                           wrong_signature, secp_message_hash),
                       Secp256k1ProviderError::INVALID_ARGUMENT);
}
TEST_F ( Secp256k1ProviderTest , RecoverInvalidSignatureFailure ) { RSVSignature wrong_signature { } ; * wrong_signature . rbegin ( ) = 99 ; EXPECT_OUTCOME_ERROR ( res , secp256K1_provider -> recoverPublickeyUncompressed ( wrong_signature , secp_message_hash ) , Secp256k1ProviderError :: INVALID_ARGUMENT ) ; }
@given Sample message and wrong signature
 @when Recover pubkey from message and signature
 @then Recovery must be unsuccessful
@given Sample message and wrong signature @when Recover pubkey from message and signature @then Recovery must be unsuccessful