Skip to main content

Configuration

Hashi keeps its onchain configuration in two key-value stores on the Hashi object, distinguished by when a change takes effect:

  • Instant config (config): values apply the moment the proposal that changes them executes. Deposit and withdrawal minimums, the confirmation threshold, the pause flag, and the guardian settings live here.
  • Epoch config (epoch_config): the whole store is copied onto the committee formed at each reconfiguration, and nodes read these values from their committee's pinned copy. A change lands in the next committee formed after the proposal executes and never alters the active committee. The MPC parameters live here.

Existing parameters are tuned with UpdateConfig (instant) and UpdateEpochConfig (epoch). Both require 2/3 of committee weight, accept only keys that already exist in their store, and reject a change of value type. New keys are introduced with AddConfig, which names the store and is insert-only (see Adding a parameter and Governance Actions).

Parameters​

bitcoin_deposit_minimum​

Typeu64
Default30000
Unitsatoshis
Floor546 (dust relay minimum)

The minimum deposit amount in satoshis. Deposits below this value are rejected onchain. The effective value is always at least 546 sats to prevent creating unspendable UTXOs.

bitcoin_deposit_time_delay_ms​

Typeu64
Default600000 (10 minutes)
Unitmilliseconds

The minimum time that must elapse between a deposit being approved by the committee (approve_deposit) and being confirmed (confirm_deposit). Provides a window in which a fraudulent or erroneous approval can be detected and the service paused before any hBTC is minted. See the deposit flow for how this delay fits into the overall process. hashi launch --bitcoin-deposit-time-delay-ms can set a different starting value; on Sui mainnet it refuses one below the default.

bitcoin_withdrawal_minimum​

Typeu64
Default30000
Unitsatoshis
Floor547 (dust relay minimum + 1)

The minimum total withdrawal amount in satoshis. The worst_case_network_fee is derived as bitcoin_withdrawal_minimum - 546, which caps the per-user miner fee deduction. The floor ensures the worst-case network fee is always at least 1 sat.

bitcoin_confirmation_threshold​

Typeu64
Default6
Unitblocks

The number of Bitcoin block confirmations nodes require before approving a deposit (at least 100 for a coinbase output) and before confirming a withdrawal transaction. Guards against chain reorganizations. hashi launch --bitcoin-confirmation-threshold can set a different starting value; on Sui mainnet it refuses one below the default.

paused​

Typebool
Defaultfalse

When true, new deposit and withdrawal requests are refused and every step that advances a queued request aborts. Requests already in the queue resume processing when the system is unpaused, but users can still cancel withdrawal requests after the cooldown, and deposit requests can still expire. Reconfiguration and governance actions are not affected.

reconfig_hold​

Typebool
Defaultfalse

When true, start_reconfig aborts on chain, so no new committee can form. This is how governance keeps the last committed committee serving after an abort or a missed Sui epoch boundary, for example while the cause of a stall is fixed so the replacement does not stall the same way. Only forming a committee is gated: a reconfiguration already pending still completes or aborts as usual, and deposits and withdrawals are unaffected. Nodes read the flag and do not submit start_reconfig while it is set; they report it as hashi_reconfig_hold. Set and cleared with an UpdateConfig proposal. Clearing it lifts the gate but does not itself start a reconfiguration: nodes submit start_reconfig on a Sui epoch change, on an abort, and at startup, so the replacement waits for the next Sui epoch change unless an operator runs hashi committee start-reconfig.

withdrawal_cancellation_cooldown_ms​

Typeu64
Default3600000 (1 hour)
Unitmilliseconds

The minimum time a withdrawal request must remain in the queue before the user can cancel it. Prevents users from using rapid submit-cancel cycles to interfere with processing.

governance_emergency_pause_threshold_bps​

Typeu64
Default500 (5%)
Unitbasis points of committee voting weight

The vote threshold for an emergency pause proposal. Deliberately low so a small fraction of the committee can quickly halt deposit and withdrawal processing when something looks wrong.

