|
purify
C++ Purify implementation with native circuit and BPP support
|
Reusable BIP340-style tagged SHA-256 helper. More...
#include <curve.hpp>
Public Member Functions | |
| TaggedHash (std::string_view tag) | |
| std::array< unsigned char, 32 > | digest (std::span< const unsigned char > data) const |
| template<std::size_t Segments> | |
| std::array< unsigned char, 32 > | digest_many (const std::array< std::span< const unsigned char >, Segments > &segments) const |
The digest is computed as SHA256(SHA256(tag) || SHA256(tag) || data...).
|
inlineexplicit |
Definition at line 113 of file curve.hpp.
References purify_sha256().
|
inlinenodiscard |
Definition at line 117 of file curve.hpp.
References digest_many().
Referenced by purify::accountable::SigningRoster::aggregate(), and purify::NativeBulletproofCircuitTemplate::integrity_digest().
|
inlinenodiscard |
Definition at line 123 of file curve.hpp.
References purify_sha256_many().
Referenced by purify::accountable::SigningRoster::aggregate(), purify::accountable::CoalitionFormation::create(), digest(), purify::accountable::nonce_evaluation_input(), purify::accountable::RecoveryRootShare::prove_recovery_root_contribution, purify::accountable::RecoveryRootSetupProof::prove_recovery_root_setup, and purify::accountable::signature_challenge().