| 
    rippled
    
   | 
 
#include <Fulfillment.h>


Public Member Functions | |
| virtual | ~Fulfillment ()=default | 
| virtual Buffer | fingerprint () const =0 | 
| Returns the fulfillment's fingerprint:   | |
| virtual Type | type () const =0 | 
| Returns the type of this condition.   | |
| virtual bool | validate (Slice data) const =0 | 
| Validates a fulfillment.   | |
| virtual std::uint32_t | cost () const =0 | 
| Calculates the cost associated with this fulfillment.   | |
| virtual Condition | condition () const =0 | 
| Returns the condition associated with the given fulfillment.   | |
Static Public Member Functions | |
| static std::unique_ptr< Fulfillment > | deserialize (Slice s, std::error_code &ec) | 
| Load a fulfillment from its binary form.   | |
Static Public Attributes | |
| static constexpr std::size_t | maxSerializedFulfillment = 256 | 
| The largest binary fulfillment we support.   | |
Definition at line 12 of file Fulfillment.h.
      
  | 
  virtualdefault | 
      
  | 
  static | 
Load a fulfillment 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 fulfillment is specified in the cryptoconditions RFC. See:
https://tools.ietf.org/html/draft-thomas-crypto-conditions-02#section-7.3
Definition at line 37 of file Fulfillment.cpp.
      
  | 
  pure virtual | 
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.
Implemented in ripple::cryptoconditions::PreimageSha256.
      
  | 
  pure virtual | 
Returns the type of this condition.
Implemented in ripple::cryptoconditions::PreimageSha256.
      
  | 
  pure virtual | 
Validates a fulfillment.
Implemented in ripple::cryptoconditions::PreimageSha256.
      
  | 
  pure virtual | 
Calculates the cost associated with this fulfillment.
Implemented in ripple::cryptoconditions::PreimageSha256.
      
  | 
  pure virtual | 
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.
Implemented in ripple::cryptoconditions::PreimageSha256.
      
  | 
  staticconstexpr | 
The largest binary fulfillment we support.
Definition at line 22 of file Fulfillment.h.