|
xrpld
|
Namespaces | |
| namespace | der |
| namespace | detail |
Classes | |
| class | Condition |
| class | PreimageSha256 |
| struct | Fulfillment |
| class | PreimageSha256_test |
Enumerations | |
| enum class | Type : std::uint8_t { PreimageSha256 = 0 , PrefixSha256 = 1 , ThresholdSha256 = 2 , RsaSha256 = 3 , Ed25519Sha256 = 4 } |
| enum class | Error { Generic = 1 , UnsupportedType , UnsupportedSubtype , UnknownType , UnknownSubtype , FingerprintSize , IncorrectEncoding , TrailingGarbage , BufferEmpty , BufferOverfull , BufferUnderfull , MalformedEncoding , ShortPreamble , UnexpectedTag , LongTag , LargeSize , PreimageTooLong } |
Functions | |
| bool | operator== (Condition const &lhs, Condition const &rhs) |
| bool | operator!= (Condition const &lhs, Condition const &rhs) |
| std::error_code | make_error_code (Error ev) |
| 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. | |
| bool | validate (Fulfillment const &f, Condition const &c, Slice m) |
| Verify if the given message satisfies the fulfillment. | |
| bool | validate (Fulfillment const &f, Condition const &c) |
| Verify a cryptoconditional trigger. | |
| BEAST_DEFINE_TESTSUITE (PreimageSha256, conditions, xrpl) | |
|
strong |
| Enumerator | |
|---|---|
| PreimageSha256 | |
| PrefixSha256 | |
| ThresholdSha256 | |
| RsaSha256 | |
| Ed25519Sha256 | |
Definition at line 12 of file Condition.h.
|
strong |
Definition at line 78 of file Condition.h.
Definition at line 85 of file Condition.h.
| std::error_code xrpl::cryptoconditions::make_error_code | ( | Error | ev | ) |
| bool xrpl::cryptoconditions::operator== | ( | Fulfillment const & | lhs, |
| Fulfillment const & | rhs ) |
Definition at line 75 of file Fulfillment.h.
| bool xrpl::cryptoconditions::operator!= | ( | Fulfillment const & | lhs, |
| Fulfillment const & | rhs ) |
Definition at line 83 of file Fulfillment.h.
| bool xrpl::cryptoconditions::match | ( | Fulfillment const & | f, |
| Condition const & | c ) |
Determine whether the given fulfillment and condition match.
Definition at line 16 of file Fulfillment.cpp.
| bool xrpl::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 29 of file Fulfillment.cpp.
| bool xrpl::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 35 of file Fulfillment.cpp.
| xrpl::cryptoconditions::BEAST_DEFINE_TESTSUITE | ( | PreimageSha256 | , |
| conditions | , | ||
| xrpl | ) |