bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 45쪽 중 28쪽
profile.
Peer admitted
INFO
A peer passed the Identify check.
Rejected an incompatible Interfold peer
INFO
The Identify check failed. The
reason
field gives the cause.
Evicting unreachable peer <peer> after 3 consecutive failures
INFO
Three dials to the peer failed in a row.
Incoming connection error: …
WARN
An inbound connection failed.
Peer did not complete Identify before the admission deadline
DEBUG
A connected peer did not send Identify in time. Needs
-vv
.
The
Starting the scoped Interfold P2P network
line shows the
identify
string of the node.
Compare it with the string of a node that works.
Read the peer state from the dashboard API
If
dashboard_port
is set, run this command on the host of the node:
curl
-s
http://127.0.0.1:
<
por
t
>
/api/snapshot
|
jq
'.network'
An empty
connected_peers
list confirms that the node has no admitted peers.
last_error
shows the
latest network error.
Dashboard API
describes each field.
Check the chain configuration
Run
interfold config check
.
The command compares each configured address with the published deployment manifest and reports
STALE
lines. Make sure that only the chains that you use are enabled, because each enabled chain
changes the Identify string. A chain entry with
enabled: false
does not count.
Check the QUIC port
Run
interfold config get quic_port
. The default is 9091.
Make sure that the firewall, the cloud security group, and the NAT allow inbound UDP on this port.
No connected peers
Symptom:
the
Overview
of the local dashboard shows 0 connected peers, or the log shows peer
errors.
The node uses QUIC over UDP. The node admits a peer only after the Identify check passes. The check
compares the network identity and the supported Kademlia and sync protocols.
Identify does not cache peer addresses. The node keeps admitted peer addresses in Kademlia and
filters loopback addresses when it has a listener on a non-loopback interface. Each compatible
Identify exchange refreshes these addresses, so a connected peer can advertise a new address for
later reconnection. The node keeps unique filtered addresses within both limits: 8 addresses per
peer and 2 KiB of encoded addresses, including peer IDs. Advertised live endpoints take slots first.
The remaining slots fill in advertised order. Each update removes superseded Identify addresses.
Live connection endpoints remain until they close. A withdrawn endpoint is removed after its last
connection closes.
Log line
Cause
Action
Found 0 peers to dial
The configuration and the network profile give no peers.
Set
node.peers
, or check
node.network
.
Rejected an incompatible Interfold peer
with
peer network identity '…' does not match '…'
A different protocol version or a different set of enabled deployments.
Compare the release and the enabled chains with the peer.
Rejected an incompatible Interfold peer
with
peer does not support …
The peer runs an incompatible release.
Compare the releases.
Evicting unreachable peer <peer> after 3 consecutive failures
The peer does not answer at its address.
Check the address and that the peer runs.
Rejected a configured peer whose pinned identity changed
The peer ID in the configured multiaddr is not the ID at that address.
Update the
/p2p/<peer-id>
part of the multiaddr.
Some bootstrap peers are unavailable; background retries will continue
A bootstrap peer did not answer.
The node retries every 60 s. Check the address if the warning continues.
Disconnected a peer that did not establish the gossip subscription
A peer connected but did not subscribe to the protocol gossip topic in 30 s.
The node disconnects the peer and dials it again only after
redial_after_seconds
: 30 s, doubling up to 30 minutes, plus up to 10%. A subscription ends the wait. Compare the releases if the warning continues.
The dashboard API shows
configured_peers
,
connected_peers
, and
gossip_subscribed_peers
. A peer
that is connected but not subscribed to the gossip topic cannot take part in committee work. For the
full check sequence, follow
the DHT checks
.
The node does not follow the chain
Symptom:
E3 requests appear on-chain, but the node logs nothing about them.
Check the live subscription
Search the log for
Live event subscription active
. The node logs this line for each chain.
The node reads live events with a log subscription, so
rpc_url
must be a
ws://
or
wss://
URL.
Check the contract addresses
Run
interfold config check
.
A
STALE
line means that the configuration has an address that the published deployment does not
use. Update the configuration.
Check the RPC endpoint
Make sure that the endpoint returns recent blocks, serves the full log history, and does not
rate-limit the node.
See
RPC endpoints
.
Startup fails
Message
Cause
Action
Configuration file not found. Run `interfold ciphernode setup` to create a configuration.
The CLI did not find
interfold.config.yaml
.
Run the command from the node directory, or use
--config
.
another interfold instance is already running for node '<node>' against this data directory …
A second process uses the same data directory.
Stop the other process first.
ciphernode protocol version <x> does not match required version <y>
The release is for a different protocol version.
Install the release that the chain requires. See
Upgrades
.
ciphernode generation <x> is below required generation <y>
Governance requires a newer node release.
Install the new release.
On-disk schema version <v> is older than this binary's supported version …
The release raised the storage schema.
Reset node state
.
On-disk state has no schema marker …
The event log exists without the matching key/value store.
Restore the stopped backup, or reset the state.
chain '<name>' has Interfold enabled but no data_availability reader; …
The chain entry has no
data_availability
block. A configuration from an earlier
interfold ciphernode setup
does not have it.
Add the block. See
Data availability
.
failed to read Interfold release dependencies
The
Interfold
contract has no
nodeReleaseRegistry()
. On 25 September 2026, the Sepolia deployment is an example.
Use a chain whose deployment includes the node release gate.
restored request contexts for E3s … belong to chain <id>, which the configuration does not have …
The data folder has unfinished E3s of a chain that is not in the configuration, for example after a network change.
Add the chain, or keep its entry with
enabled: false
and its
chain_id
. Or
reset node state
.
restored E3 <id> is not in the Interfold contract …
The RPC endpoint is behind the chain, or the data folder is from another deployment.
Check that the endpoint is synced and the
interfold
address is right. Reset node state only for another deployment.
ciphernode startup did not complete within …
The startup sync took longer than
node.startup_timeout_secs
.
Use a faster RPC endpoint, or increase
node.startup_timeout_secs
(default 1800).
Out of memory
Symptom:
the operating system kills the node or its prover processes during a DKG. The kernel
log shows an out-of-memory kill.
DKG proofs use much memory.
multithread_concurrent_jobs
sets the number of proof and TrBFV jobs
that run at the same time. The default is 2, and the node can use fewer jobs when the host or
container memory is small.
multithread_reserve_threads
(default 2) keeps CPU threads free for the
network and the RPC connection. At startup, the node logs the values in a line that starts with
Ciphernode multithread:
.
To reduce the peak memory, set a lower
multithread_concurrent_jobs
under
node
, or add memory.
See
Compute and startup limits
and
Requirements
.
Still stuck
Read
Tickets and sortition
for the selection parameters.
Ask in the
Interfold technical chat
(opens in a new tab)
or the community
Telegram group
(opens in a new tab)
.
If you suspect a bug, open an issue on
GitHub
(opens in a new tab)
.
Include the release, the log lines, and the output of
interfold node validate
.
Next steps
Node dashboard
Peers, E3 traces, events, and logs of one node in a browser.
Monitor
RPC endpoints
What the node needs from an RPC endpoint, and how to test one.
Set up
Upgrades
Release versions, the release gate, and the state reset.
Maintain
Exits, Rewards, and Slashing
Guided Setup ↗
## /CRISP/introduction
CRISP
Introduction
Introduction to CRISP
This page explains what CRISP is, the problem that it solves, and how its parts map onto an E3. It
is for developers who want to study a complete E3 application before they build their own. At the
end, you know what each folder in
examples/CRISP
contains and which page to read next.
CRISP (Coercion-Resistant Impartial Selection Protocol) is a private voting application that runs on
the Interfold. Voters encrypt their ballots, the E3 program adds the encrypted ballots, and a
committee of ciphernodes decrypts only the final tally. The code is in
examples/CRISP
(opens in a new tab)
. CRISP has
its own release cycle, separate from the protocol release.
The problem
An open ballot shows how each person votes. A briber can then pay for a vote, and a coercer can
punish a voter who does not obey. A secret ballot hides the vote. But when a voter can prove the
vote to a third party, bribery and coercion still work. That proof is called a receipt.
CRISP protects the secrecy of each ballot and makes receipts weaker. Each property depends on the
conditions in
Privacy limits
:
Property
How CRISP provides it
Secret ballot
The client encrypts each ballot with BFV under the committee public key. Only the encrypted sum is decrypted. Decryption needs T + 1 key shares, so no single ciphernode can decrypt.
Receipt resistance
A voter can replace their ballot in the same slot. Anyone can add a mask (an encrypted zero ballot) to any eligible slot. On-chain, a vote, an update, and a mask look the same.
Eligibility
A Noir proof shows that the slot is in the round census, or that the slot has on-chain voting power.
Verifiable result
CRISPProgram.verify
checks an OpenVM proof of the sum. The Interfold contract checks the decryption proof when the committee publishes the result.
Sender privacy
The CRISP server can relay inputs, so the chain shows the relay address instead of the voter address. Relaying is configurable, and it is off on Ethereum mainnet by default.
A mask adds an encryption of zero to the ciphertext that is already in a slot. The result is a new
ciphertext that decrypts to the same value. For this reason, the on-chain ciphertexts alone do not
show which ciphertext holds the final vote of a voter (
circuits/bin/crisp/src/main.nr
). This makes
a receipt weaker, but only under the conditions that follow.
Privacy limits
The privacy of a CRISP ballot depends on these conditions:
Committee threshold.
Decryption needs T + 1 key shares. If T + 1 or more committee members
collude, they can decrypt individual ballots.
Public result.
The committee decrypts only the combined result, and that result is public. In
some polls, for example small or one-sided polls, the result can show how individual participants
voted.
Sender.
The CRISP server receives every input, because it attests that the input is available,
so it sees each request. An input that the voter wallet sends also shows the voter address
on-chain. When the CRISP server relays an input, the chain shows the relay address.
Two-step inputs
describes when the voter wallet must send the input.
How CRISP maps onto an E3
Each ballot goes through the same path. The client encrypts it, the CRISP program contract accepts
it, the E3 program adds all ballots, and the committee decrypts the sum.
Encrypt
The client encrypts the ballot and makes a Noir proof.
Commit
The server stores the bytes.
publishInput
checks the proof.
Sum
The E3 program adds one ciphertext per slot.
Decrypt
T + 1 ciphernodes decrypt the sum.
Decode
The server decodes one total per option.
The table shows which CRISP component fills each part of an E3. The
E3 program overview
describes these parts in general.
E3 part
CRISP component
Path
Client
React and Vite application. It connects the wallet, encrypts and proves ballots, and shows results.
client/
SDK
@crisp-e3/sdk
. Ballot encryption, proof generation, server API calls, and
decodeTally
.
packages/crisp-sdk/
Input circuits
Noir circuits that prove a ballot is valid.
crisp
and
fold
serve a census Merkle tree.
crisp_onchain
and
fold_onchain
serve on-chain voting power.
circuits/
E3 program contract
CRISPProgram.sol
. It implements
validate
,
publishInput
, and
verify
, and adds
finalizeInput
and
decodeTally
.
packages/crisp-contracts/
Secure process
fhe_processor
adds the BFV ciphertexts.
policy
defines the input leaf and selects one entry per slot.
program/
Coordination server
Rust crate
crisp
with three binaries:
server
(indexer, relay, and REST API on port 4000),
cli
(requests rounds), and
cron
(requests a round every 24 hours).
server/
The program contract
CRISPProgram.sol
holds the state of each round. The Interfold contract calls it when an E3 is
requested and when the encrypted output is published. The
program contract guide
explains the
IE3Program
interface.
Function
Caller
What it does
validate
Interfold contract, at the request
Decodes the round parameters and starts an input Merkle tree of depth 20. A round must have 2 to 10 options. It sizes the round so that each option total stays below the plaintext modulus
t
(see
Decode the tally
). On Avail deployments, it also checks the input window timing.
setMerkleRoot
Owner (the CRISP server key)
Stores the census Merkle root for a round that uses a census tree.
publishInput
Voter wallet or server relay
Verifies the Noir proof and the availability signature of the server. Reserves the input leaf and emits
InputCommitted
.
finalizeInput
Any account (usually the server)
Verifies the data-availability receipt for the committed ciphertext hash. Emits
InputPublished
.
verify
Interfold contract, at the output
Reverts with
InputAvailabilityPending
while an input waits for finalization. Checks the OpenVM receipt against the parameters hash and the input root.
decodeTally
Anyone (view)
Decodes the plaintext output into the total weight of each option.
The round parameters include a census mode. The census mode selects who can vote and which Noir
verifier
publishInput
uses:
Census mode
Eligibility source
Verifier
TOKEN
Token holders at a snapshot. The server builds the tree and posts its root.
CRISPVerifier.sol
BY_REQUESTER
The requesting contract returns the list from
getCensus(uint256 e3Id)
.
CRISPVerifier.sol
ONCHAIN
The contract reads voting power with
getPastVotes
for each input.
CRISPOnchainVerifier.sol
Both verifier files are Honk verifiers generated from the compiled Noir circuits. Both declare a
contract named
HonkVerifier
, so the deploy script selects them by file name. The CRISP CLI can
request
TOKEN
rounds and
ONCHAIN
rounds. For an
ONCHAIN
round, the CLI uses
SelfRegistry.sol
by default. Any account can call
register()
on it once, and a registered account has a voting
power of 1.
Two-step inputs
Secure BFV ciphertexts are too large for one Ethereum transaction. For this reason, each input goes
on-chain in two transactions,
publishInput
and
finalizeInput
. The sequence is
(
agent/flow-trace/08_DATA_AVAILABILITY.md
):
The server validates the Noir proof, stores the exact ciphertext bytes, and signs an availability
promise. The promise is valid for 10 minutes at most (
INPUT_AVAILABILITY_ATTESTATION_TTL
).
The relay or the voter wallet sends
publishInput
. The contract reserves the tree position of
the input immediately.
The server publishes the bytes to a data-availability layer. When the receipt is ready, the
server sends
finalizeInput
. The voter does not need to stay online for this step.
The computation cannot start while a committed input waits for its receipt.
The relay has per-slot and per-round limits, and anyone can use up the relayed inputs of a slot with
masks. Past a limit, the voter wallet sends
publishInput
, which shows the voter address. The voter
must confirm it before the commitment cutoff, on the page or on a later visit, or the input is lost.
Network
Data availability
Local chain (31337)
mock
. The server keeps the bytes and completes both transactions in the same request.
availabilityFinalizationWindow
is 0.
Sepolia
Avail Turing. VectorX anchors the Avail data on Ethereum.
Ethereum mainnet
Avail. VectorX anchors the Avail data on Ethereum.
For contract addresses, see
Contract addresses
.
Project Structure
The tree shows the top-level content of
examples/CRISP
that is tracked in Git.
examples/CRISP
.interfold
circuits
client
crates
docs
packages
program
scripts
server
test
.env.example
Cargo.toml
crisp.dev.env.example
docker-compose.yaml
Dockerfile
interfold.config.yaml
package.json
playwright.config.ts
Readme.md
RELEASING.md
rust-toolchain.toml
Path
Contents
.interfold/
Links to the program support scripts. At run time, it also holds ciphernode data and configuration, which
scripts/dev_cipher.sh
deletes at each start.
circuits/
Noir ballot circuits in
bin/
(
crisp
,
crisp_onchain
,
fold
,
fold_onchain
) and the shared library in
lib/
.
client/
The React and Vite voting client.
crates/
Rust libraries:
crisp-utils
(
decode_tally
),
evm_helpers
(contract bindings),
zk-inputs
and
zk-inputs-wasm
(circuit input generation).
docs/
PROOF_AGGREGATION_AND_ZK.md
: local modes for DKG proof aggregation.
packages/
crisp-contracts
(Hardhat project with
CRISPProgram.sol
),
crisp-sdk
(
@crisp-e3/sdk
), and
crisp-zk-inputs
(WASM bindings).
program/
The E3 program crate
e3-user-program
:
fhe_processor
and the input
policy
.
guest/
The OpenVM guest that proves
program/
. Its own Cargo workspace, built by
interfold program compile
.
scripts/
Shell and Node scripts for setup, local services, circuits, tests, and publication.
server/
The coordination server, the CLI, and the cron client.
test/
The Playwright and Synpress end-to-end test.
interfold.config.yaml
Ciphernode configuration: chains, contract addresses, program mode, and the five local nodes
cn1
to
cn5
.
crisp.dev.env.example
Template for the local development profile (
crisp.dev.env
).
.env.example
Template for the keys that
scripts/setup_testnet.sh
reads.
docker-compose.yaml
An optional development container that mounts the repository and publishes ports 8545, 3000, and 4000.
The OpenVM guest is in
guest/
, and the proving service is in
.interfold/support/openvm
. Both
link
program/
, so they run the same
fhe_processor
and
policy
as the native host and agree with
CRISPProgram
.
interfold program compile
builds the guest and writes its receipt identity, which
the CRISP deploy script reads unless
OPENVM_*
settings name another.
Further reading
The CRISP blog post
(opens in a new tab)
The vote masking blog post
(opens in a new tab)
Next steps
Set up CRISP
Install the prerequisites, build CRISP, and start the local stack.
CRISP
Run a voting round
Request a round, vote in the client, and decode the tally.
CRISP
E3 program anatomy
The parts that every E3 program has, and how they connect.
Build
Noir circuits
How input circuits prove that an encrypted input is valid.
Build
Guided Setup ↗
Setup
## /CRISP/setup
CRISP
Setup
Set up CRISP
This page shows how to build CRISP and run it on a local chain. It is for developers who want to run
the reference application or change it. At the end, the full CRISP stack runs on your computer and
the client is at
http://localhost:3000
.
CRISP runs inside the Interfold monorepo.
pnpm dev:setup
builds workspace packages and installs
the
interfold
CLI from the repository source. For this reason, you need a full clone of the
repository. Run all
pnpm
commands on this page from
examples/CRISP
.
Prerequisites
Tool
Version
Used by
Gi프로젝트로 돌아가기