test/src/crypto/secp256k1/secp256k1_provider_test.cpp
TEST_F(Secp256k1ProviderTest, RecoverUncompressedSuccess) {
  EXPECT_OUTCOME_TRUE(public_key,
                      secp256K1_provider->recoverPublickeyUncompressed(
                          secp_signature, secp_message_hash));
  EXPECT_EQ(public_key, secp_public_key);
}
/**
 * @given Sample message, signature, and pubkey from go-secp256k1
 * (https://github.com/ipsn/go-secp256k1/blob/master/secp256_test.go#L206)
 * Pay attention that hash function is not used for message (it is already 32
 * byte long)
 * @when Recover uncompressed pubkey from message and signature
 * @then Recovery is successful, public key returned
 */
@given Sample message, signature, and pubkey from go-secp256k1

Pay attention that hash function is not used for message (it is already 32
byte long)
@when Recover uncompressed pubkey from message and signature
@then Recovery is successful, public key returned
@given Sample message signature and pubkey from go - secp256k1 Pay attention that hash function is not used for message ( it is already 32 byte long ) @when Recover uncompressed pubkey from message and signature @then Recovery is successful public key returned
TEST_F(Secp256k1ProviderTest, RecoverUncompressedSuccess) {
  EXPECT_OUTCOME_TRUE(public_key,
                      secp256K1_provider->recoverPublickeyUncompressed(
                          secp_signature, secp_message_hash));
  EXPECT_EQ(public_key, secp_public_key);
}
TEST_F ( Secp256k1ProviderTest , RecoverUncompressedSuccess ) { EXPECT_OUTCOME_TRUE ( public_key , secp256K1_provider -> recoverPublickeyUncompressed ( secp_signature , secp_message_hash ) ) ; EXPECT_EQ ( public_key , secp_public_key ) ; }
@given Sample message, signature, and pubkey from go-secp256k1
 (https://github.com/ipsn/go-secp256k1/blob/master/secp256_test.go#L206)
 Pay attention that hash function is not used for message (it is already 32
 byte long)
 @when Recover uncompressed pubkey from message and signature
 @then Recovery is successful, public key returned
@given Sample message signature and pubkey from go - secp256k1 ( https : // github . com / ipsn / go - secp256k1 / blob / master / secp256_test . go#L206 ) Pay attention that hash function is not used for message ( it is already 32 byte long ) @when Recover uncompressed pubkey from message and signature @then Recovery is successful public key returned