|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Base Stdlib verification key class. More...
#include <flavor.hpp>
Public Types | |
| using | Builder = Builder_ |
| using | FF = stdlib::field_t< Builder > |
| using | Commitment = typename PrecomputedCommitments::DataType |
| using | Transcript = StdlibTranscript< Builder > |
Public Member Functions | |
| bool | operator== (const StdlibVerificationKey_ &) const =default |
| virtual | ~StdlibVerificationKey_ ()=default |
| StdlibVerificationKey_ ()=default | |
| StdlibVerificationKey_ (const size_t circuit_size, const size_t num_public_inputs) | |
| virtual std::vector< FF > | to_field_elements () const |
| Serialize verification key to field elements. | |
| FF | hash () |
| A model function to show how to compute the VK hash (without the Transcript abstracting things away). | |
| virtual FF | hash_with_origin_tagging (const std::string &domain_separator, Transcript &transcript) const |
| Tag VK components and hash. | |
Public Attributes | |
| FF | log_circuit_size |
| FF | num_public_inputs |
| FF | pub_inputs_offset = 0 |
Base Stdlib verification key class.
| Builder | |
| FF | |
| PrecomputedCommitments | |
| SerializeMetadata | Controls how metadata is serialized (FULL, NO_METADATA) |
Definition at line 325 of file flavor.hpp.
| using bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::Builder = Builder_ |
Definition at line 327 of file flavor.hpp.
| using bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::Commitment = typename PrecomputedCommitments::DataType |
Definition at line 329 of file flavor.hpp.
| using bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::FF = stdlib::field_t<Builder> |
Definition at line 328 of file flavor.hpp.
| using bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::Transcript = StdlibTranscript<Builder> |
Definition at line 330 of file flavor.hpp.
|
virtualdefault |
|
default |
|
inline |
Definition at line 338 of file flavor.hpp.
|
inline |
A model function to show how to compute the VK hash (without the Transcript abstracting things away).
Currently only used in testing.
| builder |
Definition at line 377 of file flavor.hpp.
|
inlinevirtual |
Tag VK components and hash.
Needed to make sure the Origin Tag system works. We need to set the origin tags of the VK witnesses. If we instead did the hashing outside and just submitted the hash, only the origin tag of the hash would be set properly. By tagging the VK components directly, we ensure all VK witnesses have proper origin tags.
| domain_separator | (currently unused, kept for API compatibility) |
| transcript | Used to extract tag context (transcript_index, round_index) |
Reimplemented in bb::ECCVMRecursiveFlavor::VerificationKey, bb::TranslatorRecursiveFlavor::VerificationKey, and bb::avm2::AvmRecursiveFlavor::VerificationKey.
Definition at line 393 of file flavor.hpp.
|
default |
|
inlinevirtual |
Serialize verification key to field elements.
Reimplemented in bb::avm2::AvmRecursiveFlavor::VerificationKey.
Definition at line 349 of file flavor.hpp.
| FF bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::log_circuit_size |
Definition at line 331 of file flavor.hpp.
| FF bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::num_public_inputs |
Definition at line 332 of file flavor.hpp.
| FF bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::pub_inputs_offset = 0 |
Definition at line 333 of file flavor.hpp.