bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 45쪽 중 23쪽
nd owner
Burns tickets and unbonds FOLD without a deregistration.
ciphernode deregister [--operator <a>]
Bond owner or operator key
Deregisters the operator and queues all collateral.
ciphernode status [--operator <a>]
Any
Prints the on-chain status.
Activate and deactivate
activate
sends
refreshOperatorStatus
for a registered operator. The contract recomputes the
active status from the registration, the release acknowledgment, bans, the bond and the tickets. Use
it after a requirement changed or after the release was acknowledged from another process.
activate
does not register: for an operator that is not registered it stops and points to
register
. To register an operator again after a full exit, use
register
.
deactivate
needs
--tickets
,
--bond
, or both. It calls
removeTicketBalanceFor
for the ticket
amount and
unbondCiphernodeFor
for the bond amount.
--tickets
is a tFOLD amount, not a ticket
count. The operator stays registered. For a full exit, use
deregister
, as shown on
Exits, Rewards & Slashing
.
interfold
--config
/path/to/owner.yaml
ciphernode
deactivate
\
--operator
0
xOPERATOR
--tickets
1000
--bond
32000
⚠️
deactivate
,
unbond
,
tickets burn
, and
deregister
start the exit delay (30 days on
mainnet). The collateral cannot be claimed before the delay ends. It stays slashable while it is
queued. A position with an open slash proposal cannot unbond, burn, or deregister until the
proposal is resolved (
OperatorUnderSlash
).
Change the bond owner
The current bond owner proposes a new owner. The new owner then accepts:
interfold
--config
/path/to/current-owner.yaml
ciphernode
propose-bond-owner
\
--operator
0
xOPERATOR
--new-owner
0
xNEW_OWNER
interfold
--config
/path/to/new-owner.yaml
ciphernode
accept-bond-owner
\
--operator
0
xOPERATOR
The acceptance moves the ownership of the active and pending FOLD of the position to the new owner
in one transaction. The FOLD stays in the
BondingRegistry
. The operator key does not take part.
The acceptance reverts with
BondOwnerTransferViolatesLock
when the move leaves the old owner with
less wallet-plus-bonded FOLD than its locked FOLD balance. A change of owner starts the
admission cooldown
again.
Activation rules
The
BondingRegistry
marks an operator active only when all of these conditions are true:
The operator is registered.
No authorized slashing manager has banned the operator.
The bond is at least
ceil(requiredCiphernodeBond × ciphernodeBondActiveBps / 10,000)
.
floor(ticket balance / ticketPrice)
is at least
minTicketBalance
.
The acknowledged node release matches the required protocol version, and its node generation is at
least the required generation (
isNodeReleaseReady
).
ciphernodeBondActiveBps
is 8,000 (80%) after initialization. On mainnet, an operator therefore
stays active with at least 25,600 FOLD.
Registration and active status use different bond thresholds.
registerOperatorFor
needs the full
requiredCiphernodeBond
.
isCiphernodeBonded
tests only the 80% floor. An operator between the two
reads as bonded, but registration reverts with
NotCiphernodeBonded()
. To test registration,
compare
getCiphernodeBond(operator)
with
requiredCiphernodeBond()
.
Refresh a cached status
Governance can change
ticketPrice
,
requiredCiphernodeBond
,
ciphernodeBondActiveBps
, and
minTicketBalance
. Each change makes every cached status read as inactive until a refresh. Anyone
can refresh a registered operator:
cast
send
"$BONDING"
"refreshOperatorStatus(address)"
0
xOPERATOR
\
--rpc-url
"$RPC"
--interactive
--interactive
makes
cast
ask for the private key of any wallet that can pay the gas.
The call reverts with
NotRegistered()
for an operator that is not registered.
refreshOperatorStatuses(address[])
refreshes a batch, and it reverts when one operator in the list
is not registered.
ciphernode activate
refreshes one operator; the CLI has no command for a batch.
A node start also refreshes a registered operator that is not active, because its release
acknowledgment calls
refreshOperatorStatus
.
Committee limits for each bond owner
Sortition counts bond owners, not operator keys. For each new E3 request:
A committee takes at most one operator from each bond owner. The owner is the owner at the
timestamp before the request (
bondOwnerAt(operator, requestBlock - 1)
). When two operators of
one owner submit tickets, the better score replaces the other.
The request reverts with
InsufficientBondOwners
when the counted active bond owners are fewer
than the committee size N.
Extra operator keys under one bond owner therefore do not give more committee seats in one E3.
Tickets & Sortition
explains the scores.
Admission cooldown
The
BondingRegistry
owner can set an admission policy with
setAdmissionPolicy(cooldownEnabled, cooldownDuration, admissionsPaused)
. When the cooldown is on,
a new registration or a bond owner change must wait
cooldownDuration
seconds before the position
counts for new committees. Funding tickets later does not restart the wait. When admissions are
paused, positions that were not eligible before the pause cannot enter. An unset policy has no
cooldown.
Read the current policy:
cast
call
"$BONDING"
\
"admissionPolicyAt(uint256)((bool,bool,uint48,uint48,bool,uint48))"
"$(
date
+%s
)"
\
--rpc-url
"$RPC"
The first three values are
cooldownEnabled
,
admissionsPaused
, and
cooldownDuration
. On 25
September 2026, mainnet returned
(true, false, 259200, 0, false, 0)
: a cooldown of 3 days.
Economic parameters
The values below are from the mainnet deployment configuration
(
packages/interfold-contracts/deploy/protocol/mainnet-protocol.config.json
). On 25 September 2026,
the on-chain values were the same. Governance can change them, so read them on-chain before you
deposit. Sepolia uses the same values, except for
ticketPrice
and
requiredCiphernodeBond
. The
Sepolia
ticketPrice
is 1 USDC (1,000,000 base units), and the Sepolia
requiredCiphernodeBond
is
100 FOLD. The Sepolia ticket collateral is
MockUSDC
.
Parameter
Mainnet value
Meaning
requiredCiphernodeBond
32,000 FOLD
FOLD needed to register.
ciphernodeBondActiveBps
8,000 (80%)
Share of the required bond needed to stay active.
ticketPrice
1,000 sUSDS shares
Collateral for one ticket.
minTicketBalance
1 ticket
Tickets needed to be active.
exitDelay
2,592,000 s (30 days)
Wait before a queued exit can be claimed.
sortitionSubmissionWindow
600 s (on
CiphernodeRegistry
)
Time for nodes to submit tickets for one E3.
The contract limits
exitDelay
to between 1 day and 90 days. Read the values with
cast
:
cast
call
"$BONDING"
"requiredCiphernodeBond()(uint256)"
--rpc-url
"$RPC"
cast
call
"$BONDING"
"ciphernodeBondActiveBps()(uint256)"
--rpc-url
"$RPC"
cast
call
"$BONDING"
"ticketPrice()(uint256)"
--rpc-url
"$RPC"
cast
call
"$BONDING"
"minTicketBalance()(uint256)"
--rpc-url
"$RPC"
cast
call
"$BONDING"
"exitDelay()(uint64)"
--rpc-url
"$RPC"
requiredCiphernodeBond
is in token base units (18 decimals).
ticketPrice
is in base units of the
ticket collateral (18 decimals on mainnet, 6 decimals for USDC on Sepolia).
Good practice
Keep the bond above the 80% floor with a margin, so that a slash does not make the operator
inactive.
Keep more than
minTicketBalance
tickets, so that a ticket slash does not make the operator
inactive.
Watch for
OperatorActivationChanged
events for your operator. The registry emits one each time
the active status changes.
Watch for
SlashProposed
events for your operator, and for
isActive
changes to
false
.
Troubleshooting
Problem
Cause
Action
NotBondOwner
on a position call
The signer is not
bondOwnerOf(operator)
, or no owner is set.
Run
set-bond-owner
first, or use the bond owner configuration.
NotCiphernodeBonded
on registration
The bond is below the full
requiredCiphernodeBond
.
Bond more FOLD.
NotRegistered
when you buy tickets
The operator is not registered.
Register first.
AlreadyRegistered
or
CiphernodeBanned
The operator is registered already, or banned.
Check
isRegistered(operator)
and the slashing status.
ExitInProgress
A deregistration is still in its exit delay.
Wait until
exitDelay
ends.
Active: false
with bond and tickets
The release is not acknowledged, the bond is below 80%, or the status is stale.
Start or upgrade the node, add collateral, or refresh the status.
The node is never selected
The node missed events, or it registered after the E3 request.
Test the
RPC endpoint
. Eligibility uses the state before each request.
Next steps
Tickets & Sortition
How the node scores its tickets and how the committee is selected.
Operate
Manage Tickets
Buy and burn tickets, and keep the balance above the minimum.
Operate
Exits, Rewards & Slashing
Deregister, claim exits, and respond to a slash proposal.
Maintain
RPC Endpoints
Tickets and Sortition
## /operate/tickets-and-sortition
Run a Ciphernode
Tickets and Sortition
Tickets and Sortition
This page explains tickets from the operator view. It covers what a ticket is, what a ticket costs
on each network, and how the ticket balance of a ciphernode feeds committee selection. It is for
operators who registered a ciphernode. At the end, you know which values to watch, and which events
and log lines show each selection step.
To buy, check, or redeem tickets, read
Manage tickets
. For the scoring
algorithm in detail, read
Sortition internals
.
Tokens and collateral
A ciphernode position uses two kinds of collateral. The bond owner supplies both. The operator
address is the identity that the registry, sortition, and slashing use.
Asset
Contract
Role
Transferable
FOLD
InterfoldToken
Ciphernode bond. Registration needs the full
requiredCiphernodeBond
.
Yes. See
FOLD FAQ
.
tFOLD
InterfoldTicketToken
Ticket balance of the operator. The ticket token mints 1 tFOLD unit for each deposited unit of ticket collateral.
No
Ticket collateral
The
underlying()
token of
InterfoldTicketToken
The asset that the bond owner deposits. The ticket token holds it until an exit claim pays it to the bond owner.
Yes
Fee token
Configured on the Interfold contract
Requesters pay E3 fees in this token. Committee rewards for an E3 are paid in the fee token of that E3.
Yes
tFOLD is non-transferable. Transfers and approvals revert. Delegation is locked to the operator
itself, and the first deposit delegates the balance to the operator automatically. The
non-transferable balance keeps each ticket attributable to one operator, so a slash cannot miss it.
Values per network
The table shows the values in the deployment configuration of each network. Governance can change
each value, so always read the live values before you fund a position (see
Parameters
).
Value
Mainnet
Sepolia
Ticket collateral
sUSDS shares (18 decimals)
MockUSDC
, symbol
USDC
(6 decimals)
ticketPrice
1,000 sUSDS shares
1 USDC
minTicketBalance
1 ticket
1 ticket
requiredCiphernodeBond
32,000 FOLD
100 FOLD
exitDelay
2,592,000 s (30 days)
2,592,000 s (30 days)
sortitionSubmissionWindow
600 s
180 s
randomnessRequestTimeout
3,600 s
936 s
On mainnet, a fixed
ticketPrice
is a fixed number of sUSDS shares. It is not a fixed USDS amount.
How a ticket balance becomes a committee seat
Selection runs once for each E3. The request fixes the ticket balances, the seed arrives later, and
each ciphernode submits its own best ticket.
Deposit
The bond owner deposits collateral. The operator receives tFOLD.
Snapshot
The request fixes balances and eligibility at requestBlock - 1.
Seed
A verified VRF response gives the seed and opens the submission window.
Submit
Each eligible node submits its lowest-scoring ticket.
Finalize
After the deadline, the best N bond owners form the committee.
1. Ticket count
The number of tickets comes from the tFOLD balance:
availableTickets = floor(tFOLD balance / ticketPrice)
A deposit amount is an amount of collateral, not a number of tickets. A remainder below one
ticketPrice
does not count. For example, a mainnet deposit of 2,500 sUSDS shares gives 2 tickets.
The other 500 shares count only after a later deposit completes a third ticket.
2. The request-time snapshot
When a requester asks for an E3, the registry stores
requestBlock
. The field name is kept for
compatibility, but the value is the request timestamp (an EIP-6372 timepoint). Sortition reads the
tFOLD balance, the eligibility, and the bond owner of each operator at
requestBlock - 1
. The
ticket price for the E3 is also frozen at the request.
Tickets that you add at the request timestamp or later do not count for that E3. They count for
later requests. A deposit in the same block as the request does not count, because that block has
the request timestamp.
3. The seed and the submission window
After the request, the registry asks the randomness provider for a verified VRF response
(
CommitteeRandomnessRequested
). The registry waits at most
randomnessRequestTimeout
for a usable
response. When the response arrives (
RandomnessFulfilled
), the committee deadline is the
fulfillment time plus
sortitionSubmissionWindow
. If no usable response arrives in time, the
committee cannot form and the E3 fails. The failure path then emits
RandomnessCircuitBreakerTripped
.
4. Scores and submission
Each ticket number from 1 to
availableTickets
has a score:
score = keccak256(abi.encodePacked(node, ticketNumber, e3Id, seed))
The ciphernode computes its scores off-chain and submits its lowest score with
submitTicket(e3Id, ticketNumber)
. The node sends this transaction automatically. The contract
recomputes the score and rejects the ticket in these conditions:
Error
Condition
CommitteeDeadlineReached
The committee deadline passed.
NodeAlreadySubmitted
The operator already submitted a ticket for this E3.
NodeNotEligible
The operator is not active now, was not eligible at the snapshot, or had no tickets.
InvalidTicketNumber
The ticket number is 0 or larger than the ticket count at the snapshot.
A successful submission emits
TicketSubmitted(e3Id, node, ticketId, score)
.
5. One seat for each bond owner
A new request emits
CommitteeBondOwnerCapEnabled
. For such a request, the contract keeps only the
best submission of each bond owner, and then keeps the best
N
bond owners. The owner comes from
bondOwnerAt(operator, requestBlock - 1)
. Several machines under one bond owner therefore compete
for one seat. A bond-owner transfer after the snapshot does not give the old owner another seat.
This cap is based on addresses. It does not prove that two bond owners are independent people.
More tickets give more draws, so a better best score is more likely. The chance of a seat increases
with the ticket count, but it is not proportional to it. Each bond owner gets at most one seat, and
the committee has a fixed number of seats.
6. Local capacity
A ciphernode treats each ticket as one concurrent E3. The node volunteers for a new E3 only while
its number of active E3s is less than its ticket count at the snapshot. A node with one ticket does
not submit for a second E3 while its first E3 is active. The contract still accepts any ticket
number in the snapshot range, because this rule is local to the node.
Before the node submits a ticket, it stores a capacity reservation for that E3. The node releases
the reservation in three cases: the ticket transaction fails, the node is not in the final
committee, or the E3 reaches a terminal stage. The node rebuilds its reservations from stored state
after a restart.
The node also ranks the
N
plus a buffer of distinct bond owners by their best tickets. Each
operator of a ranked bond owner can submit, so a backup machine can take the place of an offline
machine of the same owner. A submission does not guarantee a seat or a reward.
7. Finalization
After the deadline, any account can call
finalizeCommittee(e3Id)
. The ciphernodes that submitted
tickets send this call automatically, at staggered times. The result depends on the number of
accepted bond owners:
At least
N
: the registry emits
SortitionCommitteeFinalized(e3Id, committee, scores)
. The
selected ciphernodes start the DKG.
Fewer than
N
: the registry emits
CommitteeFormationFailed(e3Id, nodesSubmitted, thresholdRequired)
, and the E3 fails.
Committee sizes
The committee size of the E3 sets
N
. Each seat needs a different eligible bond owner.
3
minimum
N = 3, T = 1, H = 2
9
micro
N = 9, T = 4, H = 5
19
small
N = 19, T = 9, H = 14
Size
Committee size N
Threshold T
DKG roster H
minimum
3
1
2
micro
9
4
5
small
19
9
14
Decryption needs T + 1 valid shares. A
small
E3 needs 19 distinct eligible bond owners to form its
committee, although its DKG roster has 14 members.
When a ciphernode is active
BondingRegistry.isActive(operator)
is true only when all of these conditions are true:
The operator is registered.
No authorized slashing manager banned the operator.
The ciphernode bond is at least
requiredCiphernodeBond × ciphernodeBondActiveBps / 10000
,
rounded up. The default
ciphernodeBondActiveBps
is 8000 (80 %). On mainnet, the operator stays
active with 25,600 FOLD, but registration needs the full 32,000 FOLD.
availableTickets
is at least
minTicketBalance
.
The operator acknowledged a release that meets the on-chain release policy. See
Upgrades
.
The operator status was refreshed under the current eligibility policy.
For sortition, the operator must also be eligible at the snapshot (
eligibilityAt
). This check adds
the admission policy. Governance can set a cooldown that starts at registration and at each change
of bond owner. Governance can also pause admissions. A pause keeps new, waiting, and owner-changed
positions out of new committees.
After a governance change
A change to
ticketPrice
,
requiredCiphernodeBond
,
ciphernodeBondActiveBps
, or
minTicketBalance
advances
eligibilityConfigurationVersion
. After the change, every operator
counts as inactive until its status is refreshed. Any account can refresh a status with
refreshOperatorStatus(operator)
or
refreshOperatorStatuses(operators)
. A ciphernode also
refreshes its own status when it acknowledges its release at startup.
An expired cooldown does not send a transaction. The status of a waiting position changes only
when someone calls
refreshOperatorStatus
for it.
Parameters
Parameter
Contract
How to read it
ticketPrice
BondingRegistry
interfold ciphernode status
, the
Requirements
line
minTicketBalance
BondingRegistry
interfold ciphernode status
, the
Requirements
line
requiredCiphernodeBond
BondingRegistry
interfold ciphernode status
, the
Requirements
line
ciphernodeBondActiveBps
BondingRegistry
cast call <BondingRegistry> "ciphernodeBondActiveBps()(uint256)"
exitDelay
BondingRegistry
cast call <BondingRegistry> "exitDelay()(uint64)"
sortitionSubmissionWindow
CiphernodeRegistry
cast call <CiphernodeRegistry> "sortitionSubmissionWindow()(uint256)"
randomnessRequestTimeout
CiphernodeRegistry
cast call <CiphernodeRegistry> "randomnessRequestTimeout()(uint256)"
Add
--rpc-url <RPC_URL>
to each
cast
command. The contract addresses are in
Contracts and addresses
.
Monitor selection
Events
Event
Contract
Meaning
TicketBalanceUpdated
BondingRegistry
The tFOLD balance changed.
reason
is
DEPOSIT
,
WITHDRAW
, or a slash reason.
OperatorActivationChanged
BondingRegistry
The active status of the operator changed.
ConfigurationUpdated
BondingRegistry
Governance changed a parameter.
EligibilityConfigurationVersionUpdated
BondingRegistry
The eligibility rules changed. Each operator is inactive until a status refresh under the new rules (
refreshOperatorStatus
).
BondingAssetConfigUpdated
BondingRegistry
Governance changed the ticket or bond token, the ticket price, or the required bond.
CommitteeRandomnessRequested
CiphernodeRegistry
The registry requested the VRF seed for an E3.
RandomnessFu프로젝트로 돌아가기