bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 45쪽 중 19쪽
eployInterfold
can still deploy mock contracts on chain ID 11155111. On other chains it refuses
mocks unless
ALLOW_MOCKS_ON_PRODUCTION=true
is set.
Troubleshooting
Error or symptom
Cause
Fix
OwnableUnauthorizedAccount
from the deploy
The script calls
registerE3Program
or
setCiphertextVerifier
.
Use
scripts/deploy-sepolia.ts
, which leaves out the owner-only calls.
E3ProgramNotAllowed
on request
The program is not registered.
Ask the owner of the Interfold contract to call
registerE3Program
.
ERC20InsufficientAllowance
on request
The fee token allowance is lower than the fee.
Call
approveFeeToken(fee)
with the fee from
getE3Quote
, and wait for the receipt.
FeeExceedsMaximum
on request
The fee changed after the quote.
Get a new quote and request again.
InvalidInputDeadlineStart
on request
inputWindow[0]
is earlier than the block time.
Compute the window with
calculateInputWindow(publicClient, duration)
.
No committee key
Sortition did not select a full committee, or the DKG did not finish.
Read the stage with
getE3Stage
. If it is
Failed
, request a new E3.
InvalidOutput
on output publication
The protocol verifier or
MyProgram.verify
rejected the compute proof.
Check that the service's guest has the identity your
MyProgram
names.
RequestsPaused
on request
Sepolia requests are paused.
Wait until the owner unpauses requests.
requestsPaused()
returns
false
then.
The E3 does not finish after the output
The committee cannot read the output from Avail.
Replace the local data-availability check, and publish the output to Avail.
Next steps
Contract addresses
Every deployed contract for each network.
Reference
Compute provider
Run the program server with real OpenVM proofs.
Build
Request an E3
Request parameters, quotes, and fees in detail.
Build
Run a ciphernode
Join the Sepolia network as an operator.
Operators
Encrypt and Submit an Input
Overview
## /operate
Run a Ciphernode
Overview
Ciphernode Operators
This page is the starting point for operators who want to run a ciphernode on the Interfold. It
explains what a ciphernode does, which contracts control an operator position, and the order of the
setup steps. At the end, you know which page to open for each step and which contract addresses to
use.
The Interfold dashboard has a guided operator setup at
Run a
ciphernode
(opens in a new tab)
. It reads the live
BondingRegistry
and
sends each on-chain step from your browser wallet: connect a wallet, authorize the bond owner,
bond FOLD, register the ciphernode, and buy tickets. You must still run the node software
yourself.
What a ciphernode does
A ciphernode is a node that holds one share of a committee secret key. The protocol selects a
committee of ciphernodes for each E3. No single ciphernode can decrypt the output. Decryption needs
T + 1 decryption shares. For each committee that selects it, a ciphernode does this work:
It submits sortition tickets for the E3 (
submitTicket
on
CiphernodeRegistry
).
It takes part in distributed key generation (DKG) and keeps its key share.
It helps the committee publish one public key for the E3.
It makes a decryption share of the E3 output after the compute provider publishes the ciphertext.
It generates zero-knowledge proofs for its DKG and decryption work.
The node also acknowledges its software release on-chain when it starts (
acknowledgeNodeRelease
on
NodeReleaseRegistry
). An operator is active only when its acknowledged release meets the required
protocol version and node generation. See
Upgrades
for the release rules.
A committee member that fails its duties, or breaks a protocol rule, can lose part of its bond and
tickets.
SlashingManager
handles these penalties. See
Exits, Rewards & Slashing
.
Contracts for operators
Each operator position uses two keys. The operator key is the hot key that the node loads. The bond
owner is the wallet or Safe that funds the position and receives exit payouts and rewards. The
contracts below store the position and its state.
Contract (source file)
What it does for an operator
BondingRegistry
(
registry/BondingRegistry.sol
)
Stores the bond owner, the FOLD bond, and the ticket balance. It registers operators, decides active status, and queues exits.
CiphernodeRegistry
(
CiphernodeRegistryOwnable.sol
)
Keeps the set of registered ciphernodes. It accepts sortition tickets and finalizes each committee.
Interfold
(
Interfold.sol
)
Records each E3 and its stage. Requesters call it to request an E3.
SlashingManager
(
slashing/SlashingManager.sol
)
Processes slash proposals, appeals, and bans.
NodeReleaseRegistry
(
registry/NodeReleaseRegistry.sol
)
Stores the required node release and the release that each operator acknowledged.
E3RefundManager
Calculates and pays refunds when an E3 fails.
InterfoldToken
(FOLD)
The bond token. The bond owner bonds FOLD for each operator.
InterfoldTicketToken
(tFOLD)
A non-transferable token that wraps the ticket collateral. The registry mints it to the operator key.
On both networks, operators bond FOLD (
InterfoldToken
). The ticket collateral is an ERC-20 token
that
InterfoldTicketToken
wraps. Mainnet uses sUSDS shares, and Sepolia uses
MockUSDC
. The fee
token is separate: requesters pay E3 fees with it. Mainnet uses USDS as the fee token, and Sepolia
uses
MockUSDC
.
Operator lifecycle
An operator position moves through the stages below. The stepper plays automatically. Select a stage
to read it. The table after the stepper lists the same states.
Operator lifecycle
1
Set up
2
Register and bond
3
Tickets
4
Active
5
Selected for a committee
6
Exit
01
Operator
OperatorNodeReleaseAcknowledged
Set up
Install the node software, write its configuration, and store the operator key. When the node
starts, it syncs the contract history and acknowledges its release on-chain.
State
Condition
Next action
Not configured
bondOwnerOf(operator)
returns the zero address. Calls that need the bond owner revert with
NotBondOwner
.
The operator key calls
setBondOwner
.
Bonded
The bond owner bonded FOLD, but the operator is not registered.
The bond owner calls
registerOperatorFor
.
Registered
The operator is in the registry, but one activation condition is not met (often, no tickets yet).
The bond owner calls
addTicketBalanceFor
.
Active
All activation conditions are met.
isActive(operator)
returns
true
.
The node takes part in sortition for new E3s.
Inactive
Registered, but the bond, the tickets, the release, or a ban no longer meets the rules.
Add collateral, upgrade the node, or refresh status.
Exit in progress
deregisterOperatorFor
queued all collateral.
hasExitInProgress(operator)
is
true
until
exitDelay
ends.
After the delay, claim the exit. To return, bond and register again.
Registration & Bonding
gives the commands, the activation rules, and the
economic parameters.
Tickets & Sortition
explains committee
selection.
Requirements summary
Requirement
Summary
FOLD bond
requiredCiphernodeBond
for each operator. The mainnet deployment value is 32,000 FOLD.
Ticket collateral
At least
minTicketBalance
tickets. On mainnet, one ticket is 1,000 sUSDS shares and the minimum is one ticket.
ETH
Gas for the bond owner transactions, and for the operator key (ticket submissions and release acknowledgment).
Memory
On Linux, the node does not start below 17 GiB (4 GiB reserve plus one 13 GiB prover job). The guidance is 32 GB.
Network
One open inbound UDP port for QUIC. The default is
9091
.
RPC endpoints
A WebSocket Ethereum endpoint with log history from the contract deploy blocks, and an Avail HTTP endpoint.
The full list is on
Ciphernode Requirements
. Read the live economic values
on-chain before you deposit (see
Registration & Bonding
).
Contract addresses
These addresses come from
deployments/manifest.json
, the deployment manifest that
interfold config check
also reads.
Contract Reference
lists every deployed
contract.
Mainnet
Sepolia
Contract
Address
Deploy block
Interfold
0x28cF63B459e6218C69EA97ea7D90541cf648c715
25786382
CiphernodeRegistry
0xC927A5B2d8F68697bC28C0670df05178c93df2d7
25786378
BondingRegistry
0x0ec90465095C21830BEcED07e032809A2Bd2915F
25473398
SlashingManager
0x753109Ee36Dc65cC178875AddA30C6433e5bEEe4
25998899
E3RefundManager
0x1940eF168f4E0B3dA24BEca539856684793B0F6e
25786384
InterfoldTicketToken (tFOLD)
0xC0B5b49a3949eC4B520eF21BaCFE16e3695F3B5D
25786372
USDS (fee token)
0xdC035D45d973E3EC169d2276DDab16f1e407384F
20663730
On mainnet, operators bond FOLD (
InterfoldToken
), and sUSDS shares back the tickets. The
deployment manifest does not publish these two token addresses.
Contract Reference
lists them. You can also read them from the
BondingRegistry
, as shown in
Registration & Bonding
.
The first mainnet deployment registered
MockE3Program
and set a mock ciphertext verifier. The
contract owner later unregistered
MockE3Program
and replaced the mock verifier with a RISC Zero
verifier. The manifest marks mainnet with
mocks: false
.
Contracts & Addresses
shows the verifiers in
use.
The
Interfold
contract starts with E3 requests paused. The owner changes this with
setRequestsPaused
. Operators can bond, register, and add tickets while requests are paused. Read
the current value with
requestsPaused()
on the
Interfold
contract.
E3 requests on Sepolia stay paused (
requestsPaused()
returns
true
on the
Interfold
contract)
until operators that run the 0.19.0 release register. Operators can bond, register, and add
tickets while requests are paused.
Contract
Address
Deploy block
Interfold
0xBD5B6D1aDA9e0eB248B678469C9Cd6a63507E42b
11873232
CiphernodeRegistry
0xb1E8640CF8D0A927290E3d9E1b01c4899B5225Ef
11873232
BondingRegistry
0x8687bC7C8f055b41aD2C2447c04aCBD76C1075b2
11873232
SlashingManager
0x5F9D21751aA24bc3D67C9B9D6ceEf2b62AAdac6d
11873232
E3RefundManager
0xA60139169a7c901291070A8D57ef4aE816a7fe80
11873232
NodeReleaseRegistry
0xD37c5143cd70EC70714409f2D475904563E20d69
11873232
BondedVotes
0x1C721DE6a736054DBE7E8fcE99A68b76D4f603fb
11873269
InterfoldTicketToken (tFOLD)
0x3FBdF3d172866d80c872f165774B7515f6Babb8f
11873232
InterfoldToken (FOLD)
0x3192Ee1FeE48159807058aA78038cf80cB3450Cb
11873112
MockUSDC (fee token and ticket collateral)
0xE2e534F7Cb95777eD870CDCaCb80B1E9E2aD555B
11856062
Faucet
0x1B4340A65BB669267BF5DE37385B139987C3F09c
11873271
MockE3Program
0x449D73B60f930c7c50a50147046065C4D255B60b
11873232
MockUSDC
is a test USDC with 6 decimals. Anyone can mint it. The
Faucet
sends 1000 FOLD and 1000
USDC.
MockE3Program
is a test E3 program. The deployment registers it as its first E3 program.
The public key and decryption proofs use real verifiers:
Contract
Address
Deploy block
BfvPkVerifierRouter
0x6ED58e59D2576d13BA6aDC847FeF42A31D75490d
11873230
BfvDecryptionVerifierRouter
0x056a612851061f22341C08781a1Fc8f292AB1657
11873231
The ciphertext verifier for BFV is
OpenVmBfvCiphertextVerifier
. It wraps
MockOpenVmReceiptVerifier
, which accepts every receipt, so Sepolia does not verify compute proofs.
Contracts & Addresses
lists both addresses.
interfold config check
compares your configuration with the manifest of the latest release. For
each network that the manifest marks with
mocks: true
, it prints a note that proofs are accepted
without verification. The deployment manifest marks Sepolia with
mocks: true
, because the Sepolia
deployment records
MockE3Program
. It does not mark mainnet. See
Verifiers in use on mainnet
.
Set up a ciphernode
Do the setup pages in this order:
Check the hardware, network, and endpoint needs on
Requirements
.
Install and start the node on
Run a Ciphernode
.
Test your Ethereum endpoint on
RPC Endpoints
before the first sync.
Authorize the bond owner, bond, register, and buy tickets on
Registration & Bonding
.
For help with setup, join the
Interfold technical chat
(opens in a new tab)
.
Next steps
Requirements
Hardware, operating systems, ports, endpoints, and disk space for a ciphernode.
Set up
Run a Ciphernode
Start the node with DAppNode, the
interfold
CLI, or Docker.
Set up
RPC Endpoints
Test that an Ethereum endpoint keeps the log history that the first sync needs.
Set up
Registration & Bonding
Authorize a bond owner, bond FOLD, register the operator, and buy tickets.
Set up
Deploy to Sepolia
Requirements
## /operate/requirements
Run a Ciphernode
Requirements
Ciphernode Requirements
This page lists what a host needs to run a ciphernode. It is for operators who plan a new node or
size a server. Some limits are enforced by the node code, and this page says so. Other numbers are
guidance from earlier deployments, and the node does not check them. At the end, you can choose a
host and open the correct ports.
17
GiB minimum memory
Enforced on Linux: a 4 GiB reserve plus one 13 GiB prover job.
9091
default QUIC port (UDP)
Set with node.quic_port.
2
concurrent prover jobs
The default. The node lowers it to fit memory.
Hardware
A ciphernode runs threshold cryptography and makes zero-knowledge proofs. The work uses a lot of CPU
and memory during DKG and proof generation. Memory is the only hardware value that the node checks.
Resource
Enforced by the node
Guidance (not enforced)
Memory
On Linux, the node does not start with less than 17 GiB. The default of two prover jobs needs 30 GiB.
32 GB for mainnet.
CPU
No minimum. The node keeps
multithread_reserve_threads
(default
2
) logical CPUs for other work.
8 or more modern x86-64 cores for mainnet. 4 or more for testnet.
Disk
No minimum.
SSD. Start with 100 GB for testnet and 500 GB NVMe for mainnet.
Network
One inbound UDP port for QUIC.
A stable, low-latency connection that does not filter UDP.
How the node sizes its prover work
The node runs CPU-heavy jobs (zero-knowledge proofs and threshold BFV work) in a shared pool. The
number of concurrent jobs is the smallest of three values:
The requested value,
node.multithread_concurrent_jobs
(default
2
).
The number of logical CPUs minus
node.multithread_reserve_threads
(default
2
).
The memory limit: one job for each 13 GiB after a 4 GiB reserve for the node and the host.
On Linux, the node reads the host memory (
MemTotal
in
/proc/meminfo
) and the cgroup memory
limit, and it uses the smaller value. A container memory limit is a cgroup limit. When the result is
lower than the requested value, the node logs
Reduced compute concurrency to fit detected CPU and memory limits
.
Detected memory limit
Prover jobs that the node admits
Less than 17 GiB
None. The node does not start.
17 GiB to less than 30 GiB
1
30 GiB or more
2 (the default request)
When the memory limit is too small for one job, startup stops with this error:
the detected memory limit cannot safely run one prover job in addition to the node; increase the host or cgroup memory limit
The node never admits more jobs than the memory limit allows, also when you set a higher
multithread_concurrent_jobs
. You can set the value in the configuration file or with the
E3_NODE__MULTITHREAD_CONCURRENT_JOBS
environment variable.
When a proof job fails
The node retries a failed proof job or key-share job. The wait between attempts is 5 s, 15 s, 60 s,
and then 300 s for each later attempt. From the second attempt, proof jobs run Barretenberg in
low-memory mode (
--slow_low_memory
). The node stops the retries when the E3 reaches a terminal
stage. The warning
Compute worker failed; automatic recovery remains active
does not mean that the
E3 failed.
Operating systems and platforms
Each release publishes two
interfold
binaries and one Docker image. Other platforms must build the
CLI from source.
Platform
Release binary
Docker image (
ghcr.io/theinterfold/ciphernode
)
Linux x86-64
Yes (
interfold-linux-x86_64
)
Yes (
linux/amd64
)
macOS on Apple silicon
Yes (
interfold-macos-aarch64
)
Only with x86-64 emulation
Linux on ARM (aarch64)
No. Build from source.
Only with x86-64 emulation
macOS on Intel
No. Build from source.
Yes (
linux/amd64
)
Windows
No. Use WSL 2 (Linux x86-64).
Yes, with Docker Desktop on x86-64
The memory check reads Linux interfaces. On macOS, the node does not detect a memory limit, so the
check does not stop startup. To build from source, use the Rust toolchain in
rust-toolchain.toml
(Rust 1.91.1). The DAppNode package is built for
linux/amd64
.
Network ports
Port
Protocol
Bind address
Purpose
Open to the internet
9091
(default)
UDP
0.0.0.0
QUIC transport for libp2p. Set with
node.quic_port
.
Yes, inbound
50505
TCP
127.0.0.1
Local control port for CLI commands. Set with
node.ctrl_port
.
No
Not set
TCP
127.0.0.1
Optional node dashboard. Set with
node.dashboard_port
.
No
The DAppNode package uses UDP port
37173
for QUIC. Cloud firewalls (for example, AWS security
groups or GCP firewall rules) must allow inbound UDP on the QUIC port. Behind NAT, forward the same
UDP port to the host.
⚠️
The control port accepts CLI commands for the running node. The node binds it to
127.0.0.1
. Do
not forward or publish it.
The node finds its first peers through a DNS bootstrap address for its network:
/dnsaddr/bootstrap.interfold.network
on mainnet and
/dnsaddr/bootstrap-sepolia.interfold.network
on Sepolia. See
Run a Ciphernode
to set peers.
RPC endpoints
A ciphernode needs two endpoints for each chain:
An Ethereum endpoint with a WebSocket URL (
ws://
or
wss://
). The node subscribes to contract
logs with
eth_subscribe
. The endpoint must keep the log history from the contract deploy blocks.
An Avail HTTP endpoint (
http://
or
https://
) for data availability. The node refuses to start
when a chain has no
data_availability
entry.
An endpoint that dropped old logs can return an empty result without an error. Test your Ethereum
endpoint on
RPC Endpoints
before the first sync.
Disk and storage
The node keeps its state in a
.interfold
directory next to its configuration file. Run
interfold config get db_file
to print the exact path.
Path under
.interfold/
Contents
config/<name>/key
The file that holds the encryption password for the local key store.
data/<name>/db
The key/value store, with the encrypted wallet key and libp2p key.
data/<name>/log.*
The append-only event log, with its
event-blobs-v1
directory.
noir/
The Barretenberg binary, circuit artifacts, and prover work directories.
<name>
is the node profile name. The default profile is
_default
. The
data_dir
and
config_dir
keys move the data and key directories.
Disk use grows with the E3 history that the node keeps. Events up to 32 MiB stay inside the event
log. A larger local event, for example a proof work plan, goes to a separate file in
event-blobs-v1
. Each blob file is limited to 512 MiB. The node checks the length and SHA-256 hash
of each blob when it reads it.
At startup, the node deletes only blob files that no committed event references. Blob files that the
event log references stay on disk, also after their E3 completes.
⚠️
Do not delete files in
event-blobs-v1
to free space. The event history that refers to them
becomes unreadable. Expand the volume instead.
The disk values in the hardware table are first allocations, not retention estimates. Monitor free
space and growth for each E3, and expand the volume before it is full. Back up the complete
.interfold
directory as one unit. Use SSD storage, because slow disk access can make the node miss
protocol windows.
Migrate a Node
explains how to move this directory.
Software
Software
Version
Purpose
interfold
CLI
The current release. Install it with
interfoldup
.
Runs the node and sends the operator transactions.
Rust
1.91.1 (
rust-toolchain.toml
)
Only to build the CLI from source.
Foundry (
cast
)
Any recent version
Optional. Reads contract values from a terminal.
This page covers ciphernodes only. For a development environment, see
Installation
. For compute provider hosts, see
Compute Provider
.
Check resource use
The
node dashboard
shows node health. On a Linux host, 프로젝트로 돌아가기