|
xrpld
|
#include <Condition.h>

Public Member Functions | |
| Condition (Type t, std::uint32_t c, Slice fp) | |
| Condition (Type t, std::uint32_t c, Buffer &&fp) | |
| ~Condition ()=default | |
| Condition (Condition const &)=default | |
| Condition (Condition &&)=default | |
| Condition ()=delete | |
Static Public Member Functions | |
| static std::unique_ptr< Condition > | deserialize (Slice s, std::error_code &ec) |
| Load a condition from its binary form. | |
Public Attributes | |
| Type | type |
| Buffer | fingerprint |
| An identifier for this condition. | |
| std::uint32_t | cost |
| The cost associated with this condition. | |
| std::set< Type > | subtypes |
| For compound conditions, set of conditions includes. | |
Static Public Attributes | |
| static constexpr std::size_t | kMaxSerializedCondition = 128 |
| The largest binary condition we support. | |
Definition at line 24 of file Condition.h.
| xrpl::cryptoconditions::Condition::Condition | ( | Type | t, |
| std::uint32_t | c, | ||
| Slice | fp ) |
Definition at line 72 of file Condition.h.
| xrpl::cryptoconditions::Condition::Condition | ( | Type | t, |
| std::uint32_t | c, | ||
| Buffer && | fp ) |
Definition at line 76 of file Condition.h.
|
default |
|
default |
|
default |
|
delete |
|
static |
Load a condition from its binary form.
| s | The buffer containing the fulfillment to load. |
| ec | Set to the error, if any occurred. |
The binary format for a condition is specified in the cryptoconditions RFC. See:
https://tools.ietf.org/html/draft-thomas-crypto-conditions-02#section-7.2
Definition at line 138 of file Condition.cpp.
|
staticconstexpr |
The largest binary condition we support.
Definition at line 35 of file Condition.h.
| Type xrpl::cryptoconditions::Condition::type |
Definition at line 52 of file Condition.h.
| Buffer xrpl::cryptoconditions::Condition::fingerprint |
An identifier for this condition.
This fingerprint is meant to be unique only with respect to other conditions of the same type.
Definition at line 60 of file Condition.h.
| std::uint32_t xrpl::cryptoconditions::Condition::cost |
The cost associated with this condition.
Definition at line 65 of file Condition.h.
For compound conditions, set of conditions includes.
Definition at line 70 of file Condition.h.