xrpld
Loading...
Searching...
No Matches
Keylet.h
1#pragma once
2
3#include <xrpl/basics/base_uint.h>
4#include <xrpl/protocol/LedgerFormats.h>
5
6namespace xrpl {
7
8class STLedgerEntry;
9
19struct Keylet
20{
23
27
31 [[nodiscard]] bool
32 check(STLedgerEntry const&) const;
33};
34
35} // namespace xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
LedgerEntryType
Identifiers for on-ledger objects.
BaseUInt< 256 > uint256
Definition base_uint.h:580
uint256 key
Definition Keylet.h:21
Keylet(LedgerEntryType type, uint256 const &key)
Definition Keylet.h:24
LedgerEntryType type
Definition Keylet.h:22
bool check(STLedgerEntry const &) const
Returns true if the SLE matches the type.
Definition Keylet.cpp:10