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