| 
    rippled
    
   | 
 
#include <PreimageSha256.h>


Public Member Functions | |
| PreimageSha256 (Buffer &&b) noexcept | |
| PreimageSha256 (Slice s) noexcept | |
| Type | type () const override | 
| Returns the type of this condition.   | |
| Buffer | fingerprint () const override | 
| Returns the fulfillment's fingerprint:   | |
| std::uint32_t | cost () const override | 
| Calculates the cost associated with this fulfillment.   | |
| Condition | condition () const override | 
| Returns the condition associated with the given fulfillment.   | |
| bool | validate (Slice) const override | 
| Validates a fulfillment.   | |
Static Public Member Functions | |
| static std::unique_ptr< Fulfillment > | deserialize (Slice s, std::error_code &ec) | 
| Parse the payload for a PreimageSha256 condition.   | |
Static Public Attributes | |
| static constexpr std::size_t | maxPreimageLength = 128 | 
| The maximum allowed length of a preimage.   | |
| static constexpr std::size_t | maxSerializedFulfillment = 256 | 
| The largest binary fulfillment we support.   | |
Private Attributes | |
| Buffer | payload_ | 
Definition at line 17 of file PreimageSha256.h.
      
  | 
  noexcept | 
Definition at line 88 of file PreimageSha256.h.
      
  | 
  noexcept | 
Definition at line 92 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 38 of file PreimageSha256.h.
      
  | 
  overridevirtual | 
Returns the type of this condition.
Implements ripple::cryptoconditions::Fulfillment.
Definition at line 97 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 103 of file PreimageSha256.h.
      
  | 
  overridevirtual | 
Calculates the cost associated with this fulfillment.
Implements ripple::cryptoconditions::Fulfillment.
Definition at line 112 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 118 of file PreimageSha256.h.
      
  | 
  overridevirtual | 
Validates a fulfillment.
Implements ripple::cryptoconditions::Fulfillment.
Definition at line 124 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 29 of file PreimageSha256.h.
      
  | 
  private | 
Definition at line 85 of file PreimageSha256.h.
      
  | 
  staticconstexprinherited | 
The largest binary fulfillment we support.
Definition at line 22 of file Fulfillment.h.