bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 45쪽 중 26쪽
dappnode-imag
e
>
\
node
reset-data
--name
_default
--yes
--config
/data/config.yaml
The one-off container uses the existing configuration and identity. It does not run the package
entrypoint or start a node. Do not add
--allow-active-e3s
if the reset refuses.
Run both identity commands again. Compare their results with the values recorded before the reset.
Restart the DAppNode package only after the identity checks pass and the contract cutover is
complete.
The command reads the encrypted operator key and libp2p keypair, and writes them to a backup file.
It removes the key/value store and every event-log file (
log.0
,
log.<chain_id>
, and more). Then
it writes the identity back and reads it again to confirm. It does not decrypt the keys, so it does
not need the password.
The output lists each removed path and the backup file, and ends with this line:
The operator key and libp2p identity were preserved. Verify with: interfold wallet get --name <node>
If the command refuses
The command deleted nothing. Do not add
--allow-active-e3s
before you do these checks.
The refusal names each E3 as
<chain_id>:<e3_id>
. The same refusal also lists each chain on which
the node holds slash reports that it has not submitted. Read each listed E3 on chain, with an RPC
endpoint of that chain. Get the Interfold address from
Contracts and addresses
.
cast
call
<
Interfol
d
>
"getE3Stage(uint256)(uint8)"
<
e3_i
d
>
--rpc-url
<
RPC_UR
L
>
cast
call
<
Interfol
d
>
"getE3LifecycleDeadline(uint256)(uint256)"
<
e3_i
d
>
--rpc-url
<
RPC_UR
L
>
cast
block
latest
--field
timestamp
--rpc-url
<
RPC_UR
L
>
The report deadline of an E3 is its lifecycle deadline plus 86400 seconds (one day). Until then, the
node can submit slash reports for the E3. Only a running node sends its slash reports and its
decryption shares.
Use the first case that applies:
The refusal says that the command
cannot show
that no active E3 needs a key share, or that the
node holds no slash report that it has not submitted. Do not reset the node. Start the node again
with the release that it ran before, and contact the protocol team.
The refusal lists slash reports that the node has not submitted. Start the node again with the
release that it ran before, so that it submits them. Do this procedure again later. If the same
reports stay after the report deadlines of their E3s, contact the protocol team.
A listed E3 has stage
0
, so the chain does not know the E3. Do the same as in case 1.
A listed E3 has stage
1
,
2
,
3
, or
4
, so the E3 is active. Start the node again with the
release that it ran before. Do this procedure again when the E3 ends.
A listed E3 has stage
5
or
6
, and the block time is not larger than its report deadline. Do
the same as in case 4, and try again after the report deadline.
The refusal lists at least one E3 and no slash report, and no case above applies. Run the command
again with
--allow-active-e3s
.
To start the node again with the release that it ran before, install that release again. For
example, run
interfoldup update --version v0.18.0
for a node that ran v0.18.0. For Docker, start
the stopped container with
docker start <container>
. This does not work for a container that
starts through the entrypoint of an image earlier than v0.19.0, as the "Stop the node" step says.
Verify the identity
Run
interfold wallet get --name <node>
and
interfold net get-peer-id --name <node>
.
The address and the peer ID must be equal to the values that you recorded.
Validate and start
Run
interfold node validate --name <node>
. The report shows
empty store will be initialized
,
because only the identity remains. Then start the node.
The node writes the current schema marker and syncs again from the
deploy_block
of each contract.
Use the same
--name
as the node. Without
--name
, the CLI uses the
_default
node profile. For a
node that runs under a named profile, the command then works on the
_default
profile instead, and
interfold wallet get
reports
No wallet has been set.
The backup file is
identity-backup-<node>-<unix-time>.json
, next to the
db
directory. The
command keeps this file after a successful reset. It contains the encrypted operator key, so keep it
as safe as the data directory, or delete it after the node runs correctly.
The full sync reads the contract logs from each
deploy_block
, so the RPC endpoint must serve the
complete log history. See
RPC endpoints
. The node exits when the startup
takes longer than
node.startup_timeout_secs
(default 1800 s).
Do not use these commands for a reset
Do not delete the data directory by hand. The operator key and the libp2p keypair are in it.
Do not use
interfold nodes purge
or
interfold purge-all
. Both delete
.interfold/data
and
.interfold/config
in the current directory, which includes the key file.
Do not change the stored schema marker.
Do not clear only the key/value store. The node then halts with
On-disk state has no schema marker
.
interfold node validate --repair
is a different tool. It can repair an event-log tail that was
provably not committed, and rebuild a stale derived sortition projection. It does not repair a
corrupt indexed record or an unsupported schema.
Startup and validation check the storage schema before they read or repair event logs. An older
schema reports the schema mismatch and reset command, even when its event format cannot decode.
Validation skips the event and snapshot checks for that store, including with
--repair
.
Configuration for protocol version 4
Each enabled chain that configures the
interfold
contract needs a
data_availability
block. A
configuration from
interfold ciphernode setup
of an earlier release does not have this block, so
add it before the first start. The node reads proof-backed ciphertext outputs from the
data-availability layer. Without the block, the node exits after it accepts the release:
chain 'mainnet' has Interfold enabled but no data_availability reader; this protocol release must retrieve proof-backed ciphertext outputs
Add the block inside the chain entry:
chains
:
-
name
:
mainnet
chain_id
:
1
data_availability
:
mode
:
avail
rpc_url
:
'https://avail-rpc.publicnode.com/'
The DAppNode package uses
https://avail-rpc.publicnode.com/
for chain 1 and
https://turing-rpc.avail.so/rpc
for Sepolia. The
mock_http
mode is for local tests. Make the
change while the node is stopped. See
Data availability
for the keys.
Next steps
Migrate a node
Move a node to a new server and keep its operator address and peer ID.
Maintain
Node dashboard
Watch the active E3 count and the release channel before you upgrade.
Monitor
Troubleshooting
Startup errors, schema messages, and connectivity checks.
Fix
Node Dashboard
Migrate a Node
## /operate/migrating
Run a Ciphernode
Migrate a Node
Migrate a Node
This page moves a ciphernode to a different server without a change of identity. It is for operators
who replace a host. At the end, the new server runs the node with the same operator address, peer
ID, and event history. The old server is stopped.
The migration needs no on-chain transaction. The bond, the tickets, and the registration belong to
the operator address, and the address does not change. To install a new release, read
Upgrades
. If you do both, migrate first, verify the identity, and then upgrade.
What identifies a node
A ciphernode keeps its identity and its state in two directories. By default, both directories are
in a
.interfold
directory next to the configuration file.
interfold.config.yaml
.interfold
config
<node>
key
data
<node>
db
log.0
log.<chain_id>
ciphernode.jsonl
interfold.lock
noir
<node>
is the node name. The default node, which the
node
key configures, is
_default
.
Item
Path
Contents
If it is missing
Key file
.interfold/config/<node>/key
The encryption password. The node derives the encryption key from it.
The node cannot decrypt its keys.
interfold password set
with the same password makes the file again.
Key/value store
.interfold/data/<node>/db
The encrypted operator key, the encrypted libp2p keypair, and protocol state.
The identity is lost, unless you have another copy of the operator private key.
Event log
.interfold/data/<node>/log.<n>
The durable events:
log.0
and one file for each chain ID.
The key/value store and the event log no longer match.
Configuration file
interfold.config.yaml
Chains, contract addresses, peers, and ports.
The node cannot start. You can write the file again.
The other files are not part of the identity:
ciphernode.jsonl
is the operational log. The node writes it but never reads it.
interfold.lock
is the process lock. The operating system releases it when the process exits.
.interfold/noir
holds the prover files. At startup, the node downloads them when they are
missing.
The paths change when the configuration sets
config_dir
,
data_dir
,
key_file
,
db_file
, or
log_file
. See
Storage paths
. To see the paths that the
node uses, run
interfold config get key_file
,
interfold config get db_file
, and
interfold config get log_file
with
--name <node>
. The log file path is the base name. The real
event-log files add an index, for example
log.0
.
Why both directories must move together
Both keys are in the key/value store, encrypted with the key from the key file. A copy of only the
data directory fails with
Failed to get metadata for keyfile
. A copy of only the configuration
directory has no keys to decrypt.
The libp2p keypair comes from the operator private key.
interfold wallet set
derives both keys
from the same private key, so the peer ID follows the operator key.
Before you start
Know the encryption password.
The key file contains it. Without the password, a lost key file
cannot be made again.
Know how the operator key was made.
No CLI command exports a private key. If the node
generated its own key (
autowallet
), the archive of this procedure is the only copy of the
identity.
Install the same release on the new server.
Use
interfold --version
on both servers.
Keep the old data.
Do not delete the data on the old server until the new node runs correctly.
⚠️
Two servers that run the same node at the same time put the position at risk. See
Do not run both
servers
.
Move the node
Wait for active work to finish
Make sure that the node has no active E3. The
Updates
view of the
local dashboard
shows the number of active E3s.
Stop the old node
Stop the process with the tool that supervises it, for example
systemctl stop <unit>
,
pm2 stop <node>
, or
docker stop <container>
.
Do not copy the key/value store while a node writes to it. A copy from a running node can open
without an error and still be inconsistent.
Confirm that the node is stopped
Run
interfold node validate --name <node>
.
The command takes the same process lock as the node. While a node runs, it fails with
another interfold instance is already running for node '<node>'
.
Record the identity
Run these commands and write down the results:
interfold
wallet
get
--name
<
nod
e
>
interfold
net
get-peer-id
--name
<
nod
e
>
interfold
node
validate
--name
<
nod
e
>
The validation report includes a line such as
read 1234 event(s) across 2 aggregate(s)
. Use the
event count as a second check after the move.
Make an archive
Go to the directory that contains
interfold.config.yaml
. Then run:
tar
czpf
node-migration.tgz
.interfold/config
.interfold/data
interfold.config.yaml
The
p
flag keeps the file permissions. The key file must stay readable only by its owner.
Transfer the archive
Copy the archive to the new server over a channel that you trust, for example
scp
.
The archive contains the encrypted operator key and the password that decrypts it.
Unpack the archive on the new server
Install the same Interfold release. Then unpack the archive in the node directory:
tar
xzpf
node-migration.tgz
Keep
interfold.config.yaml
next to the
.interfold
directory, so that the node finds its
directories.
Verify before you start
Run the same commands on the new server:
interfold
wallet
get
--name
<
nod
e
>
interfold
net
get-peer-id
--name
<
nod
e
>
interfold
node
validate
--name
<
nod
e
>
The address, the peer ID, and the event count must be equal to the values that you recorded. The
report must end with
VALIDATION PASSED
. Do not start the node if a value is different.
Update the network settings
Open the QUIC port (
quic_port
, UDP) in the firewall of the new server.
If other nodes dial this node by address, update their peer lists. The peer ID stays the same, but a
new IP address or port needs a new multiaddr.
Start the new node
Start the node the same way as on the old server.
Run
interfold ciphernode status
and make sure that
Active
is
true
.
Decommission the old server
Keep the old node stopped. Delete its data only after the new node works correctly.
Do not run both servers
⚠️
Two processes with one operator key sign conflicting protocol messages and transactions for the
same operator. The process lock protects only one data directory on one host, so it cannot stop a
second server. Peers can reject the conflicting messages or accuse the operator, and the E3 can
fail. A confirmed accusation can slash the bond and the tickets of the position when the slash
policy is enabled.
Keep the old node stopped from the first step of the procedure until you decommission it. Make sure
that no supervisor, for example a service manager or a container restart policy, starts it again.
Docker and DAppNode
For a Docker installation, the
.interfold
directory is next to the configuration file in the
mounted volume. A node that started from an image before 0.19.0 without a volume at
/home/ciphernode/.config/interfold
keeps its state inside the container instead. Copy that state
onto the volume first, as
Move state from an earlier image
describes,
because removing the container deletes it. Then stop the container and copy the complete volume. The
Docker entrypoint sets the password and the operator key from the credentials secret when the volume
has none. Use the same credentials secret on the new server.
The DAppNode package keeps its configuration and its
.interfold
directory in the
/data
volume.
The package declares a backup named
ciphernode-data
for this volume. Use the same credentials file
on the new server.
Migrate and upgrade together
A release that changes the storage schema needs a state reset, which deletes the event history that
a migration keeps. Do the steps in this order:
Migrate the node with the procedure on this page.
Verify the address and the peer ID on the new server.
Follow the
upgrade procedure
, including
Reset node state
if the release needs it.
The verification before the reset proves that the identity arrived complete.
interfold node reset-data
keeps the identity, so the node keeps its bond and peer ID. The node
then syncs again from the
deploy_block
of each contract.
Next steps
Upgrades
Install a new release and reset the state when a release needs it.
Maintain
Troubleshooting
Check peers and connectivity after the node starts on the new server.
Fix
Running a ciphernode
Installation methods, configuration, and data directories.
Set up
Upgrades
Exits, Rewards, and Slashing
## /operate/exits-and-slashing
Run a Ciphernode
Exits, Rewards, and Slashing
Exits, Rewards, and Slashing
This page covers the end of the work cycle of a ciphernode: rewards, slashing, and the exit queue.
It is for operators and bond owners. At the end, you can claim rewards, read and appeal a slash
proposal, and leave the network with the collateral returned to the bond owner.
Rewards
A committee earns its reward when its E3 completes. When the committee publishes the plaintext
output, the Interfold contract settles the fee of the E3:
A protocol share (
protocolShareBps
, fixed at the request) goes to the protocol treasury.
The rest is divided equally between the active committee members. The remainder of the division
goes to one member.
The contract emits
RewardsDistributed(e3Id, nodes, amounts)
and one
RewardCredited(e3Id, account, token, amount)
for each member.
The reward is paid in the fee token of the E3. The recipient is the bond owner of the operator at
committee finalization, or the operator when it had no bond owner. A later change of bond owner does
not move a reward that is already credited.
Rewards are pull payments. The recipient must claim them:
Action
Contract
Call
Caller
Check the pending reward
Interfold contract
pendingReward(e3Id, account)
Any account
Claim one E3
Interfold contract
claimReward(e3Id)
The reward recipient
Claim several E3s
Interfold contract
claimRewards(e3Ids)
The reward recipient
Claim a failed-E3 reward
E3RefundManager
claimHonestNodeReward(e3Id, operator)
The reward recipient
Claim slashed funds
E3RefundManager
claimSlashedFunds(e3Id, token)
The account with a share
The CLI has no reward command. Use a wallet or
cast
, for example:
cast
call
<
Interfol
d
>
"pendingReward(uint256,address)(uint256)"
<
e3I
d
>
0xB
OND_OWNER
\
--rpc-url
<
RPC_UR
L
>
cast
send
<
Interfol
d
>
"claimReward(uint256)"
<
e3I
d
>
--rpc-url
<
RPC_UR
L
>
--account
<
bond-owne
r
>
When a ciphernode fault makes an E3 fail, honest committee members can receive compensation from the
slashed ticket collateral. An open slash proposal that can expel an operator holds the reward share
of that operator for the E3. An executed expulsion forfeits the share.
Keep ETH in the bond owner wallet for claims and exits. Keep ETH in the operator wallet for the
transactions that the node sends, for example ticket submissions and release acknowledgments.
Slashing
The
SlashingManager
contract proposes, appeals, and executes slashes. Each slash reason has a
policy that governance sets. A slash can burn tickets, take FOLD from the ciphernode bond, ban the
operator, and expel the operator from the committee of the E3.
How a slash starts
Lane
Function
Who can call
Evidence
Lane A
proposeSlash(e3Id, operator, proof)
or
proposeSlashByDkgParty(e3Id, partyId, proof)
Any account
Signed votes from committee members that agree the operator sent a bad proof. At least H members (the DKG roster size) must vote.
Lane B
proposeSlashEvidence(e3Id, operator, reason, evidence)
SLASHER_ROLE
only
Evidence for a reason that governance configured. The policy must have an appeal window.
Ciphernodes start Lane A automatically. When a node finds that a committee member sent a proof that
does not verify, it broadcasts an accusation, and the committee votes. When enough members agree,
the voters submit the slash. The voter with the lowest address submits at once. The next two voters
wait 30 s and 60 s as fallbacks.
Nodes ignore local failures against their own address or finalized party ID. For received
accusations, nodes compare the signed accuser and accused addresses to reject self-accusations. The
accusation digest does not include
accused_party_id
, so that field does not decide this check.
Only C3a and C3b accusations can carry a forwarded proof for verification. Other proof types require
local evidence and no forwarded payload before the node votes.
For Lane A, the slash reason is
keccak256(abi.encodePacked(uint256(proofType)))
. The proof types
are the DKG and decryption proofs C0 to C7. If governance disabled the policy for a proof type, the
nodes exclude the member from that E3 only, and no penalty applies. When the agreeing voters saw
different data from the accused operator, the result is equivocation. The nodes do not submit a
slash for equivocation, because the current evidence format cannot prove it.
On mainnet at block 26,057,073 (25 September 2026), no slash policy is set. The
SlashingManager
has emitted no
SlashPolicyUpdated
event, and
getSlashPolicy(reason)
returns a disabled policy
for each proo프로젝트로 돌아가기