bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 45쪽 중 37쪽
committees
:
eligibilityAt
at the latest block time, which also applies the admission cooldown and the
admission policy. An operator in the cooldown is
Active
but not yet eligible.
The ticket balance and the number of available tickets
The FOLD bond and the pending exits
The requirements:
minTickets
,
ticketPrice
, and
ciphernodeBond
The committees that hold the collateral of the operator, each with its E3 ID, the membership
(
candidate
,
member
, or
expelled
), and the E3 stage
A committee stays in the list until
releaseCommittee(e3Id)
releases it, also after its E3 is
complete or failed. A
candidate
holds a provisional seat while the sortition of the E3 is open.
The command reads the
CommitteeObligationUpdated
events of
BondingRegistry
, from the
deploy_block
of the contract to the latest block. When the configuration has no
deploy_block
for
bonding_registry
, the read starts at block 0. It sends one
eth_getLogs
request for each 10,000
blocks (or the chain's
rpc_log_range_blocks
), or for each smaller range that the RPC endpoint
accepts. Thus the read can take some seconds, and longer on an endpoint with a small range limit. If
the read fails, the command shows
Committees: unavailable
with the error, and it shows all the
other values.
interfold faucet
Testnet only
Requests test tokens from the
faucet
contract of a
chain. The
Faucet
contract of the repository (
contracts/test/Faucet.sol
) sends 1000 FOLD and
1000 fee tokens to the configured wallet. It sends each token only when the wallet holds less than
1000 of it.
interfold
faucet
[--chain
<
CHAI
N
>
]
The chain must have a
faucet
entry in
contracts
. If the entry is missing, the command stops with
the error
No faucet contract configured for chain '<CHAIN>'
. Sepolia publishes a faucet, so
interfold faucet --chain sepolia
sends 1000 FOLD and 1000
MockUSDC
. Mainnet has no faucet. On
Sepolia, one faucet call provides enough FOLD for the 100 FOLD operator bond. See
Contracts & Addresses
.
Keys and secrets
The node stores its password in a key file. It uses the password to encrypt the wallet key and the
libp2p key in its data store. See
node keys
.
interfold password set
Sets the password when no password exists. When the key file already exists, the command stops with
an error. Run
interfold password delete
first.
interfold
password
set
[--password-stdin]
Flag
Value
Default
Description
--password-stdin
None
Off
Reads the password from one line of standard input.
Without the flag, the hidden prompt asks for the password twice. The password must not be blank. The
command rejects password values in command arguments.
interfold password delete
Deletes the key file. The command asks for confirmation and for the current password.
interfold
password
delete
⚠️
The stored wallet key and libp2p key are encrypted with this password. If you delete the password
and set a different one, the node cannot decrypt those keys. Keep a copy of the wallet private key
before you delete the password, and run
interfold wallet set
again after you set a new one.
interfold wallet set
Stores the wallet private key, encrypted with the password. The command also derives the libp2p
keypair from the same private key and stores it. The wallet key gives the node its Ethereum address
and its peer ID.
interfold
wallet
set
[--private-key-stdin]
Flag
Value
Default
Description
--private-key-stdin
None
Off
Reads the private key from one line of standard input.
Without the flag, the command asks for the wallet key with a hidden prompt. The key must contain 32
bytes in hexadecimal. The command rejects wallet key values in command arguments.
interfold wallet get
Prints the Ethereum address of the stored wallet key.
interfold
wallet
get
Network commands
interfold net get-peer-id
Prints the libp2p peer ID of the node. The peer ID comes from the stored wallet key.
interfold
net
get-peer-id
To dial extra peers, use
interfold start --peer
. To set peers permanently, use the
peers
key.
See
network settings
.
Maintenance commands
interfold node validate
Checks the stored state of one node without a start. The command checks these items:
This binary can load the storage schema.
The event log is intact.
The snapshot cursor is consistent.
No committee tickets are orphaned.
Without
--repair
, the command changes no files. It exits with an error when a check fails.
interfold
node
validate
[--repair]
Flag
Value
Default
Description
--repair
None
Off
Repairs a safe log tail, or builds a stale sortition projection again.
The command takes the same data-folder lock as
interfold start
. Stop the node before you run it.
Use it before an upgrade and after a crash. See
Upgrades
.
interfold node reset-data
Deletes the durable protocol state of one node but keeps its identity. Use it when a release raises
the storage schema and the binary refuses to load the old data folder.
interfold
node
reset-data
--yes
Flag
Value
Default
Description
--yes
None
Off
Confirms the deletion. Without it, the command stops with a message that lists what it deletes.
--allow-active-e3s
None
Off
Deletes the state even when this node holds a key share for an E3 that it has not seen complete. The node loses that key share.
The command first writes an encrypted backup of the wallet key and libp2p key to
identity-backup-<name>-<timestamp>.json
next to the database. Then it deletes the key/value store
and the event log, writes the identity back, and reads it again to confirm. The command refuses to
run while the node runs. It also refuses, and deletes nothing, while the node holds a key share for
an E3 that it has not seen complete, including an E3 that shows
Failed
. See
Reset node state
. The command in v0.18.0 and earlier has no
such check. Run the reset with the binary of the new release.
⚠️
Do not delete the data folder by hand. The wallet key and the libp2p key are in the same store as
the protocol state. If you delete the folder, you lose the identity that holds the bond. Use
interfold node reset-data
instead.
interfold config check
Compares the contract addresses in the configuration with the published deployment manifest. See
Contracts & Addresses
.
interfold
config
check
[--chain
<
CHAI
N
>
]
[--manifest-url
<
MANIFEST_UR
L
>
]
Flag
Value
Default
Description
--chain
<CHAIN>
Every chain in the config
Checks only this chain.
--manifest-url
<MANIFEST_URL>
The
manifest.json
asset of the latest GitHub release
Reads the manifest from this URL instead.
The command compares a chain only when its
name
is a network in the manifest,
mainnet
or
sepolia
. It skips other chains. Each finding has one of these labels:
Label
Meaning
Fails the command
STALE
An address or the
chain_id
does not match the manifest.
Yes
warn
A
deploy_block
is unset or does not match the manifest.
No
note
The manifest publishes a contract that the config does not set, or the network is a mock deployment.
No
The command exits with status
1
when it finds a
STALE
value. A supervisor or a CI job can use it
as a gate before a restart. It does not compare
e3_program
, because each application has its own
E3 program.
interfold rev
Prints the Git revision that the binary was built from.
interfold
rev
[--features]
Flag
Value
Default
Description
--features
None
Off
Prints the optional Cargo features of this binary instead, one for each line. A release build prints nothing.
interfold purge-all
Deletes
.interfold/data
,
.interfold/config
, and
.interfold/caches
in the current directory.
This command is
nodes purge
and
program cache purge
together, with the same checks as
nodes purge
.
interfold
purge-all
--yes
[--allow-active-e3s]
Flag
Value
Default
Description
--yes
None
Off
Confirms the deletion. Without it, the command prints what it deletes and stops.
--allow-active-e3s
None
Off
Overrides the key-share refusal and the refusal for a node that
nodes purge
cannot check. The chain cannot restore a deleted key share.
⚠️
interfold purge-all
deletes the key files, the stored wallet keys, and the event history under
.interfold
in the current directory. You cannot undo this action.
Hidden and feature-gated items
Item
Status
Description
interfold nodes daemon
Hidden
The supervisor process.
nodes up --detach
starts it. Help output does not list it. Do not run it directly.
test-only-skip-proof-aggregation
Cargo feature
Feature-gated
Test and CI builds only. Together with
skip_proof_aggregation: true
, it skips recursive proof aggregation.
interfold rev --features
shows it.
Next steps
Node Configuration
Every key in
interfold.config.yaml
, its default, and the environment overrides.
Reference
Running a ciphernode
The procedure that uses these commands to set up and start a node.
Operators
Contracts & Addresses
The contracts that the on-chain commands call, with their addresses.
Reference
Quick Start
Make a project with
interfold init
and run it locally.
Developers
Commitment Consistency
Node Configuration
## /reference/configuration
Reference
Node Configuration
Node Configuration
This page describes the
interfold.config.yaml
file that the
interfold
CLI and every ciphernode
read. It is for operators who run a node and for developers who run the local template. It lists
where the CLI finds the file, where the node stores its data, and every key with its type and
default. For the procedure that makes and uses this file, see
Running a ciphernode
.
The source of truth is
crates/config/src
. The values on this page are for release 0.18.0.
Config file location
The CLI uses the first file that it finds in this order:
The path in
--config
(
-c
). A relative path starts from the current directory. With this flag,
the file can have any name.
interfold.config.yaml
in the current directory, or in the nearest parent directory that has
one.
interfold.config.yaml
in the
interfold
folder of the operating system configuration folder.
On Linux, this folder is
$XDG_CONFIG_HOME/interfold
or
~/.config/interfold
. On macOS, it is
~/Library/Application Support/interfold
.
To see which file the CLI uses, run
interfold config get config_file
. When no file exists at any
of these locations, most commands stop. See
behavior without a configuration file
.
How the CLI loads the file
The loader combines four sources. A later source overrides an earlier one:
The built-in defaults on this page
The YAML file, after environment variable substitution
Environment variables that start with
E3_
The
--otel
flag, when you give it
After it combines the sources, the loader selects one node profile with
--name
and checks it. The
loader ignores unknown keys at the top level and in a chain entry. An unknown key in a node profile
stops the load with the error
Could not parse configuration
.
Variable substitution in the file
Before the loader parses the YAML, it replaces
$NAME
and
${NAME}
with the value of the
environment variable
NAME
. Use substitution to keep secrets, such as an RPC token, out of the
file.
chains
:
-
name
:
sepolia
rpc_url
:
'wss://ethereum-sepolia-rpc.publicnode.com'
rpc_auth
:
type
:
Bearer
credentials
:
'${SEPOLIA_RPC_TOKEN}'
When a variable is not set, the load fails with the error
Configuration file not found
.
Environment overrides
An environment variable that starts with
E3_
overrides one key. Remove the prefix, write the key
in upper case, and separate nested keys with
__
(two underscores).
Variable
Key
E3_NODE__QUIC_PORT=9201
node.quic_port
E3_NODE__MULTITHREAD_CONCURRENT_JOBS=4
node.multithread_concurrent_jobs
E3_NODES__CN1__MULTITHREAD_CONCURRENT_JOBS=4
nodes.cn1.multithread_concurrent_jobs
E3_DATA_DIR=/var/lib/interfold/data
data_dir
E3_CUSTOM_BB=/usr/local/bin/bb
custom_bb
To change a value in a
chains
entry, use variable substitution in the file.
Storage paths
The node keeps its files in a
.interfold
folder next to the configuration file. Each node profile
gets its own subfolder, named after the profile. The default profile is
_default
.
File
Default path
Override
Password key file
.interfold/config/<name>/key
config_dir
,
key_file
Key/value store
.interfold/data/<name>/db
data_dir
,
db_file
Event log
.interfold/data/<name>/log
data_dir
,
log_file
Operational log
ciphernode.jsonl
in the folder of the event log
None
Barretenberg binary
.interfold/noir/bin/bb
custom_bb
Circuits
.interfold/noir/circuits
None
Prover work folder
.interfold/noir/work/<name>
None
The paths follow these rules:
A
config_dir
or
data_dir
in a node profile overrides the top-level key with the same name.
The node adds
<name>
to a
config_dir
or
data_dir
override. For example,
data_dir: /srv/if
puts the store of
_default
at
/srv/if/_default/db
.
An absolute
key_file
,
db_file
, or
log_file
is used as it is. A relative one starts from
<config_dir>/<name>
or
<data_dir>/<name>
.
An absolute
custom_bb
is used as it is. A relative one starts from
.interfold/noir
.
Run
interfold config get key_file
,
db_file
,
log_file
, or
work_dir
to see the resolved paths.
⚠️
The key/value store contains the encrypted wallet key and the libp2p key of the node. Do not
delete the data folder by hand. To clear the protocol state and keep the identity, use
interfold node reset-data
.
Top-level keys
Key
Type
Default
Meaning
node
Node profile
All profile defaults
The
_default
profile. Commands use it when
--name
is absent.
nodes
Map of profiles
Empty
Named profiles. Select one with
--name <name>
.
interfold nodes up
runs all of them. The name
_default
is reserved.
chains
List of chains
Empty
The EVM chains that the node reads and writes. See
chain keys
.
config_dir
Path
.interfold/config
next to the file
Base folder for key files.
data_dir
Path
.interfold/data
next to the file
Base folder for the key/value store and the event log.
custom_bb
Path
None
Barretenberg binary to use instead of the downloaded one. The node does not verify its checksum. The version must match the release.
program
Program settings
None
Settings for
interfold program
. See
program settings
.
otel
String
None
OpenTelemetry collector gRPC endpoint, for example
http://localhost:4317
.
E3_OTEL
overrides it, and the
--otel
flag overrides both.
Node profile keys
The
node
key and each entry under
nodes
accept the same keys. Every key is optional.
Network settings
Key
Type
Default
Meaning
network
String
Inferred from the chains
P2P network profile. The built-in profiles are
mainnet
,
sepolia
, and
local
. See
network profiles
.
network_id
64 hexadecimal characters
The fixed ID of the profile
32-byte network identity. A custom network name requires it.
peers
List of multiaddrs
Empty
Peers to dial at start. When the list is empty, the node uses the bootstrap peers of the profile.
quic_port
Integer (UDP port)
9091
Port of the libp2p QUIC listener. The node listens on all interfaces.
ctrl_port
Integer (TCP port)
50505
Control port on
127.0.0.1
. The CLI sends read-only commands to a running node through it.
dashboard_port
Integer (TCP port)
None
When set, the node serves a monitoring dashboard at
http://127.0.0.1:<port>
. See
Dashboard
.
bootstrap
Boolean
false
interfold nodes up
starts this profile as a bootstrap peer (
interfold start --bootstrap
): networking and chain reads only.
Each profile on one host needs its own
quic_port
and
ctrl_port
.
Node keys
Key
Type
Default
Meaning
address
Address
None
Ethereum address of the node.
ciphernode setup
writes it. It is information only. The node signs with the stored wallet key.
autopassword
Boolean
false
When no key file exists, every command that loads the file makes a random password.
autowallet
Boolean
false
When no wallet key exists, every command that loads the file makes a random wallet key and the libp2p key from it.
autonetkey
Boolean
false
Only
interfold config get
reads this key. The libp2p key always comes from the wallet key.
The key file holds the password. The node uses the password to encrypt the wallet key and the libp2p
key in the key/value store.
interfold wallet set
derives the libp2p key from the wallet private
key, so the peer ID follows the wallet.
⚠️
A random password or wallet from
autopassword
or
autowallet
exists only in the files of that
profile. If you lose those files, you lose the key. Use these keys for local development. For an
operator node, set the password and the wallet key yourself and keep a copy of the private key.
Storage keys
Key
Type
Default
Meaning
config_dir
Path
Top-level value
Base folder for the key file of this profile.
data_dir
Path
Top-level value
Base folder for the store and event log of this profile.
key_file
Path
key
Key file that holds the password.
db_file
Path
db
Key/value store.
log_file
Path
log
Event log. The node writes the protocol events here.
Compute and startup limits
Key
Type
Default
Meaning
multithread_reserve_threads
Integer
2
Logical CPUs kept for Actix, libp2p, and RPC work. The compute pool does not use them.
multithread_concurrent_jobs
Integer
2
Maximum number of CPU-heavy jobs (ZK proofs and TrBFV) at the same time. The node can use a lower value.
startup_timeout_secs
Integer
1800
(30 minutes)
Deadline for construction and initial sync. A node that misses it exits with an error. Must be above
0
.
bb_timeout_secs
Integer
43200
(12 hours)
Wall-clock cap of one
bb
proving or verification run. A run that exceeds it is killed and retried, hung or not, so keep it above the longest proof the host needs; a secure proof can take hours on a slow host. Must be above
0
.
max_buffered_evm_events
Integer
100000
Maximum decoded EVM events that the node holds for each chain during initial sync. Must be above
0
.
max_buffered_net_events
Integer
1024
Maximum network events that the node holds during startup sync. Must be above
0
.
max_buffered_net_bytes
Integer
268435456
(256 MiB)
Maximum estimated bytes in the network startup buffer. Must be above
0
.
skip_proof_aggregation
Boolean
false
Test and CI only. See the note below.
The node calculates the number of jobs that it admits. The number is the lowest of these values:
multithread_concurrent_jobs
The number of CPUs that is left after
multithread_reserve_threads
The memory limit, minus 4 GiB for the node, divided by 13 GiB for each prover job
The memory limit is the lower of the host memory and the cgroup limit. When the limit cannot hold
one prover job and the 4 GiB reserve, the node does not start. Do not increase the job count unless
the host has enough memory for all jobs.
When the EVM buffer overflows during startup, the start fails. The node does not drop the events.
skip_proof_aggregation: true
skips recursive proof aggregation for DKG and decryption. The node
refuses to start with this value unless the binary has the
test-only-skip-proof-aggregation
Cargo feature. Release binaries do not have this feature. On-chain verification still applies, so
the value works only against mock verifiers.
Network profiles
The network profile selects the P2P network that the node joins. Nodes on different profiles cannot
communicate.
Profile
Network ID
Bootstrap peer
mainnet
c3e81f904b0a8129dce0a85a8d48958a3ca5ee3aea6c32b623fcf66b35728acb
/dnsaddr/bootstrap.interfold.network
sepolia
ab33954b5b3fadf808f03a7c8a7dd159a29ac5950e6c3d724f76ed4c26c9e5c2
/dnsaddr/bootstrap-sepolia.interfold.network
local
d7cec7f3c090b451f4ff10461b424728e320f72cf3dada907c5bdfe5570a5807
None
When
network
is absent, the loader infers the profile from the enabled chains:
Chain value
Profile
chain_id: 1
mainnet
chain_id: 11155111
sepolia
chain_id: 1337
or
31337
local
No
chain_id
, and
name
is
mainnet
mainnet
No
chain_id
, and
name
is
sepolia
sepolia
No
chain_id
, and
name
is
local
,
localhost
,
hardhat
, or
devnet
local
No enabled chains
local
Any other
chain_id
or
name
The load f프로젝트로 돌아가기