|
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().
|
inline |
Definition at line 117 of file curve.hpp.
Referenced by purify::NativeBulletproofCircuitTemplate::integrity_digest().
|
inline |
Definition at line 123 of file curve.hpp.
References purify_sha256_many().