Documentation
¶
Overview ¶
Package config provides configuration for circuit artifacts including URLs and hashes for various circuit components used in the Vocdoni system.
Index ¶
Constants ¶
View Source
const ( // DefaultArtifactsBaseURL is the base URL for circuit artifacts storage DefaultArtifactsBaseURL = "https://circuits.ams3.cdn.digitaloceanspaces.com" // DefaultArtifactsRelease is the release version for circuit artifacts DefaultArtifactsRelease = "dev" )
Variables ¶
View Source
var ( // BallotProofCircuitURL is the URL for the ballot proof circuit WASM file BallotProofCircuitURL = fmt.Sprintf("%s/%s/%s.wasm", DefaultArtifactsBaseURL, DefaultArtifactsRelease, BallotProofCircuitHash) // BallotProofCircuitHash is the hash of the ballot proof circuit BallotProofCircuitHash = "6b2736d08b70ebc696ffd6694b0d0ca20be784d6ddf0f7e751c3730e52013b19" // BallotProofProvingKeyURL is the URL for the ballot proof proving key BallotProofProvingKeyURL = fmt.Sprintf("%s/%s/%s.zkey", DefaultArtifactsBaseURL, DefaultArtifactsRelease, BallotProofProvingKeyHash) // BallotProofProvingKeyHash is the hash of the ballot proof proving key BallotProofProvingKeyHash = "d3df442f6aa5fe4cede9d3894621318527ae17358aa6a781afa21190273217dd" // BallotProofVerificationKeyURL is the URL for the ballot proof verification key BallotProofVerificationKeyURL = fmt.Sprintf("%s/%s/%s.json", DefaultArtifactsBaseURL, DefaultArtifactsRelease, BallotProofVerificationKeyHash) // BallotProofVerificationKeyHash is the hash of the ballot proof verification key BallotProofVerificationKeyHash = "5b8d9f864802d25765f83a04fe0b6f9f00cbca95e3fa325b08cfeff81f992663" // VoteVerifierCircuitURL is the URL for the vote verifier circuit VoteVerifierCircuitURL = fmt.Sprintf("%s/%s/%s.ccs", DefaultArtifactsBaseURL, DefaultArtifactsRelease, VoteVerifierCircuitHash) // VoteVerifierCircuitHash is the hash of the vote verifier circuit VoteVerifierCircuitHash = "b847f8eb2411904cb454cc53ef93affa374dc676ca1b6404b8b21ff2def3717b" // VoteVerifierProvingKeyURL is the URL for the vote verifier proving key VoteVerifierProvingKeyURL = fmt.Sprintf("%s/%s/%s.pk", DefaultArtifactsBaseURL, DefaultArtifactsRelease, VoteVerifierProvingKeyHash) // VoteVerifierProvingKeyHash is the hash of the vote verifier proving key VoteVerifierProvingKeyHash = "bd912851939ab37287338a38df0b9d58e3d6b276bf05b392a8ab9fb51cb9df4f" // VoteVerifierVerificationKeyURL is the URL for the vote verifier verification key VoteVerifierVerificationKeyURL = fmt.Sprintf("%s/%s/%s.vk", DefaultArtifactsBaseURL, DefaultArtifactsRelease, VoteVerifierVerificationKeyHash) // VoteVerifierVerificationKeyHash is the hash of the vote verifier verification key VoteVerifierVerificationKeyHash = "ee96998917da992ae799ddda2bad531ca46ce3f29a78b9820658bbe7d2a0cca3" // AggregatorCircuitURL is the URL for the aggregator circuit AggregatorCircuitURL = fmt.Sprintf("%s/%s/%s.ccs", DefaultArtifactsBaseURL, DefaultArtifactsRelease, AggregatorCircuitHash) // AggregatorCircuitHash is the hash of the aggregator circuit AggregatorCircuitHash = "365a78730970b16a9dfad218a433a305dea768c07ff972a4b702404b6fba3392" // AggregatorProvingKeyURL is the URL for the aggregator proving key AggregatorProvingKeyURL = fmt.Sprintf("%s/%s/%s.pk", DefaultArtifactsBaseURL, DefaultArtifactsRelease, AggregatorProvingKeyHash) // AggregatorProvingKeyHash is the hash of the aggregator proving key AggregatorProvingKeyHash = "fa6a6e9ec46bf58fdb2304e6a4a986f5ecca99fa4faa53a181fd01e7bb0b5e5e" // AggregatorVerificationKeyURL is the URL for the aggregator verification key AggregatorVerificationKeyURL = fmt.Sprintf("%s/%s/%s.vk", DefaultArtifactsBaseURL, DefaultArtifactsRelease, AggregatorVerificationKeyHash) // AggregatorVerificationKeyHash is the hash of the aggregator verification key AggregatorVerificationKeyHash = "e26ef526134e071e2c68d4bdbe2002bd708890832137dd5a07a8869dcef0b35b" // StateTransitionCircuitURL is the URL for the statetransition circuit StateTransitionCircuitURL = fmt.Sprintf("%s/%s/%s.ccs", DefaultArtifactsBaseURL, DefaultArtifactsRelease, StateTransitionCircuitHash) // StateTransitionCircuitHash is the hash of the statetransition circuit StateTransitionCircuitHash = "4e117a6adcb6ee31be1d05d1a7dbcdef1a9ec1a4c29f2d7f467d73fd986aed71" // StateTransitionProvingKeyURL is the URL for the statetransition proving key StateTransitionProvingKeyURL = fmt.Sprintf("%s/%s/%s.pk", DefaultArtifactsBaseURL, DefaultArtifactsRelease, StateTransitionProvingKeyHash) // StateTransitionProvingKeyHash is the hash of the statetransition proving key StateTransitionProvingKeyHash = "8d39eda9f04c56bdcf9dac6c4337699ae1ded870145f71dfc4e8ec15d93e1745" // StateTransitionVerificationKeyURL is the URL for the statetransition verification key StateTransitionVerificationKeyURL = fmt.Sprintf("%s/%s/%s.vk", DefaultArtifactsBaseURL, DefaultArtifactsRelease, StateTransitionVerificationKeyHash) // StateTransitionVerificationKeyHash is the hash of the statetransition verification key StateTransitionVerificationKeyHash = "83d7a6449ca49e3d41a094cef071b2845b92c1eefd1825f8dc582bc702278385" // ResultsVerifierCircuitURL is the URL for the statetransition circuit ResultsVerifierCircuitURL = fmt.Sprintf("%s/%s/%s.ccs", DefaultArtifactsBaseURL, DefaultArtifactsRelease, ResultsVerifierCircuitHash) // ResultsVerifierCircuitHash is the hash of the statetransition circuit ResultsVerifierCircuitHash = "7da3dc581758815ae050b592d4a25189a44c2ec7e3e122559573a4f953a1e412" // ResultsVerifierProvingKeyURL is the URL for the resultsverifier proving key ResultsVerifierProvingKeyURL = fmt.Sprintf("%s/%s/%s.pk", DefaultArtifactsBaseURL, DefaultArtifactsRelease, ResultsVerifierProvingKeyHash) // ResultsVerifierProvingKeyHash is the hash of the resultsverifier proving key ResultsVerifierProvingKeyHash = "21ca0e1f67bcfbcc64d04b5b1595b18d0f00adc8e04e6375baa4e09054d30e3a" // ResultsVerifierVerificationKeyURL is the URL for the resultsverifier verification key ResultsVerifierVerificationKeyURL = fmt.Sprintf("%s/%s/%s.vk", DefaultArtifactsBaseURL, DefaultArtifactsRelease, ResultsVerifierVerificationKeyHash) // ResultsVerifierVerificationKeyHash is the hash of the resultsverifier verification key ResultsVerifierVerificationKeyHash = "9f408a5d4112e5e1ab02ffc4325933a557e7acb1bcb5e682a9f6e5fdf8e3436a" // BallotProofWasmHelperURL is the default URL for the WASM helper BallotProofWasmHelperURL = fmt.Sprintf("%s/%s/davinci_crypto_%s.wasm", DefaultArtifactsBaseURL, DefaultArtifactsRelease, BallotProofWasmHelperHash[len(BallotProofWasmHelperHash)-4:]) // BallotProofWasmHelperHash is the hash of the WASM helper BallotProofWasmHelperHash = "9ea8f6989eab0c8e848902ee4289d6b6acb076056f0391e483befbe8348bc6c8" // BallotProofWasmExecJsURL is the default URL for the WASM exec JS BallotProofWasmExecJsURL = fmt.Sprintf("%s/%s/wasm_exec_%s.js", DefaultArtifactsBaseURL, DefaultArtifactsRelease, BallotProofWasmExecJsHash[len(BallotProofWasmExecJsHash)-4:]) // BallotProofWasmExecJsHash is the hash of the WASM exec JS BallotProofWasmExecJsHash = "0c949f4996f9a89698e4b5c586de32249c3b69b7baadb64d220073cc04acba14" )
View Source
var KZGTrustedSetup []byte
KZGTrustedSetup contains the embedded KZG trusted setup data
View Source
var TestConfig = DavinciWeb3Config{
ProcessRegistrySmartContract: "0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9",
OrganizationRegistrySmartContract: "0x5fbdb2315678afecb367f032d93f642f64180aa3",
ResultsZKVerifier: "0x9fe46736679d2d9a65f0992f2272de9f3c7fa6e0",
StateTransitionZKVerifier: "0xe7f1725e7734ce288f8367e1bb143e90bb3f0512",
}
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.