|
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_through_transcript (const std::string &domain_separator, Transcript &transcript) const |
| Hashes the vk using the transcript's independent buffer and returns the 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 303 of file flavor.hpp.
| using bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::Builder = Builder_ |
Definition at line 305 of file flavor.hpp.
| using bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::Commitment = typename PrecomputedCommitments::DataType |
Definition at line 307 of file flavor.hpp.
| using bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::FF = stdlib::field_t<Builder> |
Definition at line 306 of file flavor.hpp.
| using bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::Transcript = StdlibTranscript<Builder> |
Definition at line 308 of file flavor.hpp.
|
virtualdefault |
|
default |
|
inline |
Definition at line 316 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 355 of file flavor.hpp.
|
inlinevirtual |
Hashes the vk using the transcript's independent buffer and returns the hash.
Needed to make sure the Origin Tag system works. We need to set the origin tags of the VK witnesses in the transcript. If we instead did the hashing outside of the transcript and submitted just the hash, only the origin tag of the hash would be set properly. We want to avoid backpropagating origin tags to the actual VK witnesses because it would be manual, as backpropagation of tags is not generally correct. By doing it like this, the origin tags of the VK all get set, so our tooling won't complain when we use the VK later on in the protocol.
| domain_separator | |
| transcript |
Reimplemented in bb::ECCVMRecursiveFlavor::VerificationKey, bb::TranslatorRecursiveFlavor::VerificationKey, and bb::avm2::AvmRecursiveFlavor::VerificationKey.
Definition at line 373 of file flavor.hpp.
|
default |
|
inlinevirtual |
Serialize verification key to field elements.
Reimplemented in bb::avm2::AvmRecursiveFlavor::VerificationKey.
Definition at line 327 of file flavor.hpp.
| FF bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::log_circuit_size |
Definition at line 309 of file flavor.hpp.
| FF bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::num_public_inputs |
Definition at line 310 of file flavor.hpp.
| FF bb::StdlibVerificationKey_< Builder_, PrecomputedCommitments, SerializeMetadata >::pub_inputs_offset = 0 |
Definition at line 311 of file flavor.hpp.