purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
purify::puresign_plusplus::Nonce Struct Reference

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< Noncedeserialize (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
 

Detailed Description

Definition at line 182 of file bppp.hpp.

Member Function Documentation

◆ deserialize()

Result< Nonce > purify::puresign_plusplus::Nonce::deserialize ( std::span< const unsigned char >  serialized,
purify_secp_context secp_context 
)
static

◆ serialize()

Bytes purify::puresign_plusplus::Nonce::serialize ( ) const

Definition at line 67 of file bppp.cpp.

References xonly.

Field Documentation

◆ kSerializedSize

constexpr std::size_t purify::puresign_plusplus::Nonce::kSerializedSize = 32
staticconstexpr

Definition at line 183 of file bppp.hpp.

Referenced by deserialize().

◆ xonly


The documentation for this struct was generated from the following files: