The Interfold 백서

The Interfold

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 45쪽 중 39쪽

limit is 500. The node uses 2,000 for a larger value. Event Field Type Description seq integer Sequence number in the EventStore aggregate aggregate_id integer EventStore aggregate timestamp_us integer Event time logical_counter integer Logical counter of the hybrid logical clock producer_fingerprint string Node ID of the hybrid logical clock, in hexadecimal block integer Block number. Chain events have it. Can be absent. source string local , network , or evm producer string Local events: the operator address. Chain events: the contract address, or on-chain contract . Network events: node:<producer_fingerprint> . event_type string Event name, for example E3Requested e3_id string E3 ID. Can be absent. phase string E3 phase. Can be absent. severity string debug , info , warn , or error event_id string Event ID causation_id string ID of the event that caused this event origin_id string ID of the root event that caused this event payload any Event data. The structure depends on event_type . The net key in the sources object of a phase counts the events with the source network . Node Dashboard lists the events of each severity level. Logs GET /api/logs returns operational log entries. The node keeps the 20,000 newest entries in memory. These entries are diagnostics, not protocol records. Parameter Default Description since None Return entries with seq equal to or larger than this value limit 500 Maximum number of entries. The node uses a value from 1 to 2,000. level None Exact level, for example error . The match ignores case. This is not a minimum level: warn does not return error entries. target None Text that the tracing target contains. The match is case-sensitive. text None Text that the message, the target, or the fields contain. The match ignores case. Without since , the response contains the newest matching entries. With since , the response contains the oldest matching entries from that point. In both cases, the entries are in order from oldest to newest. To read new entries in a loop, send the next_cursor value as since in the next request. Field Type Description entries array Log entries. See the next table. next_cursor integer The since value for the next request oldest_cursor integer Sequence number of the oldest entry in memory total_stored integer Number of entries in memory Field Type Description seq integer Sequence number timestamp_ms integer Entry time level string ERROR , WARN , INFO , DEBUG , or TRACE target string Tracing target, for example a module path message string Log message node string Node name fields object Structured fields. Absent when there are none. When the log collector does not run, the endpoint returns no entries, and each cursor is 0. Updates GET /api/updates compares the installed version with the latest stable GitHub release. The node keeps a successful result for 1 hour and a failed result for 5 minutes. The endpoint always returns HTTP 200. A failed check sets error . Field Type Description current_version string Installed version latest object or null { tag, name, url, published_at, notes } . null before the first successful check. update_available boolean The latest release is newer than the installed version releases_url string URL of the GitHub releases page checked_at_ms integer Time of the last check error string Reason of the last failed check. Absent after a successful check. Next steps Node Dashboard Enable the dashboard, open it, and set up alerts from the API. Monitor Troubleshooting Symptoms, log lines, and checks for a node that does not behave as expected. Fix Configuration reference Every node configuration key, including the dashboard port. Reference Node Configuration Contracts & Addresses ## /reference/contracts Reference Contracts & Addresses Contracts & Addresses This page lists the deployed Interfold contracts on Ethereum mainnet and Sepolia, with the address and deploy block of each one. It is for operators who configure a ciphernode and for developers who call the contracts. It also describes the role of each contract and the enums and events that clients read. Copy addresses from this page or from the manifest, not from other sources. Deployment manifest The source of every address on this page is deployments/manifest.json in the repository. The release process attaches the same file to each GitHub release as manifest.json . The script packages/interfold-contracts/scripts/genManifest.ts generates it from packages/interfold-contracts/deployed_contracts.json . The manifest has two sections for each network: Section Content contracts Contracts that a node configuration uses. The keys are the same as the keys under contracts in interfold.config.yaml . reference Other deployed contracts that operators, the dashboard, and the docs need. The node configuration has no keys for these contracts. Each network entry also has a chain_id and a mocks flag. The flag is true when the network uses a mock E3 program or a mock verifier, which accepts proofs without verification. The manifest in the repository sets mocks: true for Sepolia, because the Sepolia deployment records MockE3Program . It sets mocks: false for mainnet. See Verifiers in use on mainnet and Verifiers in use on Sepolia . To compare your node configuration with the published manifest, run this command: interfold config check For an up-to-date Sepolia chain, the output has this form: Deployment manifest: release <tag> sepolia: up to date The command reads the manifest.json asset of the latest GitHub release. It exits with an error when an address or a chain ID does not match. For the flags and the finding labels, see interfold config check . ⚠️ Contract addresses change when the protocol is deployed again. A node that points at an old address syncs nothing and reports no error. Run interfold config check before you start a node and after each release. Mainnet Mainnet Ethereum mainnet, chain ID 1 . Mainnet contracts Contract Address Deploy block Manifest key Explorer Interfold 0x28cF63B459e6218C69EA97ea7D90541cf648c715 25786382 interfold Etherscan (opens in a new tab) CiphernodeRegistry 0xC927A5B2d8F68697bC28C0670df05178c93df2d7 25786378 ciphernode_registry Etherscan (opens in a new tab) BondingRegistry 0x0ec90465095C21830BEcED07e032809A2Bd2915F 25473398 bonding_registry Etherscan (opens in a new tab) SlashingManager 0x753109Ee36Dc65cC178875AddA30C6433e5bEEe4 25998899 slashing_manager Etherscan (opens in a new tab) USDS (fee token) 0xdC035D45d973E3EC169d2276DDab16f1e407384F 20663730 fee_token Etherscan (opens in a new tab) Mainnet reference contracts Contract Address Deploy block Manifest key Explorer InterfoldTicketToken (tFOLD) 0xC0B5b49a3949eC4B520eF21BaCFE16e3695F3B5D 25786372 InterfoldTicketToken Etherscan (opens in a new tab) E3RefundManager 0x1940eF168f4E0B3dA24BEca539856684793B0F6e 25786384 E3RefundManager Etherscan (opens in a new tab) BfvDecryptionVerifierRouter 0xA66CAb7AE230698b2a9ee1E0E967BaD4651FeEa7 25998927 BfvDecryptionVerifierRouter Etherscan (opens in a new tab) BfvPkVerifierRouter 0x7CD10057c25674bd5666A9deEE3193f1b29563d1 25998926 BfvPkVerifierRouter Etherscan (opens in a new tab) Risc0BfvCiphertextVerifier 0x80D217d3b2e16fF2ecc178cC75655C773895c549 25998859 Risc0BfvCiphertextVerifier Etherscan (opens in a new tab) Also used on mainnet The manifest does not publish these two mainnet contracts, so interfold config check does not compare them. The addresses come from the mainnet deployment records in packages/interfold-contracts/deploy/protocol/ . Each deploy block is the first block that has contract code at the address. Contract Address Deploy block Source Explorer InterfoldToken (FOLD) 0xE172e9B6cfBeeB5593bDcE3f077356FDb33af904 25473449 fold in mainnet-protocol.config.json Etherscan (opens in a new tab) sUSDS (ticket collateral) 0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD 20677434 ticketUnderlyingToken in mainnet-protocol.config.json Etherscan (opens in a new tab) sUSDS is a third-party token. The Interfold does not deploy it. To confirm the token addresses on-chain, call getCiphernodeBondToken() on the BondingRegistry for FOLD. For the ticket collateral, call underlying() on the InterfoldTicketToken . Verifiers in use on mainnet OpenVM replaces RISC Zero as the compute proof system for new deployments. Mainnet keeps the RISC Zero ciphertext verifier listed here until an OpenVM migration deploys an OpenVmReceiptVerifier and an OpenVmBfvCiphertextVerifier and rebinds the E3 programs. See Verify the Compute Provider . The Interfold contract stores one verifier of each kind for each encryption scheme. The table shows the values for the BFV scheme ( keccak256("fhe.rs:BFV") ) at block 26,057,073 (25 September 2026). Each E3 keeps the verifiers that were set when it was requested. Verifier Contract Address Set at block Read with Ciphertext Risc0BfvCiphertextVerifier 0x80D217d3b2e16fF2ecc178cC75655C773895c549 26004622 getCiphertextVerifier(schemeId) Decryption BfvDecryptionVerifierRouter 0xA66CAb7AE230698b2a9ee1E0E967BaD4651FeEa7 26004622 getDecryptionVerifier(schemeId) Public key BfvPkVerifierRouter 0x7CD10057c25674bd5666A9deEE3193f1b29563d1 26004622 getPkVerifier(schemeId) The ciphertext verifier checks a RISC Zero Groth16 proof for the guest image ID 0x9d3e21fd7cc08e629cb467e5ca6bfc8e1a645b483bfd91b6b1648ced259110fc . Read it with imageId() . Each router has three routes ( routeCount() , routeAt(index) ). All routes point to BfvDecryptionVerifier or BfvPkVerifier contracts. mainnet-protocol.deployment.json records these verifiers. Its bfvVerifierRoutes field lists the three routes, with the BfvDecryptionVerifier and the BfvPkVerifier of each route. The first mainnet deployment set DeployableMockCiphertextVerifier as the ciphertext verifier at block 25,788,974 (19 August 2026). That contract accepts every proof. The contract owner replaced it with a Risc0BfvCiphertextVerifier at block 25,813,839 (22 August 2026), and again at block 26,004,622 (18 September 2026). The first mainnet E3 was requested at block 26,012,772, so no mainnet E3 used the mock verifier. At block 26,004,622, the contract owner also unregistered the first E3 program, MockE3Program , and registered CRISPProgram . The manifest.json asset of release v0.18.0 still marks mainnet with mocks: true . With that asset, interfold config check prints the mock-deployment note for mainnet, although the verifiers in use are not mocks. Sepolia Testnet Ethereum Sepolia, chain ID 11155111 . The public key, decryption, and DKG verifiers are real. The ciphertext verifier and CRISP use MockOpenVmReceiptVerifier , which accepts every OpenVM receipt, so Sepolia does not verify compute proofs. CRISP uses real Avail data availability. MockUSDC is the fee token. Anyone can mint it. ⚠️ E3 requests on Sepolia are paused. requestsPaused() on the Interfold contract returns true , and request reverts with RequestsPaused . The owner of the Interfold contract unpauses requests after operators that run the 0.19.0-test.3 release ( protocol_version 8, node_generation 2) register. Sepolia contracts Contract Address Deploy block Manifest key Explorer Interfold 0xBD5B6D1aDA9e0eB248B678469C9Cd6a63507E42b 11873232 interfold Etherscan (opens in a new tab) CiphernodeRegistry 0xb1E8640CF8D0A927290E3d9E1b01c4899B5225Ef 11873232 ciphernode_registry Etherscan (opens in a new tab) BondingRegistry 0x8687bC7C8f055b41aD2C2447c04aCBD76C1075b2 11873232 bonding_registry Etherscan (opens in a new tab) SlashingManager 0x5F9D21751aA24bc3D67C9B9D6ceEf2b62AAdac6d 11873232 slashing_manager Etherscan (opens in a new tab) MockUSDC (fee token) 0xE2e534F7Cb95777eD870CDCaCb80B1E9E2aD555B 11856062 fee_token Etherscan (opens in a new tab) Faucet 0x1B4340A65BB669267BF5DE37385B139987C3F09c 11873271 faucet Etherscan (opens in a new tab) Sepolia reference contracts Contract Address Deploy block Manifest key Explorer InterfoldToken (FOLD) 0x3192Ee1FeE48159807058aA78038cf80cB3450Cb 11873112 InterfoldToken Etherscan (opens in a new tab) InterfoldTicketToken (tFOLD) 0x3FBdF3d172866d80c872f165774B7515f6Babb8f 11873232 InterfoldTicketToken Etherscan (opens in a new tab) E3RefundManager 0xA60139169a7c901291070A8D57ef4aE816a7fe80 11873232 E3RefundManager Etherscan (opens in a new tab) NodeReleaseRegistry 0xD37c5143cd70EC70714409f2D475904563E20d69 11873232 NodeReleaseRegistry Etherscan (opens in a new tab) MockE3Program 0x449D73B60f930c7c50a50147046065C4D255B60b 11873232 MockE3Program Etherscan (opens in a new tab) BfvDecryptionVerifierRouter 0x056a612851061f22341C08781a1Fc8f292AB1657 11873231 BfvDecryptionVerifierRouter Etherscan (opens in a new tab) BfvPkVerifierRouter 0x6ED58e59D2576d13BA6aDC847FeF42A31D75490d 11873230 BfvPkVerifierRouter Etherscan (opens in a new tab) OpenVmBfvCiphertextVerifier 0x0bA8834bc023696CE027c9B7B06aB42E9A7F0592 11873416 OpenVmBfvCiphertextVerifier Etherscan (opens in a new tab) Also used on Sepolia The manifest does not publish these Sepolia contracts, so interfold config check does not compare them. The addresses and deploy blocks come from two deployment records. The Interfold record is packages/interfold-contracts/deployed_contracts.json . The CRISP record is examples/CRISP/packages/crisp-contracts/deployed_contracts.json . Contract Address Deploy block Record Explorer BondedVotes 0x1C721DE6a736054DBE7E8fcE99A68b76D4f603fb 11873269 Interfold Etherscan (opens in a new tab) BondedCheckpoints 0x4b4b85F007c241bD8bf22C951efe0f44D82aE6D1 11873232 Interfold Etherscan (opens in a new tab) ChainlinkVrfRandomnessProvider 0xea5A716afCe9C7a4fD6808ca7b0dB4dEC40A9e1b 11873568 Interfold Etherscan (opens in a new tab) MockOpenVmReceiptVerifier 0x00A49042e0550a272ED393dd324749c18C0c8e62 11873415 CRISP Etherscan (opens in a new tab) AvailVectorXDataAvailabilityVerifier 0x6D373da705B443EF76e37cb96275623818c50657 11873423 CRISP Etherscan (opens in a new tab) HonkVerifier 0x3D5d8c688545a3C336D373CC61E501211238226a 11873419 CRISP Etherscan (opens in a new tab) OnchainHonkVerifier 0x97508380e92A92f2E02818Ab493539f84d54c66B 11873422 CRISP Etherscan (opens in a new tab) CRISPProgram 0xA9894A39061EC33f8550a2B63A66Be59fb9fa443 11873424 CRISP Etherscan (opens in a new tab) MockVotingToken 0x52c1AB7e5eE4A8f5eA1AD8d00971F2a7a49ae28c 11873428 CRISP Etherscan (opens in a new tab) SelfRegistry (CRISP) 0x31DE033Af64f9955B729714d49c8bbf3b5F33847 11873429 CRISP Etherscan (opens in a new tab) CRISPProgram and the two Honk verifiers on Sepolia come from commit 8da77bf52 . Their sources did not change after the @crisp-e3/sdk 0.25.0 release. The fee token is MockUSDC , a test USDC with 6 decimals. Anyone can call its mint function. It is also the ticket collateral. To confirm it on-chain, call feeToken() on the Interfold contract. For the ticket collateral, call underlying() on the InterfoldTicketToken . To get Sepolia USDC and FOLD, run interfold faucet --chain sepolia . You can also call faucet() on the Faucet contract, or call mint on MockUSDC . The Faucet sends 1000 FOLD and 1000 USDC to a wallet that holds less than 1000 of that token. The operator bond on Sepolia is 100 FOLD. FOLD transfers are restricted before the token generation event, and the Interfold team mints FOLD to operators. Verifiers in use on Sepolia Sepolia verifies the public key, decryption, and DKG proofs with real verifiers. The Interfold contract stores one verifier of each kind for each encryption scheme. The table shows the values for the BFV scheme ( keccak256("fhe.rs:BFV") ). Verifier Contract Address Read with Ciphertext OpenVmBfvCiphertextVerifier 0x0bA8834bc023696CE027c9B7B06aB42E9A7F0592 getCiphertextVerifier(schemeId) Decryption BfvDecryptionVerifierRouter 0x056a612851061f22341C08781a1Fc8f292AB1657 getDecryptionVerifier(schemeId) Public key BfvPkVerifierRouter 0x6ED58e59D2576d13BA6aDC847FeF42A31D75490d getPkVerifier(schemeId) The ciphertext verifier wraps MockOpenVmReceiptVerifier , which accepts every receipt. Read the receipt verifier with openVmVerifier() and the receipt identity with imageId() . The CRISP deployment set this verifier for BFV. Each router has six routes ( routeCount() , routeAt(index) ). The routes cover the insecure-512 preset (parameter set 0) and the secure-8192 preset (parameter set 2), each with the three committee sizes. Every route points to a BfvDecryptionVerifier or a BfvPkVerifier contract. sepolia-protocol.deployment.json records these verifiers. Its bfvVerifierRoutes field lists the six routes, with the BfvDecryptionVerifier and the BfvPkVerifier of each route. Contract roles The Interfold contract coordinates each E3. The two registries hold the ciphernodes and their collateral. The slashing and refund contracts handle faults and failures. Contract Source Role Interfold contracts/Interfold.sol Accepts E3 requests and holds the service fee in escrow. Records the stage of each E3. Accepts the ciphertext output reference and the verified plaintext output. Marks an E3 as failed after a missed deadline. Credits the rewards of the committee. CiphernodeRegistry contracts/registry/CiphernodeRegistryOwnable.sol Keeps the registered ciphernodes in an incremental Merkle tree. Collects sortition tickets, finalizes each committee, and publishes the committee public key. Expels slashed committee members. BondingRegistry contracts/registry/BondingRegistry.sol Holds the FOLD bond and the ticket balance of each operator. Records the bond owner, registration, and activation. Runs the exit queue for withdrawn collateral. SlashingManager contracts/slashing/SlashingManager.sol Accepts slash proposals, executes slashes and bans, and handles appeals. Routes slashed funds. E3RefundManager contracts/E3RefundManager.sol Calculates the refund of a failed E3. The requester and the honest committee members claim their shares here. It also holds slashed funds for an E3. InterfoldToken (FOLD) contracts/token/InterfoldToken.sol The governance and utility token. Operators bond FOLD for each ciphernode. InterfoldTicketToken (tFOLD) contracts/token/InterfoldTicketToken.sol A non-transferable token that wraps the ticket collateral. The ticket balance of an operator sets its sortition tickets. Fee token Third-party token on mainnet, MockUSDC on Sepolia The ERC-20 token that requesters use to pay for an E3. Mainnet uses USDS. Sepolia uses MockUSDC , a test token that anyone can mint. OpenVmReceiptVerifier contracts/verifiers/OpenVmReceiptVerifier.sol Verifies the Halo2 EVM proof of an OpenVM guest, bound to one Halo2 verifier, executable commitment, and VM commitment. Its imageId is the receipt identity that the ciphertext verifier and the E3 program both name. OpenVmBfvCiphertextVerifier contracts/verifiers/bfv/OpenVmBfvCiphertextVerifier.sol The BFV ciphertext verifier for OpenVM. It rebuilds the protocol words of the journal from chain state and calls the receipt verifier. Mock contracts contracts/test/ MockE3Program , MockComputeProvider , and the mock verifiers accept test data without real proof verification. Local chains use them. Sepolia uses MockUSDC , the Faucet , MockE3Program , and the CRISP MockOpenVmReceiptVerifier . DeployableMockCiphertextVerifier contracts/test/DeployableMockCiphertextVerifier.sol A test verifier that accepts every ciphertext proof. It was the mainnet ciphertext verifier from 19 to 22 August 2026. The main entry points are these functions: Contract Functions Interfold request , publishCiphertextOutput , publishPlaintextOutput , markE3Failed , cancelE3 , processE3Failure , claimReward , getE3Stage , getFailureReason CiphernodeRegistry submitTicket , finalizeCommittee , publishCommittee , expelCommitteeMember , getCommitteeNodes , getCommitteeViability BondingRegistry setBondOwne
프로젝트로 돌아가기