IVerifierV2

Git Source

Author: Matter Labs

Note: security-contact: security@matterlabs.dev

Functions

verify

Verifies a zk-SNARK proof.

function verify(uint256[] calldata _publicInputs, uint256[] calldata _proof)
  external
  view
  returns (bool);

Returns

NameTypeDescription
<none>boolA boolean value indicating whether the zk-SNARK proof is valid. Note: The function may revert execution instead of returning false in some cases.

verificationKeyHash

Calculates a keccak256 hash of the runtime loaded verification keys.

function verificationKeyHash() external view returns (bytes32);

Returns

NameTypeDescription
<none>bytes32vkHash The keccak256 hash of the loaded verification keys.