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