unit tests/crypto: test genesis output for torsion

This commit is contained in:
jeffro256
2025-04-07 14:50:08 -05:00
committed by akildemir
parent ad1eb77d50
commit cc83158ccc

View File

@@ -312,3 +312,13 @@ TEST(Crypto, tree_branch)
}
}
}
TEST(Crypto, genesis_tx_output_torsion)
{
rct::key k;
// see config::GENESIS_TX
epee::string_tools::hex_to_pod("9b2e4c0281c0b02e7c53291a94d1d0cbff8883f8024f5142ee494ffbbd088071", k);
ge_p3 x;
ASSERT_EQ(ge_frombytes_vartime(&x, k.bytes), 0);
EXPECT_FALSE(rct::isInMainSubgroup(k));
}