20 #include <ripple/basics/Log.h>
21 #include <ripple/basics/contract.h>
22 #include <ripple/json/to_string.h>
23 #include <ripple/protocol/HashPrefix.h>
24 #include <ripple/protocol/STValidation.h>
102 JLOG(
debugLog().error()) <<
"Exception validating validation";
const SF_U32 sfLoadFee(access, STI_UINT32, 24, "LoadFee")
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)
uint256 getConsensusHash() const
boost::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
const SF_Blob sfSigningPubKey(access, STI_VL, 3, "SigningPubKey")
uint256 getLedgerHash() const
const SF_U32 sfFlags(access, STI_UINT32, 2, "Flags")
Blob getFieldVL(SField const &field) const
const SF_U256 sfValidatedHash(access, STI_HASH256, 25, "ValidatedHash")
static SOTemplate const & validationFormat()
const SF_U32 sfReserveBase(access, STI_UINT32, 31, "ReserveBase")
Blob getSignature() const
const SF_Blob sfSignature(access, STI_VL, 6, "Signature", SField::sMD_Default, SField::notSigning)
beast::Journal debugLog()
Returns a debug journal.
constexpr std::uint32_t vfFullyCanonicalSig
Defines the fields and their attributes within a STObject.
const SF_U32 sfSigningTime(access, STI_UINT32, 9, "SigningTime")
Blob getSerialized() const
const SF_U32 sfLedgerSequence(access, STI_UINT32, 6, "LedgerSequence")
std::uint32_t getFlags() const
@ validation
validation for signing
NetClock::time_point getSignTime() const
bool verifyDigest(PublicKey const &publicKey, uint256 const &digest, Slice const &sig, bool mustBeFullyCanonical)
Verify a secp256k1 signature on the digest of a message.
NetClock::time_point seenTime_
NetClock::time_point getSeenTime() const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
uint256 getSigningHash(HashPrefix prefix) const
virtual void add(Serializer &s) const override
const SF_U32 sfReserveIncrement(access, STI_UINT32, 32, "ReserveIncrement")
Blob const & peekData() const
const SF_U32 sfCloseTime(access, STI_UINT32, 7, "CloseTime")
uint256 getSigningHash() const
const SF_U64 sfCookie(access, STI_UINT64, 10, "Cookie")
PublicKey getSignerPublic() const
constexpr std::uint32_t vfFullValidation
const SF_Vec256 sfAmendments(access, STI_VECTOR256, 3, "Amendments")
std::uint32_t getFieldU32(SField const &field) const
const SF_U64 sfBaseFee(access, STI_UINT64, 5, "BaseFee")
const SF_U256 sfConsensusHash(access, STI_HASH256, 23, "ConsensusHash")
const SF_U256 sfLedgerHash(access, STI_HASH256, 1, "LedgerHash")
const SF_U64 sfServerVersion(access, STI_UINT64, 11, "ServerVersion")
uint256 getFieldH256(SField const &field) const