|
purify
C++ Purify implementation with native circuit and BPP support
|
#include <bppp.hpp>
Public Member Functions | |
| Result< Bytes > | serialize (purify_secp_context *secp_context) const |
Static Public Member Functions | |
| static Result< NonceProof > | deserialize (std::span< const unsigned char > serialized, purify_secp_context *secp_context) |
Static Public Attributes | |
| static constexpr unsigned char | kSerializationVersion = 4 |
| static constexpr std::size_t | kNormProofSize = 844 |
| static constexpr std::size_t | kSerializedSize = 228 + kNormProofSize |
|
staticnodiscard |
Definition at line 175 of file bppp.cpp.
References purify::BackendRejectedInput, purify::BindingMismatch, commitment_point, purify::InvalidFixedSize, kNormProofSize, kSerializationVersion, kSerializedSize, mask_commitment, nonce, norm_proof, public_commitment_dlog_nonce, public_commitment_dlog_response, PURIFY_ASSIGN_OR_RETURN, purify_bip340_validate_xonly_pubkey(), PURIFY_RETURN_IF_ERROR, raw_commitment, purify::require_secp_context(), t2, purify::unexpected_error(), and purify::puresign_plusplus::Nonce::xonly.
Referenced by purify::puresign_plusplus::ProvenSignature::deserialize().
|
nodiscard |
Definition at line 148 of file bppp.cpp.
References purify::BindingMismatch, commitment_point, kSerializationVersion, kSerializedSize, mask_commitment, nonce, norm_proof, public_commitment_dlog_nonce, public_commitment_dlog_response, PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, raw_commitment, t2, and purify::unexpected_error().
Referenced by purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare().
| bppp::PointBytes purify::puresign_plusplus::NonceProof::commitment_point {} |
Definition at line 301 of file bppp.hpp.
Referenced by purify::puresign_plusplus::CertificateNonceLeafAccumulator::derive_parent_constants(), deserialize(), purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare(), and serialize().
|
staticconstexpr |
Definition at line 297 of file bppp.hpp.
Referenced by purify::puresign_plusplus::CertificateNonceLeafAccumulator::create(), and deserialize().
|
staticconstexpr |
Definition at line 296 of file bppp.hpp.
Referenced by deserialize(), and serialize().
|
staticconstexpr |
Definition at line 298 of file bppp.hpp.
Referenced by deserialize(), purify::puresign_plusplus::ProvenSignature::deserialize(), serialize(), purify::puresign_plusplus::serialize_accepted_certificate_nonce_parent_witness(), and purify::puresign_plusplus::serialize_accepted_linear_certificate_nonce_parent_witness().
| bppp::PointBytes purify::puresign_plusplus::NonceProof::mask_commitment {} |
Definition at line 303 of file bppp.hpp.
Referenced by deserialize(), purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare(), and serialize().
| Nonce purify::puresign_plusplus::NonceProof::nonce |
Definition at line 300 of file bppp.hpp.
Referenced by deserialize(), serialize(), purify::puresign_plusplus::PreparedNonceWithProof::sign_message(), purify::puresign_plusplus::PreparedNonceWithProof::sign_topic_message(), purify::puresign_plusplus::api_impl::verify_message_signature_with_proof(), purify::puresign_plusplus::api_impl::verify_message_signature_with_proof(), purify::puresign_plusplus::api_impl::verify_topic_signature_with_proof(), and purify::puresign_plusplus::api_impl::verify_topic_signature_with_proof().
| Bytes purify::puresign_plusplus::NonceProof::norm_proof |
Definition at line 307 of file bppp.hpp.
Referenced by deserialize(), purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare(), and serialize().
| XOnly32 purify::puresign_plusplus::NonceProof::public_commitment_dlog_nonce {} |
Definition at line 305 of file bppp.hpp.
Referenced by deserialize(), purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare(), and serialize().
| bppp::ScalarBytes purify::puresign_plusplus::NonceProof::public_commitment_dlog_response {} |
Definition at line 306 of file bppp.hpp.
Referenced by deserialize(), purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare(), and serialize().
| bppp::PointBytes purify::puresign_plusplus::NonceProof::raw_commitment {} |
Definition at line 302 of file bppp.hpp.
Referenced by deserialize(), purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare(), and serialize().
| bppp::ScalarBytes purify::puresign_plusplus::NonceProof::t2 {} |
Definition at line 304 of file bppp.hpp.
Referenced by deserialize(), purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare(), and serialize().