test/src/crypto/sr25519/sr25519_provider_test.cpp
TEST_F(SR25519ProviderTest, DISABLED_SignWithInvalidKeyFails) {
  auto kp = sr25519_provider->generateKeypair();
  kp.public_key.fill(1);
  EXPECT_OUTCOME_FALSE_1(sr25519_provider->sign(kp, message_span));
}
/**
 * Don't try to sign a message using invalid key pair, this may lead to
 * program termination
 *
 * @given sr25519 provider instance configured with boost random generator
 * @and a predefined message
 * @when generate a keypair @and make public key invalid @and sign message
 * @then sign fails
 */
Don't try to sign a message using invalid key pair, this may lead to
program termination


Don ' t try to sign a message using invalid key pair this may lead to program termination
TEST_F(SR25519ProviderTest, DISABLED_SignWithInvalidKeyFails) {
  auto kp = sr25519_provider->generateKeypair();
  kp.public_key.fill(1);
  EXPECT_OUTCOME_FALSE_1(sr25519_provider->sign(kp, message_span));
}
TEST_F ( SR25519ProviderTest , DISABLED_SignWithInvalidKeyFails ) { auto kp = sr25519_provider -> generateKeypair ( ) ; kp . public_key . fill ( 1 ) ; EXPECT_OUTCOME_FALSE_1 ( sr25519_provider -> sign ( kp , message_span ) ) ; }
Don't try to sign a message using invalid key pair, this may lead to
 program termination
Don ' t try to sign a message using invalid key pair this may lead to program termination