mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-03 13:53:10 +00:00
12 lines
433 B
JavaScript
12 lines
433 B
JavaScript
|
|
const { buildModule } = require("@nomicfoundation/hardhat-ignition/modules")
|
||
|
|
const { loadVerificationKey } = require("../../verifier/verifier.js")
|
||
|
|
|
||
|
|
module.exports = buildModule("Verifier", (m) => {
|
||
|
|
const verificationKey = loadVerificationKey(hre.network.name)
|
||
|
|
const verifier = m.contract("Groth16Verifier", [verificationKey], {})
|
||
|
|
|
||
|
|
const testVerifier = m.contract("TestVerifier", [], {})
|
||
|
|
|
||
|
|
return { verifier, testVerifier }
|
||
|
|
})
|