rippled
|
Public Member Functions | |
PreimageSha256 (Buffer &&b) noexcept | |
PreimageSha256 (Slice s) noexcept | |
Type | type () const override |
Returns the type of this condition. More... | |
Buffer | fingerprint () const override |
Returns the fulfillment's fingerprint: More... | |
std::uint32_t | cost () const override |
Calculates the cost associated with this fulfillment. More... | |
Condition | condition () const override |
Returns the condition associated with the given fulfillment. More... | |
bool | validate (Slice) const override |
Validates a fulfillment. More... | |
Static Public Member Functions | |
static std::unique_ptr< Fulfillment > | deserialize (Slice s, std::error_code &ec) |
Parse the payload for a PreimageSha256 condition. More... | |
Static Public Attributes | |
static constexpr std::size_t | maxPreimageLength = 128 |
The maximum allowed length of a preimage. More... | |
static constexpr std::size_t | maxSerializedFulfillment = 256 |
The largest binary fulfillment we support. More... | |
Private Attributes | |
Buffer | payload_ |
Definition at line 34 of file PreimageSha256.h.
|
noexcept |
Definition at line 105 of file PreimageSha256.h.
|
noexcept |
Definition at line 109 of file PreimageSha256.h.
|
static |
Parse the payload for a PreimageSha256 condition.
s | A slice containing the DER encoded payload |
ec | indicates success or failure of the operation |
Definition at line 55 of file PreimageSha256.h.
|
overridevirtual |
Returns the type of this condition.
Implements ripple::cryptoconditions::Fulfillment.
Definition at line 114 of file PreimageSha256.h.
|
overridevirtual |
Returns the fulfillment's fingerprint:
The fingerprint is an octet string uniquely representing this fulfillment's condition with respect to other conditions of the same type.
Implements ripple::cryptoconditions::Fulfillment.
Definition at line 120 of file PreimageSha256.h.
|
overridevirtual |
Calculates the cost associated with this fulfillment.
Implements ripple::cryptoconditions::Fulfillment.
Definition at line 129 of file PreimageSha256.h.
|
overridevirtual |
Returns the condition associated with the given fulfillment.
This process is completely deterministic. All implementations will, if compliant, produce the identical condition for the same fulfillment.
Implements ripple::cryptoconditions::Fulfillment.
Definition at line 135 of file PreimageSha256.h.
|
overridevirtual |
Validates a fulfillment.
Implements ripple::cryptoconditions::Fulfillment.
Definition at line 140 of file PreimageSha256.h.
|
staticconstexpr |
The maximum allowed length of a preimage.
The specification does not specify a minimum supported length, nor does it require all conditions to support the same minimum length.
While future versions of this code will never lower this limit, they may opt to raise it.
Definition at line 46 of file PreimageSha256.h.
|
private |
Definition at line 102 of file PreimageSha256.h.
|
staticconstexprinherited |
The largest binary fulfillment we support.
Definition at line 41 of file Fulfillment.h.