|
purify
C++ Purify implementation with native circuit and BPP support
|
CLI runtime helpers and command dispatch for the Purify executable. More...
#include <cctype>#include <fstream>#include <iomanip>#include <iostream>#include <optional>#include <sstream>#include <string>#include <string_view>#include "purify/bppp.hpp"#include "purify.hpp"Go to the source code of this file.
Namespaces | |
| namespace | purify |
Functions | |
| Result< Bytes > | purify::bytes_from_hex (std::string_view hex) |
| Parses a hexadecimal string into raw bytes. | |
| template<std::size_t N> | |
| Result< std::array< unsigned char, N > > | purify::array_from_hex (std::string_view hex) |
| Parses a fixed-size hexadecimal string into an array. | |
| template<typename ByteContainer > | |
| std::string | purify::hex_from_bytes (const ByteContainer &bytes) |
| Encodes a byte container as lowercase hexadecimal. | |
| Status | purify::write_file (const std::string &path, const Bytes &bytes) |
| Writes a byte buffer to disk. | |
| Status | purify::prove (const Bytes &message, const SecretKey &secret, const std::string &output_path="prove.assn") |
| Writes a serialized witness assignment for a message and secret. | |
| int | purify::run_cli (int argc, char **argv) |
| Dispatches the purify_cpp command-line interface. | |