20 #include <ripple/app/tx/apply.h>
21 #include <ripple/basics/StringUtilities.h>
22 #include <ripple/protocol/Feature.h>
23 #include <test/jtx/Env.h>
33 testcase(
"Require Fully Canonicial Signature");
42 "12000022000000002400000001201B00497D9C6140000000000F6950684000000"
43 "00000000C732103767C7B2C13AD90050A4263745E4BAB2B975417FA22E87780E1"
44 "506DDAF21139BE74483046022100E95670988A34C4DB0FA73A8BFD6383872AF43"
45 "8C147A62BC8387406298C3EADC1022100A7DC80508ED5A4750705C702A81CBF9D"
46 "2C2DC3AFEDBED37BBCCD97BC8C40E08F8114E25A26437D923EEF4D6D815DF9336"
47 "8B62E6440848314BB85996936E4F595287774684DC2AC6266024BEF";
49 auto ret =
strUnHex(non_fully_canonical_tx);
51 STTx const tx = *std::make_shared<STTx const>(
std::ref(sitTrans));
62 no_fully_canonical.
current()->rules(),
67 fail(
"Non-Fully canoncial signature was not permitted");
77 fully_canonical.
current()->rules(),
81 fail(
"Non-Fully canoncial signature was permitted");
std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)
BEAST_DEFINE_TESTSUITE(AccountTxPaging, app, ripple)
Validity
Describes the pre-processing validity of a transaction.
void testFullyCanonicalSigs()
const uint256 featureRequireFullyCanonicalSig
std::pair< Validity, std::string > checkValidity(HashRouter &router, STTx const &tx, Rules const &rules, Config const &config)
Checks transaction signature and local checks.
virtual Config & config()=0
FeatureBitset supported_amendments()
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
@ Valid
Signature and local checks are good / passed.
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
virtual HashRouter & getHashRouter()=0
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
A transaction testing environment.