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
18struct Keylet
19{
22
26
28 [[nodiscard]] bool
29 check(STLedgerEntry const&) const;
30};
31
32} // 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:562
uint256 key
Definition Keylet.h:20
Keylet(LedgerEntryType type, uint256 const &key)
Definition Keylet.h:23
LedgerEntryType type
Definition Keylet.h:21
bool check(STLedgerEntry const &) const
Returns true if the SLE matches the type.
Definition Keylet.cpp:10