rippled
Loading...
Searching...
No Matches
Keylet.h
1#ifndef XRPL_PROTOCOL_KEYLET_H_INCLUDED
2#define XRPL_PROTOCOL_KEYLET_H_INCLUDED
3
4#include <xrpl/basics/base_uint.h>
5#include <xrpl/protocol/LedgerFormats.h>
6
7namespace ripple {
8
9class STLedgerEntry;
10
19struct Keylet
20{
23
24 Keylet(LedgerEntryType type_, uint256 const& key_) : key(key_), type(type_)
25 {
26 }
27
29 bool
30 check(STLedgerEntry const&) const;
31};
32
33} // namespace ripple
34
35#endif
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
LedgerEntryType
Identifiers for on-ledger objects.
A pair of SHAMap key and LedgerEntryType.
Definition Keylet.h:20
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:9
uint256 key
Definition Keylet.h:21