bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 45쪽 중 20쪽
these commands show the
system resources:
# Memory
free
-h
# CPU and memory for each process
htop
# Free disk space
df
-h
# The QUIC listener (UDP). Replace 9091 if you changed node.quic_port.
ss
-ulnp
|
grep
9091
Next steps
Run a Ciphernode
Install the node, write its configuration, and start it.
Set up
RPC Endpoints
Test that an endpoint keeps the log history before the first sync.
Set up
Overview
Run a Ciphernode
## /operate/running
Run a Ciphernode
Run a Ciphernode
Run a Ciphernode
This page shows three ways to install and start a ciphernode: DAppNode, the
interfold
CLI, and
Docker. It is for operators who have a host that meets the
requirements
. At
the end, the node runs, syncs the contract history, and waits for
registration
. For a release change, follow
Upgrades
.
Before you start
Prepare these items before you install the node:
A host that meets the
requirements
, with the QUIC UDP port open.
An Ethereum WebSocket endpoint that keeps the full log history. Test it on
RPC Endpoints
first.
An Avail HTTP endpoint for data availability. The examples on this page use the defaults of the
DAppNode package.
An operator key: a dedicated Ethereum private key for this node. The node signs ticket submissions
and release acknowledgments with it, so it needs ETH for gas.
A bond owner wallet or Safe that holds the FOLD and the ticket collateral. A wallet that is
separate from the operator key is recommended. See
Registration & Bonding
.
Use a fixed release version on an operator node. Do not use a moving version such as the
latest
Docker tag.
Choose a method
Method
Best for
Configuration
Where the state lives
DAppNode
A DAppNode box with a setup form
The setup wizard renders
/data/config.yaml
.
The
ciphernode_data
volume (
/data
)
CLI
A Linux or macOS server that you manage
You write
interfold.config.yaml
.
.interfold/
next to the config file
Docker
Container hosts (Linux x86-64)
You write
config.yaml
and mount it read-only.
A named Docker volume
The CLI and Docker methods use the same configuration file. Write it first, as shown in the next
section. The DAppNode package writes its own file from the wizard values.
Write the configuration file
The configuration file sets the node profile and one entry for each chain. Copy the example for your
network and replace the placeholders. The addresses come from the deployment manifest. See
Contract addresses
.
Mainnet
Sepolia
interfold.config.yaml
node
:
network
:
mainnet
quic_port
:
9091
chains
:
-
name
:
mainnet
chain_id
:
1
rpc_url
:
'wss://YOUR_MAINNET_ENDPOINT'
data_availability
:
mode
:
avail
rpc_url
:
'https://avail-rpc.publicnode.com/'
contracts
:
interfold
:
address
:
'0x28cF63B459e6218C69EA97ea7D90541cf648c715'
deploy_block
:
25786382
ciphernode_registry
:
address
:
'0xC927A5B2d8F68697bC28C0670df05178c93df2d7'
deploy_block
:
25786378
bonding_registry
:
address
:
'0x0ec90465095C21830BEcED07e032809A2Bd2915F'
deploy_block
:
25473398
slashing_manager
:
address
:
'0x753109Ee36Dc65cC178875AddA30C6433e5bEEe4'
deploy_block
:
25998899
fee_token
:
address
:
'0xdC035D45d973E3EC169d2276DDab16f1e407384F'
deploy_block
:
20663730
E3 requests on Sepolia stay paused until operators that run the 0.19.0 release register. Run that
release on Sepolia. A node of an earlier release does not match the Sepolia deployment.
interfold.config.yaml
node
:
network
:
sepolia
quic_port
:
9091
chains
:
-
name
:
sepolia
chain_id
:
11155111
rpc_url
:
'wss://YOUR_SEPOLIA_ENDPOINT'
data_availability
:
mode
:
avail
rpc_url
:
'https://turing-rpc.avail.so/rpc'
contracts
:
interfold
:
address
:
'0xBD5B6D1aDA9e0eB248B678469C9Cd6a63507E42b'
deploy_block
:
11873232
ciphernode_registry
:
address
:
'0xb1E8640CF8D0A927290E3d9E1b01c4899B5225Ef'
deploy_block
:
11873232
bonding_registry
:
address
:
'0x8687bC7C8f055b41aD2C2447c04aCBD76C1075b2'
deploy_block
:
11873232
slashing_manager
:
address
:
'0x5F9D21751aA24bc3D67C9B9D6ceEf2b62AAdac6d'
deploy_block
:
11873232
fee_token
:
address
:
'0xE2e534F7Cb95777eD870CDCaCb80B1E9E2aD555B'
deploy_block
:
11856062
faucet
:
address
:
'0x1B4340A65BB669267BF5DE37385B139987C3F09c'
deploy_block
:
11873271
The node applies these rules when it loads the file:
Every enabled chain must belong to the
node.network
profile.
chain_id: 1
belongs to
mainnet
and
chain_id: 11155111
belongs to
sepolia
. One node serves one network. To keep an entry for
another network in the file, set
enabled: false
on it.
Each enabled entry must be a different chain. The node refuses to start when two enabled entries
resolve to the same chain ID.
Each contract must have a nonzero
deploy_block
when
rpc_url
is not a local address. Otherwise,
startup stops with
Misconfiguration: Attempted to query historical events from genesis on a non-local node
.
A ciphernode needs
interfold
,
ciphernode_registry
,
bonding_registry
,
slashing_manager
, and
a
data_availability
entry on each enabled chain. The node refuses to start without them.
Each
$NAME
or
${NAME}
in the file is replaced with the value of that environment variable. Use
this to keep an API key out of the file, for example
rpc_url: 'wss://example.invalid/v2/${RPC_API_KEY}'
.
Keep the chain
name
as
mainnet
or
sepolia
. The
interfold config check
command matches chains
to the manifest by name, and it skips other names. Also set
chain_id
, because
config check
compares it with the manifest. The command does not query the endpoint.
The first sync starts at the lowest
deploy_block
of all configured contracts. On mainnet, the
fee_token
deploy block (20663730) is about 4.8 million blocks before the
bonding_registry
deploy block (25473398). The node does not use
fee_token
, so you can remove that entry to
shorten the first sync.
interfold config check
then prints a note for it, but the check passes.
Main configuration keys
The keys below matter most on an operator node. The
Configuration Reference
lists every node key, and
Chain keys
lists every chain key.
Key (under
node:
)
Default
Meaning
network
Inferred from the chains
P2P profile:
mainnet
,
sepolia
, or
local
.
quic_port
9091
UDP port of the QUIC listener.
peers
Empty (profile DNS bootstrap)
libp2p addresses to dial. See
Networking
.
multithread_concurrent_jobs
2
Requested prover jobs. The node lowers it to fit memory.
startup_timeout_secs
1800
Time limit for startup and the first sync. After it, the node exits with an error.
autowallet
false
true
generates a random wallet when none is stored. That key is not your registered operator.
Key (under each
chains:
entry)
Default
Meaning
rpc_url
Required
WebSocket URL (
ws://
or
wss://
). The node needs it for log subscriptions.
rpc_auth
No auth
Basic
or
Bearer
credentials. See
RPC authentication
.
data_availability
Required
mode: avail
and an HTTP
rpc_url
. See
Data availability
.
ingestion_confirmations
1
Confirmations before the node applies a log.
rpc_poll_interval_ms
7000
Milliseconds between the polls of an HTTP provider for a receipt or a new block.
rpc_log_range_blocks
10000
Widest block range of one
eth_getLogs
request. See
RPC endpoints
.
enabled
true
false
makes the node ignore the entry.
The defaults of one confirmation and a 7-second poll interval also apply when
rpc_url
uses
localhost
or
127.0.0.1
, because that URL can be a proxy to a live chain. Set
ingestion_confirmations: 0
and
rpc_poll_interval_ms: 250
only on a single-process development
chain such as Anvil. Do not set them on mainnet or Sepolia.
The
autonetkey
key has no effect in this release. The node derives its libp2p key from the wallet
key.
Start the node
DAppNode
CLI
Docker
The DAppNode package wraps the released
interfold
binary. Its setup wizard collects the values,
renders
/data/config.yaml
, stores the credentials, and runs
interfold start
.
Install the package
Open the DAppNode UI (
http://my.dappnode
) and search the DAppStore for
Interfold Ciphernode
.
If the package is not listed, open
Installer
and use
Install from IPFS hash
with the hash of
a published release.
Prepare the credentials file
Create a JSON file with exactly these two fields. The private key is the operator key.
secrets.json
{
"password"
:
"<strong encryption password>"
,
"private_key"
:
"0x<64 hex characters>"
}
The file must be 16 KiB or smaller. Keep an encrypted offline backup of it.
Fill in the setup wizard
Enter the values from the table below, and upload the credentials file as
Ciphernode Credentials
JSON
. For contract addresses and deploy blocks, use
Contract addresses
.
Check the logs
Open
Packages → interfold-ciphernode.public.dappnode.eth → Logs
. On the first start, the log
shows
Credential setup completed.
and then
Starting Interfold ciphernode.
Wizard field
Variable
Required
Default in the package
Network
NETWORK
Yes
mainnet
(choices:
mainnet
,
sepolia
,
localhost
)
RPC URL
RPC_URL
Yes
None. Must start with
ws://
or
wss://
.
Chain ID
CHAIN_ID
Yes
1
Node Address
NODE_ADDRESS
Yes
None. Must match the key in the credentials file.
Interfold Contract Address
INTERFOLD_CONTRACT
Yes
The mainnet address
Ciphernode Registry Contract
CIPHERNODE_REGISTRY_CONTRACT
Yes
The mainnet address
Bonding Registry Contract
BONDING_REGISTRY_CONTRACT
Yes
The mainnet address
Slashing Manager Contract
SLASHING_MANAGER_CONTRACT
Yes
The mainnet address
Fee Token Contract
FEE_TOKEN_CONTRACT
Yes
The mainnet address
Deploy blocks (one for each contract)
*_DEPLOY_BLOCK
Yes
The mainnet values
Bootstrap Peers
PEERS
No
Empty: use the DNS bootstrap of
NETWORK
Log Level
LOG_LEVEL
No
info
(choices:
info
,
debug
,
trace
)
Extra Options
EXTRA_OPTS
No
Empty. Added to the
interfold start
arguments.
Two more variables are set in the package configuration, not in the wizard.
AVAIL_RPC_URL
defaults
to
https://avail-rpc.publicnode.com/
for chain ID 1 and
https://turing-rpc.avail.so/rpc
for
chain ID 11155111.
QUIC_PORT
defaults to
37173
, and the package publishes UDP port 37173.
The package keeps its state in
/data
, on the
ciphernode_data
volume. DAppNode lists this volume
as a backup target. The wallet key and the libp2p key are encrypted there. The password file is also
there, so backups of
/data
must be encrypted and access-controlled.
After it stores the credentials, the package deletes the uploaded file. A restart uses the stored
state and does not need a new upload. An upload with a different password stops startup.
The package health check confirms that the process runs, the files exist, the QUIC listener is
bound, and chain ingestion moves: the node writes a heartbeat file per chain after every successful
read of the chain head, and the check fails when the heartbeat is older than 120 seconds or neither
the head nor the cursor moved for 10 minutes. From 15 minutes after the node started, every enabled
chain must have a heartbeat, so a chain whose RPC endpoint never answers fails the check too. It
does not prove that the node is registered. Read the logs and the
on-chain status
to confirm that.
Install the CLI
Install
interfoldup
, then use it to install a fixed
interfold
release.
curl
-fsSL
https://raw.githubusercontent.com/theinterfold/interfold/main/install
|
bash
interfoldup
install
--version
v0.19.0
interfold
--version
The last command prints the installed version, for example
interfold 0.19.0
. Add
--system
to
install into
/usr/local/bin
instead of
~/.local/bin
.
Save the configuration file
Save the file from
Write the configuration file
as
interfold.config.yaml
in the default configuration directory:
Linux:
~/.config/interfold/
macOS:
~/Library/Application Support/interfold/
The CLI first looks for
interfold.config.yaml
in the current directory and its parent directories,
then in the default directory. Use
--config <path>
to select a file.
Store the encryption password
interfold
password
set
The command asks for the password two times. It fails when a password is already set.
Store the operator key
interfold
wallet
set
The command asks for the private key without showing it. It prints
Wallet key has been successfully stored and encrypted.
The node derives its libp2p identity from
the same key.
Check the configuration
interfold
config
check
The command must end without a
STALE
line. See
Check the configuration
.
Start the node
interfold
start
-v
The log shows
Ciphernode multithread
and
Configured memory-aware compute scheduler
, then the
first sync. The node runs in the foreground until it gets
SIGINT
or
SIGTERM
.
For scripts,
password set --password-stdin
and
wallet set --private-key-stdin
read one line from
standard input. Without these flags, the commands use hidden prompts. They reject secrets in command
arguments.
On Sepolia,
interfold ciphernode setup --network sepolia
does the file, password, and key steps
in one command. It asks for the password, the WebSocket RPC URL, the private key, and the
configuration directory, unless
--password-stdin
,
--rpc-url
,
--private-key-stdin
, and
--config-dir
give them. Without a terminal, it needs all four. It writes the Sepolia addresses
that the CLI was built with, and a
data_availability
block for Avail Turing. The command
supports only
sepolia
; for a local chain, start from the project template's
interfold.config.yaml
. It refuses to run when a configuration file already exists.
Run the node under a process manager, for example systemd. The node exits with an error when a chain
gateway or the event storage fails, and when startup takes longer than
startup_timeout_secs
. The
process manager restarts it. Give the node more than 60 seconds to stop (see
Stop and restart
).
The release image
ghcr.io/theinterfold/ciphernode
contains the
interfold
binary at
/usr/local/bin/interfold
. It runs as the user
ciphernode
(UID 1000) and is built for
linux/amd64
. The image entrypoint,
ciphernode-entrypoint.sh
, stores the password and the
operator key on the first boot, then starts the node. The node keeps its state on a named volume.
See
Docker state
.
Pull a versioned image
export
CIPHERNODE_IMAGE
=
'ghcr.io/theinterfold/ciphernode:0.19.0'
docker
pull
"$CIPHERNODE_IMAGE"
Image tags use the release version without a
v
prefix.
Save the configuration file
Save the file from
Write the configuration file
as
config.yaml
in
the current directory. The commands below mount it into the container.
Create a data volume
docker
volume
create
ciphernode-data
The volume holds the key file, the encrypted keys, the event log, and the circuit files.
Prepare the credentials file
On the first boot, the entrypoint reads the password and the operator key from a JSON file mounted
at
/run/secrets/secrets.json
. It does not read them from environment variables. Create the file
with restrictive permissions. Do not commit it or paste the values into shell history.
umask
077
install
-m
600
/dev/null
secrets.json
${EDITOR
:-
vi} secrets.json
secrets.json
{
"password"
:
"<strong encryption password>"
,
"private_key"
:
"0x<64 hex characters>"
}
Both values are required. The wallet command derives the libp2p identity from the operator key. Keep
the password and the key in your secret management system.
The entrypoint reads this file only when the volume has no key file or no wallet key. After it uses
the file, it tries to delete it. A read-only mount stays in place, and the boot continues. Images
before 0.19.0 read the file on every boot and stop when they cannot delete it, so they fail with
this read-only mount.
Do not set
autopassword
or
autowallet
in
config.yaml
for the image. With
autopassword
, the
node creates a random password before the entrypoint can set the password from this file. With
autowallet
, the node tries to create a random wallet key before the entrypoint can set the key
from this file.
Start the container
docker
run
-d
\
--name
ciphernode
\
--restart
unless-stopped
\
--stop-timeout
65
\
-v
ciphernode-data:/home/ciphernode/.local/share/interfold
\
-v
"$PWD/config.yaml"
:/home/ciphernode/.config/interfold/config.yaml:ro
\
-v
"$PWD/secrets.json"
:/run/secrets/secrets.json:ro
\
-p
9091
:9091/udp
\
"$CIPHERNODE_IMAGE"
Read the logs
docker
logs
-f
ciphernode
On the first boot, the log shows
Setting password
and
Setting wallet key
. Each boot then shows
Starting ciphernode
.
The same service in Docker Compose:
docker-compose.yml
services
:
ciphernode
:
image
:
${CIPHERNODE_IMAGE:?set CIPHERNODE_IMAGE to a versioned release tag}
restart
:
unless-stopped
stop_grace_period
:
65s
volumes
:
-
ciphernode-data:/home/ciphernode/.local/share/interfold
-
./config.yaml:/home/ciphernode/.config/interfold/config.yaml:ro
secrets
:
-
source
:
ciphernode_credentials
target
:
secrets.json
ports
:
-
'9091:9091/udp'
secrets
:
ciphernode_credentials
:
file
:
./secrets.json
volumes
:
ciphernode-data
:
⚠️
Run this image with its entrypoint. Only the entrypoint sets
E3_CONFIG_DIR
and
E3_DATA_DIR
to
the volume and stores the password and the key from
secrets.json
. A container that runs with
--entrypoint interfold
gets neither, so it keeps its state where the binary stores it by
default, for example in
/home/ciphernode/.config/interfold/.interfold
on a volume at
/home/ciphernode/.config/interfold
. To change such a container to the steps above, remove
--entrypoint interfold
(or
entrypoint
in Compose) and keep the same volumes. The entrypoint
finds the state at
/home/ciphernode/.config/interfold/.interfold
and keeps using it.
The node refuses to start when the container has less than 17 GiB of memory. On Docker Desktop,
increase the memory of the Docker virtual machine. See
Requirements
.
Check the configuration
Contract addresses change when the protocol is deployed again. A node that points at an old address
syncs nothing and reports no error. Before the first start, and after each deployment notice,
compare your configuration with the published deployment manifest:
interfold
config
check
The command downloads
manifest.json
from the latest GitHub release and compares each chain entry.
Example output for a current Sepolia entry:
Deployment manifest: release v0.19.0-test.3
sepolia: up to date
note sepolia is a mock deployment - proofs are accepted without being verified
Example output for a stale entry:
sepolia:
STALE interfold: config has 0xc5DD9418…, published is 0xBD5B6D1a…
warn ciphernode_registry: deploy_block 11855915, published is 11873232
note sepolia is a mock deployment - proofs are accepted without being verified
Line
Meaning
Fails the check
STALE
A contract address or the
chain_id
does not match the manifest.
Yes
warn
A
deploy_block
does not match the manifest.
No
note
A published contract is not configured, or the network uses mocks.
No
The command exits with a non-zero status when a line is
STALE
. You can use it as a gate before a
restart in a process manager or a CI job. Use
--chain <name>
to check one chain. Use
--manifest-url <url>
to check against a specific manifest file.
Watch the node
The
-v
flag sets the log level. The flags are global, so they work with every command.
Flag
Level
Output
(none)
WARN
Warnings and errors only
-v
INFO
Normal operation
-vv
DEBUG
Detailed debug output
-vvv
TRACE
Full trace
-q
ERROR
Errors only
Logs at
-vv
and higher can contain the endpoint URL. If the URL contains an API key, remove it
before you share logs.
These events show the progress of an E3 in the node log:
Event
Meaning
E3Requested
The node saw a new E3 request.
TicketGenerated
The node calculated its best sortition ticket for the E3.
CiphernodeSelected
The node is a member of the committee.
KeyshareCreated
The node made its key share.
PublicKeyAggregated
The committee public key is ready to publish.
CommitteePublished
The co프로젝트로 돌아가기