20 #include <ripple/protocol/digest.h>
21 #include <ripple/protocol/Indexes.h>
22 #include <boost/endian/conversion.hpp>
121 ((
std::uint64_t*) uNode.
end ())[-1] = boost::endian::native_to_big (uNodeDir);
130 from_hex_text<uint256>(
"10000000000000000"));
131 return uBase + uNext;
256 Issue const& issue)
const
315 return {
ltANY, key };
Keylet operator()() const
Keylet operator()(AccountID const &id0, AccountID const &id1, Currency const ¤cy) const
A pair of SHAMap key and LedgerEntryType.
A currency issued by an account.
std::enable_if_t< is_contiguously_hashable< T, Hasher >::value > hash_append(Hasher &h, T const &t) noexcept
Logically concatenate input data to a Hasher.
Keylet operator()(AccountID const &id) const
bool isConsistent(Book const &book)
Returns the SHA512-Half digest of a message.
uint256 getLedgerAmendmentIndex()
uint256 getBookBase(Book const &book)
uint256 getQualityIndex(uint256 const &uBase, const std::uint64_t uNodeDir)
@ ltANY
Special type, anything This is used when the type in the Keylet is unknown, such as when building met...
uint256 getOfferIndex(AccountID const &account, std::uint32_t uSequence)
Keylet payChan(AccountID const &source, AccountID const &dst, std::uint32_t seq)
A PaymentChannel.
uint256 getSignerListIndex(AccountID const &account)
Keylet child(uint256 const &key)
Any item that can be in an owner dir.
Keylet operator()() const
uint256 getQualityNext(uint256 const &uBase)
Keylet operator()(AccountID const &owner, AccountID const &preauthorized) const
uint256 getLedgerFeeIndex()
Keylet operator()() const
Keylet operator()(Keylet const &k) const
@ ltCHILD
Special type, anything not a directory This is used when the type in the Keylet is unknown,...
uint256 getGeneratorIndex(AccountID const &uGeneratorID)
uint256 getDirNodeIndex(uint256 const &uDirRoot, const std::uint64_t uNodeIndex)
Keylet operator()(AccountID const &id, std::uint32_t seq) const
uint256 getCheckIndex(AccountID const &account, std::uint32_t uSequence)
Keylet operator()(AccountID const &id) const
uint256 getRippleStateIndex(AccountID const &a, AccountID const &b, Currency const ¤cy)
Keylet ownerDir(AccountID const &id)
The root page of an account's directory.
Keylet escrow(AccountID const &source, std::uint32_t seq)
An escrow entry.
uint256 getOwnerDirIndex(AccountID const &account)
Keylet unchecked(uint256 const &key)
Any ledger entry.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
uint256 getDepositPreauthIndex(AccountID const &owner, AccountID const &preauthorized)
Keylet operator()(Book const &b) const
uint256 getLedgerHashIndex()
uint256 getTicketIndex(AccountID const &account, std::uint32_t uSequence)
sha512_half_hasher::result_type sha512Half(Args const &... args)
Returns the SHA512-Half of a series of objects.
Keylet operator()(Keylet const &k, std::uint64_t q) const
void hash_append(Hasher &h, Slice const &v)
@ ltDIR_NODE
Directory node.
Keylet operator()(AccountID const &id, std::uint32_t seq) const
std::uint64_t getQuality(uint256 const &uBase)
Keylet page(uint256 const &key, std::uint64_t index)
A page in a directory.
Keylet operator()(AccountID const &id, std::uint32_t seq) const