bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 6쪽 중 4쪽
stodied objects. When a wallet stakes funds, those
funds are wrapped into an object that the wallet holds. This lowers
the vulnerability surface for theW alrussystem, and it allows users
to build functionality atop those objects. However, this poses an
operational problem, as W alruscan slash staking principal but this
design means that W alrusdoes not actually hold custody of the
principal.
To solve this, W alruskeeps track of any outstanding penalties.
When a user wants to reclaim their WAL tokens, they must provide
the object to the W alrussmart contracts to have those tokens un-
wrapped. At the point of unwrapping, those outstanding penalties
are assessed on the stake.
This leads to two problems. First, W alrusmay face an interim
cash flow problem, especially since penalties are sometimes given
to other participants to offset the harm imposed on them by the
slashed node. Thus, W alrushas two mitigations. The first mit-
igation is that penalties come out of any rewards being paid to
stake, including both by W alrusreclaiming uncollected rewards
and garnishing future reward distributions. The second mitigation
is that outstanding penalties accrue with interest over time, until
8One potential extension for W alrusis to impose an extra epoch delay for a node
withdrawing its own capital. This prevents outcomes where the node unstakes its own
capital in the last few seconds before an cutoff, and thus withdraws all their capital a
full epoch before its delegators, presumably in anticipation of adversarial behavior
during that epoch. This mirrors the extra epoch delay for nodes setting commission
rates.
10
W alrus: An Efficient Decentralized Storage Network
Figure 5: Timeline of W alrusOperations
Epoch𝐸 Epoch𝐸+ 1
Epoch Change Epoch Duration Epoch Change Epoch Duration
Staking and Voting for𝐸+ 1 Staking and Voting for𝐸+ 2
𝑐 𝑐
the wallet chooses to settle either by sending tokens directly to
W alrusor by unstaking and paying at the point of unwrapping.
Second, objects slashed to zero or near-zero may not be returned
by their owners to W alrus, keeping W alrusfrom claiming those
tokens. Thus, W alruswill always redeem a staking object for
some baseline amount (e.g. 5%) of its initial principal, regardless of
the magnitude of slashing. This small incentive for users should
motivate them to return all staked objects to W alruseventually
for unwrapping, and allow W alrusto reclaim the slashed tokens.
6.2 Shard Migration
Shards migrate between nodes as their relative stake rises and falls.
This migration is important for W alrus’s security, as otherwise
Byzantine behavior in a minority of nodes by stake could halt the
system. Shard migration has three components: the assignment
algorithm, the cooperative pathway of migration, and the recovery
pathway.
Assignment Algorithm. Once the cutoff point prior to an epoch’s
conclusion is reached (i.e. point 𝑐 in Figure 5), the assignment
algorithm proceeds. Staking requests are considered finalized and
the associated stake is included; and unstaking requests are similarly
considered finalized and the associated stake is excluded (though
not released). Shards are assigned on the basis of relative stake
across nodes. However, the shard transfer process does not formally
begin until the start of the next epoch.
The shard assignment algorithm maintains stability between
nodes and shards where possible, and so tries to minimize transfers.
Specifically, nodes that gain shards keep all their current shards
and only gain extra shards lost by other nodes. In addition, there is
some tolerance when losing a shard, such that a node that just earns
an extra shard by having some𝜖 extra stake will not immediately
lose the shard if it loses that𝜖 stake in a subsequent epoch.
In future iterations, the shard assignment algorithm can be made
more accommodating, e.g. allowing nodes to specify preferences for
shards that the assignment algorithm respects, or allowing nodes to
trade migration obligations as long as the protocol’s overall shard
allocation is respected. For instance, nodes that co-locate storage
racks might prefer to transfer shards with one another to save on
ingress and egress charges (as many storage providers do not charge
for intra-facility transfers). Alternatively, if two nodes are migrating
one shard each to two other nodes, the four parties can mutually
agree to swap obligations for efficiency purposes (perhaps proposed
by a third party optimizing transfer costs for W alrusholistically;
and perhaps facilitated in turn by side payments between the four
parties).
Assignment is done solely on the basis of stake disregarding a
storage node’s storage limit. In other words, a node may be forced to
take shards beyond its storage capacity, if its relative stake increases
through an influx of stake or an outflow for competitors’ stake.9
This is why the assignment algorithm is run prior to the epoch’s
conclusion, to allow nodes in this position to have enough time to
provision more storage. In addition, nodes can always choose to halt
new staking requests, if they wish to lower the risk of provisioning
new storage on short notice.
Cooperative Pathway. The shard migration process begins once
the epoch ends. It begins with a period of time where nodes are
expected to transfer shards. If this is done cooperatively, i.e. the
sending node and receiving node coordinate, then no tokens change
hands and no further action is taken.
Specifically, for each bilateral relationship of (sender, receiver),
the receiver attests to having the shards during the transfer inter-
val. The process is then considered complete, and the receiver is
responsible for future challenges to the shards. Once each bilateral
transfer a node is involved with finishes, the unstaking requests
for that node (if any) are processed.
This mechanism nests a voluntary node exit from the system.
The node would mark its entire stake to be withdrawn, cooperate in
migrating out shards, and then reclaim all tokens once the receivers
attest.
Recovery Pathway. Since W alrusis an open system, it needs to
be robust to failures in the shard migration. If, at the end of the
transfer interval, the receiving nodes either attest to not having
received all shards or do not attest, the transfer is considered failed
and the recovery pathway is initialized.
Under the recovery pathway, the sending node’s stake is slashed
meaningfully, with a penalty amount set by governance. All other
nodes participate in recovering the shard (4.3), and the slashed
funds are divided amongst them to offset their costs. Importantly,
the receiving node’s stake isalso slashed. It is slashed by a relatively
small amount, also set by governance, to set incentives correctly
on not misreporting a cooperative migration. Once recovery is
complete, the receiving node is responsible for challenges to the
shards.10
Non-Migration Recovery. The recovery pathway in W alrusis
primarily for shard migrations, but it can also be used for recovery
9An alternate model is to assign shards on the basis of a node’s stake and self-declared
storage capacity. This model is more robust in terms of individual choices and incen-
tives, but it is more complex operationally. For instance, this model would require
W alrusto slash nodes that reduce storage capacity beyond the amount of storage
already committed to users, and potentially use those slashed funds to subsidize other
nodes who offset the declines.
10This mechanism handles nodes withdrawing from W alrusunder many adversarial
scenarios, but it does so inelegantly for a scenario with a fully unresponsive node.
A fully unresponsive node would eventually lose its shards through penalties levied
on its stake, but that process would be gradual and take many epochs, constraining
W alrusin the meantime. One possible idea for future development is for W alrusto
build an emergency migration system that confiscates all shards for a node that fails a
supermajority of data challenges in several consecutive epochs.
11
The MystenLabs Team
outside of migrations (e.g. a node who suffers physical damage to a
hard drive). In this flow, the node missing a shard voluntarily places
a request on chain and is slashed by the same penalty amount that
the sending node pays during shard migration recovery. A node
might do this voluntarily because the alternative is for the node to
repeatedly fail the data availability challenges in Section 4.6 before
eventually needing to migrate away the shard, which would be
more costly. Nodes who participate in the recovery of the missing
shard earn these slashed funds, to offset their costs.
In addition, nodes can perform ad-hoc recovery of blobs from
one another. These are on a best-effort basis only, and nodes are
free to rate limit one another. This pathway handles particular blobs
that are missing (especially from recent epochs), but it likely does
not scale to entire missing shards.
6.3 Payments for Storage and Writes
Given the distributed nature of W alrus, storage resources and
writes must be priced in competitive and collaborative ways. Stor-
age nodes should compete with one another to offer ample storage
at low prices, but the system must then jointly represent their sub-
missions as a unified schedule to storage consumers. This section
covers the preliminaries of storage resources, how nodes determine
the quantity of storage resources, how nodes determine the prices
of storage resources and writes, and the payments made to nodes.
Storage Resources. Storage is bought and sold on W alrusas
storage resources, represented on the Sui blockchain. These act as
reservations for storage space in W alrus, and accordingly have a
starting epoch, an ending epoch, and a size. Users register resources
to hold specific blobs when ready to store data, and proceed to write
the data and establish the Point of Availability.
Prior to being attached to a blob, storage resources can be split
across time or across space. Storage resources can also be traded.
Finally, storage resources can be disassociated from a deleted blob
and reassociated with a new blob. This establishes the foundation
for a robust secondary market for storage resources, which allows
for economic efficiency in W alrus.
Storage Quantity. Nodes first determine storage for sale by voting
on the system-wide shard size. Given the fixed number of shards
and the replication factor, this immediately determines the system
total size; and so, by extension, the unused storage that is available
for sale.
Like staking, voting for storage quantities and prices alike takes
place in advance of the epoch. The cutoff point for staking is the
same cutoff point for voting (i.e. point𝑐 in Figure 5). Storage nodes
that do not vote simply have their previous vote populated as their
current vote. At that point, all submissions for shard size are ordered
in decreasing order and the 66.67th percentile (by stake weight)
submission is determined to be the shard size, such that 2/3 of
submissions are for larger shard sizes and 1/3 of submissions are
for smaller shard sizes.
At this point, unused storage, i.e. the difference between total
storage capacity and storage already committed, is calculated. If
there is any unused storage, it goes on sale in the upcoming epoch
and starts in that epoch. Users specify an ending epoch (between
the current epoch and an epoch two years out) and a size when
making the purchase, creating a storage resource. The upper bound
on the ending epoch is to prevent early generations of nodes from
making choices that lock in too many successive generations of
nodes. If total storage capacity is lower than committed storage,
no new storage is available for sale but W alrusnodes are still
required to honor the commitments made. They cannot delete
storage resources, as they will fail challenges and be slashed, as
described in Section 4.6.
Although storage is generally sold as resources that start in
the current epoch, W alrusallows one alternate flow to facilitate
renewals of existing blobs efficiently. Users with existing blobs
can extend the lifespan of those blobs from their current ending
epoch to any later epoch (up to two years’ out) and pay the posted
price for the additional epochs. Renewing parties enjoy a small
embedded option, as prices for the next epoch are set midway
through the current epoch and when current storage is on sale at
current epoch prices. This is minor as long as prices are generally
stable in successive epochs. This model allows users to have long-
lived or potentially infinite storage lifetimes for their data without
lapsing coverage or double-paying for epochs.
Pricing of Storage and Writes. Nodes set the shard size, but also
the prices for storage and for writes. Again, over a full epoch in
advance and before the cutoff point 𝑐 in Figure 5, nodes submit
prices for storage resources (on a per unit of storage, per epoch
basis) and for writes to the system (on a per unit of storage basis).
These prices are independently ordered in ascending order, and the
66.67th percentile (by stake weight) submissions are selected, such
that 2/3 of submissions are for lower prices and 1/3 of submissions
are for higher prices.11 The storage price is taken as is, while the
write price is multiplied by a hardcoded factor greater than one.
This hardcoded factor reflects an additional refundable deposit.
W alrusformally is responsible for a blob once the Point of Avail-
ability is publicly visible on-chain. However, W alrusruns more
efficiently if all nodes receive the blob directly from the user, as it
saves the overhead needed to recover missing symbols for the nodes
missing the data. The refundable deposit on writes incentivizes this.
The more node signatures that a user collects on its certificate, the
more of that deposit is returned. As such, a user is motivated to
upload the data to all nodes and not simply 2𝑓+ 1 of them.
Payments to Nodes. Payments are simple for W alrusat launch.
First, users pay the current price for writing data when registering
the blob, and those are distributed to nodes at the end of the epoch.
Second, users pay for the storage resource at the time of purchase
(regardless of when they register the blob). Here, theW alrussmart
contracts divide these tokens amongst shard-level buckets for the
associated nodes to receive at the end of the epoch.
This simple model of payments for storage resources delivers
two core benefits. First, user prices are fixed and prepaid. Users do
not need to worry about fluctuations in the price of storage or the
WAL token during the lifetime of the contract, and nodes cannot ex-
ert predatory pricing on users midway through a contract. Second,
contract lengths are fixed and users cannot exit them without for-
feiting their payment. Without this, nodes could not lower prices on
storage in the future without risking all existing contracts canceling
11This resembles the model behind Sui gas fees. As a brief reminder, Sui validators
propose reference prices and the 66.67th percentile price is selected. Sui separately
allows validators to assess each others’ performance subjectively, which is analogous
to the data challenges in W alrusoutlined in Section 4.6.
12
W alrus: An Efficient Decentralized Storage Network
and renewing at the lower rate. Thus, the long-term enforcement
on both sides delivers stability to the relationship.
This model does have two weaknesses, and so W alrusmay
add refinements later. First, this is capital-inefficient, as users must
prefund the entire contract well in advance of receiving services.
Second, nodes often have local currency costs but receive WAL
revenues, and so fluctuations in the price of WAL will make it hard
for them to compete efficiently. Thus, an alternate model could be
one where users and nodes commit to long-term contracts, but with
two differences. The first difference is that users only prepay for the
last few epochs’ of storage rather than the full contract, allowing
them to be more capital-efficient but locking enough of a stake
to not terminate contracts early. The second difference is that the
contract price can only be updated programmatically based on an
oracle price (e.g. WAL/USD), to offer more local-currency stability
to both parties.
Future Improvements. W alruscurrently offers a light incentive
to nodes to increase storage capacity or lower prices. Specifically, an
increase in the global shard size would prevent nodes without spare
capacity from growing, giving a larger share of rewards to well-
provisioned nodes; while a decrease in price would push inefficient
nodes out of business, giving a larger share of rewards to efficient
nodes. However, W alruscould offer much stronger incentives to
nodes to expand capacity and drop prices. In particular, W alrus
could explicitly reward nodes that vote for shard sizes that are
larger than the 66.67th percentile submission and subsequently
deliver on their stated preferences. Similarly, W alruscould again
reward nodes that vote for prices lower than the consensus value.
These potential improvements, if incorporated in the future, would
more aggressively keepW alrusat the cutting edge of decentralized
storage provision.
6.4 Token Governance
Governance for W alrusadjusts the parameters in the system, and
operates through the WAL token. Specifically, nodes collectively
determine the level of various penalties, with votes equivalent to
their respective WAL stakes. This allows W alrusnodes, who often
bear the costs of other nodes’ underperformance, to calibrate the
appropriate financial repercussions.
In contrast, governance for W alrusdoes not directly adjust the
protocol. Protocol changes are effected by 2𝑓+ 1 storage nodes ac-
cepting them at reconfiguration; and thus they are ratified implicitly
by staked tokens. Changes to the protocol would likely only follow
a robust debate about the security, economic, and business risks of
any change. Many L1s have similar dynamics (e.g. Sui Improvement
Proposals for Sui).
Governance Flow. Token governance within the context of W al-
rus is similar to the mechanism by which nodes set prices, differing
only on parameter constraints and the method to find consensus.
Specifically, it has the following flow:
(1) Until the staking cutoff point for an epoch (i.e. point𝑐 in Figure
5), any W alrusnode can issue a proposal for the parameter set
for the subsequent epoch, regarding costs associated for shard
recovery and costs for failing to perform on data challenges.
(2) Once a proposal or set of proposals is live, W alrusnodes can
vote for a single proposal (or for the status quo) in that same
epoch, with their votes equal to their total stake, including
delegated stake.
(3) At the cutoff point𝑐, a proposal that earns over 50% of the votes
cast will be implemented for the subsequent epoch, subject to
total voting reaching quorum. If no proposal earns 50% of votes
cast, the status quo earns 50%, or quorum is not reached, no
proposal is implemented and the parameters remain at their
current values.
(4) There are no minimum staking requirements to vote or issue
proposals.
Governance-Determined Parameters. There are four parameters
that the token governance model adjusts through this framework:
(1) The cost associated for shard recovery, for the node sending a
shard. This is a per-shard penalty.
(2) The cost associated for shard recovery, for the node receiving a
shard. This is a per-shard penalty.
(3) The cost associated for a node failing 50% or more of the data
challenges issued. This is a per-shard penalty, and it is multi-
plied by the number of shards held by a node when assessed.
(4) The cost associated for a node failing to issue 50% of more of the
data challenges. This is a per-shard penalty, and it is multiplied
by the number of shards held by a node when assessed.
Any proposal that modifies these parameters must satisfy two
constraints, in addition to trivial constraints like positivity.프로젝트로 돌아가기