|
purify
C++ Purify implementation with native circuit and BPP support
|
Experimental single-proof wrapper over the imported legacy Bulletproof circuit backend. More...
#include <bulletproof.hpp>
Public Member Functions | |
| Result< Bytes > | serialize () const |
Static Public Member Functions | |
| static Result< ExperimentalBulletproofProof > | deserialize (std::span< const unsigned char > bytes) |
Data Fields | |
| std::vector< BulletproofPointBytes > | commitments |
| Bytes | proof |
Static Public Attributes | |
| static constexpr unsigned char | kSerializationVersion = 3 |
This artifact carries the circuit's ordered compressed output points alongside the proof bytes. The proof transcript is always bound to a canonical digest of the native circuit and optional statement-binding bytes supplied to the prove/verify helpers below.
Definition at line 303 of file bulletproof.hpp.
|
static |
Definition at line 1628 of file bulletproof.cpp.
References purify::BackendRejectedInput, commitments, purify::EmptyInput, purify::InvalidFixedSize, kSerializationVersion, proof, and purify::unexpected_error().
Referenced by purify::puresign::NonceProof::deserialize().
Definition at line 1601 of file bulletproof.cpp.
References purify::checked_add_size(), purify::checked_mul_size(), commitments, purify::EmptyInput, kSerializationVersion, purify::Overflow, proof, purify::size_fits_u32(), purify::unexpected_error(), and purify::UnexpectedSize.
| std::vector<BulletproofPointBytes> purify::ExperimentalBulletproofProof::commitments |
Definition at line 306 of file bulletproof.hpp.
Referenced by deserialize(), serialize(), purify::verify_experimental_circuit(), and purify::verify_experimental_circuit().
|
staticconstexpr |
Definition at line 304 of file bulletproof.hpp.
Referenced by deserialize(), and serialize().
| Bytes purify::ExperimentalBulletproofProof::proof |
Definition at line 307 of file bulletproof.hpp.
Referenced by deserialize(), serialize(), purify::verify_experimental_circuit(), and purify::verify_experimental_circuit().