rippled
|
Namespaces | |
der | |
detail | |
Classes | |
class | Condition |
struct | Fulfillment |
class | PreimageSha256 |
class | PreimageSha256_test |
Functions | |
bool | operator== (Condition const &lhs, Condition const &rhs) |
bool | operator!= (Condition const &lhs, Condition const &rhs) |
bool | operator== (Fulfillment const &lhs, Fulfillment const &rhs) |
bool | operator!= (Fulfillment const &lhs, Fulfillment const &rhs) |
bool | match (Fulfillment const &f, Condition const &c) |
Determine whether the given fulfillment and condition match. More... | |
bool | validate (Fulfillment const &f, Condition const &c, Slice m) |
Verify if the given message satisfies the fulfillment. More... | |
bool | validate (Fulfillment const &f, Condition const &c) |
Verify a cryptoconditional trigger. More... | |
std::error_code | make_error_code (error ev) |
BEAST_DEFINE_TESTSUITE (PreimageSha256, conditions, ripple) | |
|
strong |
Enumerator | |
---|---|
preimageSha256 | |
prefixSha256 | |
thresholdSha256 | |
rsaSha256 | |
ed25519Sha256 |
Definition at line 36 of file Condition.h.
|
strong |
Definition at line 104 of file Condition.h.
Definition at line 111 of file Condition.h.
bool ripple::cryptoconditions::operator== | ( | Fulfillment const & | lhs, |
Fulfillment const & | rhs | ||
) |
Definition at line 97 of file Fulfillment.h.
bool ripple::cryptoconditions::operator!= | ( | Fulfillment const & | lhs, |
Fulfillment const & | rhs | ||
) |
Definition at line 105 of file Fulfillment.h.
bool ripple::cryptoconditions::match | ( | Fulfillment const & | f, |
Condition const & | c | ||
) |
Determine whether the given fulfillment and condition match.
Definition at line 32 of file Fulfillment.cpp.
bool ripple::cryptoconditions::validate | ( | Fulfillment const & | f, |
Condition const & | c, | ||
Slice | m | ||
) |
Verify if the given message satisfies the fulfillment.
f | The fulfillment |
c | The condition |
m | The message |
Definition at line 45 of file Fulfillment.cpp.
bool ripple::cryptoconditions::validate | ( | Fulfillment const & | f, |
Condition const & | c | ||
) |
Verify a cryptoconditional trigger.
A cryptoconditional trigger is a cryptocondition with an empty message.
When using such triggers, it is recommended that the trigger be of type preimage, prefix or threshold. If a signature type is used (i.e. Ed25519 or RSA-SHA256) then the Ed25519 or RSA keys should be single-use keys.
f | The fulfillment |
c | The condition |
Definition at line 51 of file Fulfillment.cpp.
std::error_code ripple::cryptoconditions::make_error_code | ( | error | ev | ) |
ripple::cryptoconditions::BEAST_DEFINE_TESTSUITE | ( | PreimageSha256 | , |
conditions | , | ||
ripple | |||
) |