rippled
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
23 Keylet(LedgerEntryType type_, uint256 const& key_) : key(key_), type(type_)
24 {
25 }
26
28 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.
A pair of SHAMap key and LedgerEntryType.
Definition Keylet.h:19
Keylet(LedgerEntryType type_, uint256 const &key_)
Definition Keylet.h:23
uint256 key
Definition Keylet.h:20
LedgerEntryType type
Definition Keylet.h:21
bool check(STLedgerEntry const &) const
Returns true if the SLE matches the type.
Definition Keylet.cpp:9