|
purify
C++ Purify implementation with native circuit and BPP support
|
#include <bppp.hpp>
Public Member Functions | |
| const UInt512 & | public_key () const noexcept |
| Result< bool > | verify_topic_nonce_proof (std::span< const unsigned char > topic, const NonceProof &nonce_proof, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *circuit_cache=nullptr) const |
| Result< bool > | verify_topic_nonce_proof (const TopicProofCache &cache, const NonceProof &nonce_proof, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *circuit_cache=nullptr) const |
Static Public Member Functions | |
| static Result< NonceHost > | deserialize (std::span< const unsigned char > serialized) |
Static Public Attributes | |
| static constexpr std::size_t | kSerializedSize = 64 |
Public Purify nonce host, independent from an application's signing key.
A nonce proof binds this host and its exact topic. It deliberately does not bind a BIP340 key; accountable applications authenticate that separate key through their registered roster and response equation.
|
staticnodiscard |
Definition at line 57 of file bppp.cpp.
References purify::BigUInt< 8 >::from_bytes_be(), purify::InvalidFixedSize, kSerializedSize, public_key(), PURIFY_RETURN_IF_ERROR, purify::unexpected_error(), and purify::validate_public_key().
|
inlinenodiscardnoexcept |
Definition at line 49 of file bppp.hpp.
Referenced by deserialize().
|
nodiscard |
|
nodiscard |
Definition at line 1077 of file bppp.cpp.
References purify::EmptyInput, PURIFY_ASSIGN_OR_RETURN, purify::detail::tagged_eval_input(), purify::unexpected_error(), and purify::verifier_circuit().
|
staticconstexpr |
Definition at line 44 of file bppp.hpp.
Referenced by deserialize().