governance_emergency_unpause_threshold_bps​

Typeu64
Default6667 (two thirds)
Unitbasis points of committee voting weight

The vote threshold for the unpause variant of the same proposal. Resuming operation requires a supermajority.

MPC parameters​

The MPC parameters live in the epoch config and are tuned with UpdateEpochConfig. The store is pinned onto each committee at reconfiguration, so a change mid-epoch never affects the active committee; new values take effect when the next committee forms. Each key's range is checked when a proposal is created and again when it executes. The rule that mpc_weight_reduction_allowed_delta stays below mpc_max_faulty_in_basis_points is checked only at execution, on the resulting store, so move both keys in one proposal when one would cross the other. The epoch config also refuses the retired keys mpc_threshold_in_basis_points and mpc_nonce_generation_protocol.

mpc_max_faulty_in_basis_points​

Typeu64
Default3333
Valid range1 to 3333, and above mpc_weight_reduction_allowed_delta
Unitbasis points of committee voting weight

The assumed upper bound on faulty (offline or adversarial) committee weight. MPC protocol parameters are derived under the assumption that at most this fraction of weight misbehaves.

mpc_weight_reduction_allowed_delta​

Typeu64
Default800
Valid range0 up to, but not including, mpc_max_faulty_in_basis_points
Unitbasis points

Committee voting weights are proportionally reduced (compressed) before the MPC protocol runs, because each unit of weight corresponds to a share and protocol cost scales with total shares. Reduction necessarily distorts relative voting power; this parameter bounds the distortion, allowing the effective fault-tolerance assumption to shift by at most this many basis points relative to the unreduced committee. 0 still allows a reduction, but only one with no liveness slack: any set of members that could reach a threshold before reduction still can. Members' relative weights can still change.

mpc_nonce_accumulation_window_ms​

Typeu64
Default2000
Valid range0 to 10000
Unitmilliseconds

How long nodes keep collecting nonce dealer certificates after the certified dealers reach the W − f weight floor.

Read-only or genesis-only parameters​

bitcoin_chain_id​

Typeaddress

The 32-byte Bitcoin chain identifier as defined by BIP-122 (the genesis block hash). Set at launch (finish_publish) and not updatable through the UpdateConfig proposal.

guardian_btc_public_key​

Typebytes

The guardian's x-only BTC public key (32 bytes), pinned at launch (finish_publish). Every 2-of-2 deposit address is derived against it, so it is write-once and not updatable through the UpdateConfig proposal. The guardian's URLs remain governable: guardian_url, its public endpoint, and guardian_node_url, the endpoint nodes call. A node resolves guardian_node_url once, so it picks up a change only after a restart.

Derived values​

Several values are computed from the configurable parameters above rather than stored directly.

deposit_minimum​

deposit_minimum = max(bitcoin_deposit_minimum, 546)

The minimum deposit amount. With defaults: 30,000 sats.

worst_case_network_fee​

worst_case_network_fee = max(bitcoin_withdrawal_minimum, 547) - 546

The largest share of a withdrawal transaction's miner fee that each request in it may pay, derived from bitcoin_withdrawal_minimum minus the dust threshold. With defaults: 30,000 - 546 = 29,454 sats per request.

Adding a parameter without a package upgrade​

The Move package reads only the keys documented above; any other key is opaque to it and is consumed by the node software. To make a node-side setting governable, pass an AddConfig proposal naming the key, its initial value (which fixes the key's type for later updates), and the store: the epoch config when every node must agree on the value for the whole epoch, the instant config otherwise. A node reads an absent key as its built-in default, so the key can be added before or after the node release that consumes it, except as noted below.

mpc_rotation_messages_bcs​

Typebool
Defaultfalse
Storeepoch config

When true, nodes exchange rotation messages as one BCS value instead of a protobuf map. Add it only after every node that can join the next committee runs a release that supports it, and keep every node on such a release after.