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

Cacheable message-bound nonce-proof template. More...

#include <legacy.hpp>

Static Public Member Functions

static Result< MessageProofCache > build (std::span< const unsigned char > message)
 Builds a reusable verifier template for one exact message.

Data Fields

Bytes message
Bytes eval_input
NativeBulletproofCircuitTemplate circuit_template
Bytes template_digest
ExperimentalBulletproofBackendCache backend_cache

Detailed Description

This bundles the exact message together with the public-key-agnostic circuit template needed for message-bound proof(R) creation and verification. Reuse the same instance across multiple users for the same message.

Definition at line 247 of file legacy.hpp.

Member Function Documentation

◆ build()

Result< MessageProofCache > purify::puresign::MessageProofCache::build ( std::span< const unsigned char > message)
staticnodiscard
Parameters
messageThe message that all later prepared nonces or proofs must bind to.
Returns
The reusable cache for that message.

Definition at line 771 of file legacy.cpp.

References purify::puresign::api_impl::build_message_proof_cache(), and message.

Referenced by main().

Field Documentation

◆ backend_cache

ExperimentalBulletproofBackendCache purify::puresign::MessageProofCache::backend_cache
mutable

◆ circuit_template

◆ eval_input

Bytes purify::puresign::MessageProofCache::eval_input

Definition at line 249 of file legacy.hpp.

Referenced by purify::puresign::api_impl::build_message_proof_cache().

◆ message

◆ template_digest

Bytes purify::puresign::MessageProofCache::template_digest

Definition at line 251 of file legacy.hpp.

Referenced by purify::puresign::api_impl::build_message_proof_cache().


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