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

#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

Detailed Description

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.

Definition at line 42 of file bppp.hpp.

Member Function Documentation

◆ deserialize()

Result< NonceHost > purify::puresign_plusplus::NonceHost::deserialize ( std::span< const unsigned char > serialized)
staticnodiscard

◆ public_key()

const UInt512 & purify::puresign_plusplus::NonceHost::public_key ( ) const
inlinenodiscardnoexcept

Definition at line 49 of file bppp.hpp.

Referenced by deserialize().

◆ verify_topic_nonce_proof() [1/2]

Result< bool > purify::puresign_plusplus::NonceHost::verify_topic_nonce_proof ( const TopicProofCache & cache,
const NonceProof & nonce_proof,
purify_secp_context * secp_context,
bppp::ExperimentalCircuitBackend * circuit_cache = nullptr ) const
nodiscard

◆ verify_topic_nonce_proof() [2/2]

Result< bool > purify::puresign_plusplus::NonceHost::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
nodiscard

Field Documentation

◆ kSerializedSize

std::size_t purify::puresign_plusplus::NonceHost::kSerializedSize = 64
staticconstexpr

Definition at line 44 of file bppp.hpp.

Referenced by deserialize().


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