|
purify
C++ Purify implementation with native circuit and BPP support
|
Public BIP340 nonce point in x-only form. More...
#include <bppp.hpp>
Public Member Functions | |
| Bytes | serialize () const |
| Serializes this x-only nonce into its fixed-size wire format. | |
Static Public Member Functions | |
| static Result< Nonce > | deserialize (std::span< const unsigned char > serialized, purify_secp_context *secp_context) |
| Parses a serialized x-only nonce. | |
Data Fields | |
| XOnly32 | xonly {} |
Static Public Attributes | |
| static constexpr std::size_t | kSerializedSize = 32 |
|
static |
Definition at line 71 of file bppp.cpp.
References purify::BackendRejectedInput, purify::InvalidFixedSize, kSerializedSize, purify_bip340_validate_xonly_pubkey(), PURIFY_RETURN_IF_ERROR, purify::require_secp_context(), and purify::unexpected_error().
| Bytes purify::puresign_plusplus::Nonce::serialize | ( | ) | const |
|
staticconstexpr |
Definition at line 183 of file bppp.hpp.
Referenced by deserialize().
| XOnly32 purify::puresign_plusplus::Nonce::xonly {} |
Definition at line 185 of file bppp.hpp.
Referenced by serialize(), purify::puresign_plusplus::NonceProof::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().