Celestia 백서

Celestia

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 20쪽 중 7쪽

of-of-stake works in Cosmos](https://docs.cosmos.network/sdk/v0.53/build/modules/staking). ### Decentralised governance TIA staking also allows the community to play a critical role in decentralised governance over key parts of Celestia, such as voting on network parameters through governance proposals, and governing the community pool, which receives 2% of block rewards. Learn more about [Celestia’s decentralised governance model](/learn/tia/staking-governance-supply#decentralised-governance). ### Denominations #### TIA: display token TIA is the [`DisplayDenom`](https://github.com/celestiaorg/celestia-app/blob/ada77509d7fdedf2a3e3400b720549365851454c/app/app.go#L110-L111) that you will typically see in wallets and user interfaces. #### utia: staking denomination `utia` is the [`BondDenom`](https://github.com/celestiaorg/celestia-app/blob/ada77509d7fdedf2a3e3400b720549365851454c/pkg/appconsts/global_consts.go#L75-L76) and stands for "micro TIA", with 1 TIA = 1,000,000 `utia`. This is the native staking denomination. In staking operations or transactions, if no denomination is specified, `utia` is assumed. #### microtia: staking denomination alias `microtia` is the [`BondDenomAlias`](https://github.com/celestiaorg/celestia-app/blob/ada77509d7fdedf2a3e3400b720549365851454c/app/app.go#L108-L109), an alias for `utia`. --- Title: Paying for blobspace URL: https://docs.celestia.org/learn/TIA/paying-for-blobspace.md Source: app/learn/TIA/paying-for-blobspace/page.mdx --- # Paying for blobspace ## PayForBlobs transactions To publish data on Celestia, developers can submit `PayForBlobs` transactions. A `PayForBlobs` transaction consists of the identity of the sender, the data to be made available, the data size, the namespace, and a signature. Each `PayForBlobs` transaction is split into two parts: the blob or blobs which include the data to be made available along with the namespace, and the executable payment transaction which includes a commitment to the data. Both the blobs and executable payment transactions are put into the block within the appropriate namespace. The block data is extended using erasure coding and then Merkelized into a data root commitment included in the block header. ![Lifecycle of a celestia-app Transaction](/img/learn/tx-lifecycle.png) See [the detailed life cycle of a Celestia transaction](/learn/celestia-101/transaction-lifecycle). Learn how to [submit data to Celestia’s data availability layer](/learn/TIA/submit-data). ## Fee market overview Celestia uses a standard gas-price prioritised mempool. This means that transactions with higher fees will be prioritised by validators. Fees are comprised of a flat fee per transaction and then a variable fee based on the size of each blob in the transaction. Understand how fees are calculated on Celestia in [the overview on submitting PFB transactions](/learn/TIA/submit-data). --- Title: Staking, governance, & supply URL: https://docs.celestia.org/learn/TIA/staking-governance-supply.md Source: app/learn/TIA/staking-governance-supply/page.mdx --- # Staking, governance, & supply ## Proof-of-stake on Celestia Celestia is a proof-of-stake blockchain based on CometBFT and the Cosmos SDK. Celestia supports in-protocol delegation and will start with an initial validator set of 100. Staking TIA as a validator or delegator enables you to earn staking rewards from the network. Validators charge a fee to delegators which gives them a percentage of staking rewards. Learn [how proof of stake works on Cosmos SDK chains like Celestia](https://docs.cosmos.network/sdk/v0.53/build/modules/staking). | Consensus mechanism | Proof-of-stake | | -------------------- | -------------- | | Blockchain framework | Cosmos SDK | | Validator set size | 100 | | Delegation support | Yes | Learn how to [stake on your own at the community dashboards](/learn/tia/staking). ## Inflation TIA inflation started at 8% annually. 1. Initially, it was set to decrease by 10% every year until reaching a long-term issuance rate of 1.5%. 2. With the v4 Lotus upgrade ([CIP-29](https://cips.celestia.org/cip-029.html)) in July 2025, the inflation rate dropped from ~7.2% to ~5.0% and was set to continue decreasing by 6.7% every year until it stabilized at 1.5%. 3. With the v6 ([CIP-41](https://cips.celestia.org/cip-041.html#inflation-schedule-over-time)) upgrade in November 2025, the inflation rate again dropped to ~2.5% and will continue to decrease by 6.7% every year until it stabilizes at 1.5%. The diagram below illustrates both the initial inflation rates and those after the v6 upgrade. ![inflation diagram](/img/learn/TIA_inflation_post-cip41.jpg) For an in-depth understanding, refer to [ADR019](https://github.com/celestiaorg/celestia-app/blob/main/docs/architecture/adr-019-strict-inflation-schedule.md). ## Decentralised governance ### Network parameters TIA holders (not just stakers) can propose and vote on governance proposals to change a subset of network parameters. To learn more, see a [complete list of both the changeable and non-changeable parameters and their values](https://celestiaorg.github.io/celestia-app/parameters_v6.html). Additionally, learn how to [submit and vote on governance proposals](/operate/consensus-validators/cli-reference#governance). ### Community pool Starting at genesis, Celestia’s [community pool](https://docs.cosmos.network/sdk/v0.53/build/modules/distribution) receives 2% of all Celestia block rewards. TIA stakers may vote to fund ecosystem initiatives as in many other Cosmos SDK chains. Learn how to [submit a governance proposal to spend community pool funds](/operate/consensus-validators/cli-reference#community-pool). ## TIA allocation at genesis Celestia will have a total supply of 1,000,000,000 TIA at genesis, split across five categories described in the chart and table below. ![allocation diagram](/img/learn/Celestia_TIA_Allocation_at_Genesis.png) | Category | Description | % | | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | | Public Allocation | Genesis Drop and Incentivized Testnet: 7.41%<br/>Future initiatives: 12.59% | 20.00% | | R&D & Ecosystem | Tokens allocated to the Celestia Foundation and core devs for research, development, and ecosystem initiatives including:<br/>- Protocol maintenance and development<br/>- Programs for rollup developers, infrastructure, and node operators | 26.79% | | Early Backers: Series A&B | Early supporters of Celestia | 19.67% | | Early Backers: Seed | Early supporters of Celestia | 15.90% | | Initial Core Contributors | Members of Celestia Labs, the first core contributor to Celestia | 17.64% | ### Unlocks Celestia’s 1 billion TIA supply at genesis will be subject to several different unlock schedules. All tokens, locked or unlocked, may be staked, but staking rewards are unlocked upon receipt and will add to the circulating supply. **Circulating supply** is defined as the amount of TIA tokens in general circulation without onchain transfer restrictions. **Available supply** is defined as the amount of TIA tokens that are either part of the circulating supply or are unlocked but subject to some form of governance to determine when the tokens are allocated. This includes the unlocked portion of the R&D & Ecosystem tokens and the tokens set aside for future initiatives. _The definitions for circulating and available supply were adapted from [Optimism’s definitions](https://community.optimism.io/docs/governance/allocations/#token-distribution-details)._ ![supply diagram](/img/learn/Celestia_TIA_Available_Supply.png) Unlock schedule by category is described in the table below. _Note: Due to 2024 being a leap year, the yearly unlock intervals will occur on October 30th of each year. For example, unlocks at year 1 will occur on October 30, 2024._ | Category | Unlock Schedule | | ------------------------- | ------------------------------------------------------------------------------------------- | | Public Allocation | Fully unlocked at launch. | | R&D & Ecosystem | 25.00% unlocked at launch.<br/>Remaining 75.00% unlocks continuously from year 1 to year 4. | | Initial Core Contributors | 33.33% unlocked at year 1.<br/>Remaining 66.67% unlocks continuously from year 1 to year 3. | | Early Backers: Seed | 33.33% unlocked at year 1.<br/>Remaining 66.67% unlocks continuously from year 1 to year 2. | | Early Backers: Series A&B | 33.33% unlocked at year 1.<br/>Remaining 66.67% unlocks continuously from year 1 to year 2. | --- Title: Staking on Celestia URL: https://docs.celestia.org/learn/TIA/staking.md Source: app/learn/TIA/staking/page.mdx --- # Staking on Celestia Engage with the Celestia network at a deeper level through staking. An essential mechanism to a proof-of-stake network, users can secure the network by delegating to a validator and receive a share of its staking rewards. As of [CIP-30](https://cips.celestia.org/cip-030.html), when delegators modify their staking positions (_e.g._, redelegate or undelegate), the distribution no longer auto-claim rewards on delegation-share changes. Instead, rewards are accrued until the user calls `MsgWithdrawDelegatorReward`. ## Mainnet Beta Currently, the following staking interfaces exist for the Mainnet Beta. Just connect your wallet to get started! - [https://wallet.keplr.app/chains/celestia?tab=staking](https://wallet.keplr.app/chains/celestia?tab=staking) - [https://alphab.ai/s/m/celestia/](https://alphab.ai/s/m/celestia/) ## Mocha testnet Currently, the following staking interfaces exist for the Mocha testnet. Just connect your wallet to get started! - [https://testnet.keplr.app/chains/celestia-mocha-testnet](https://testnet.keplr.app/chains/celestia-mocha-testnet) - [https://explorer.kjnodes.com/celestia-testnet](https://explorer.kjnodes.com/celestia-testnet) - [https://alphab.ai/s/t/celestia-mocha-4/](https://alphab.ai/s/t/celestia-mocha-4/) --- Title: Submitting data blobs to Celestia URL: https://docs.celestia.org/learn/TIA/submit-data.md Source: app/learn/TIA/submit-data/page.mdx --- # Submitting data blobs to Celestia To submit data to Celestia, users submit blob transactions (`BlobTx`). Blob transactions contain two components, a standard Cosmos-SDK transaction called `MsgPayForBlobs` and one or more `Blob`s of data. ## Maximum blob size As of **v6**, the maximum transaction size on all networks is **8 MiB (8,388,608 bytes)**. This cap applies to the _entire_ transaction—including the PFB, all blobs, and overhead—so the maximum total blob size is slightly smaller than 8 MiB. The _exact_ maximum total blob size in a transaction depends on: - the number of shares available after accounting for the PFB transaction, - the share version and layout rules, - and the fact that the **first sparse share has 478 bytes**, while **all subsequent sparse shares have 482 bytes**. The current max square size on Mocha and Mainnet Beta is 32 MiB. Under v6 and future upgrades, networks will use larger square sizes, so the absolute maximum blob capacity per transaction will increase correspondingly—up to the global **8 MiB transaction size limit**, which is now the binding constraint. See the [Mainnet Beta page under “Transaction size limit”](/operate/networks/mainnet-beta#transaction-size-limit) for details. ## Fee market and mempool Celestia makes use of a standard gas-priced prioritized mempool. By default, transactions with gas prices higher than that of other transactions in the mempool will be prioritized by validators. ### Fee estimation Celestia-node provides flexible fee estimation options for submitting transactions: 1. **Default estimation**: By default, fee estimation relies on the consensus node to which the node is connected. 2. **Third-party estimation**: Users can specify a separate endpoint for fee estimation using the `--core.estimator.address` flag in the CLI. This allows using a dedicated service for fee estimation. 3. **Maximum gas price**: Users can set a maximum gas price they're willing to pay for transactions using the `--max.gas.price` flag. If the estimated gas price exceeds this maximum, the transaction will not be submitted. The default maximum is set to 100 times the minimum gas price (0.2 TIA). - PayForBlobs (PFB) transactions: Only the gas price (cost per unit) is dynamically estimated. The gas usage (number of units) uses a fixed calculation method. - All other transactions: Both gas price and gas usage are dynamically estimated. When using third-party estimation, the consensus endpoint must be running celestia-app v3.8.1 or higher. ### Fees and gas limits As of version v1.0.0 of the application (celestia-app), there is no protocol enforced minimum fee (similar to EIP-1559 in Ethereum). Instead, each consensus node running a mempool uses a locally configured gas price threshold that must be met in order for that node to accept a transaction, either directly from a user or gossiped from another node, into its mempool. As of version v1.0.0 of the application (celestia-app), gas is not refunded. Instead, transaction fees are deducted by a flat fee, originally specified by the user in their tx (where fees = gasLimit \* gasPrice). This means that users should use an accurate gas limit value if they do not wish to overpay. Under the hood, fees are currently handled by specifying and deducting a flat fee. However gas price is often specified by users instead of calculating the flat fee from the gas used and the gas price. Since the state machine does not refund users for unused gas, gas price is calculated by dividing the total fee by the gas limit. #### Estimating PFB gas Generally, the gas used by a PFB transaction involves a static fixed cost and a dynamic cost based on the size of each blob in the transaction. For a general use case of a normal account submitting a PFB, the static costs can be treated as such. However, due to the description above of how gas works in the Cosmos-SDK this is not always the case. Notably, if a vesting account or the `feegrant` modules are used, then these static costs change. The fixed cost is an approximation of the gas consumed by operations outside the function `GasToConsume` (for example, signature verification, tx size, read access to accounts), which has a default value of 65,000 gas. The first transaction sent by an account (sequence number == 0) has an additional one time gas cost of 10,000 gas. If this is the case, this should be accounted for. Each blob in the PFB contributes to the total gas cost based on its size. The function `GasToConsume` calculates the total gas consumed by all the blobs involved in a PFB, where each blob's gas cost is computed by first determining how many shares are needed to store the blob size. Then, it computes the product of the number of shares, the number of bytes per share, and the `gasPerByte` parameter. Finally, it adds a static amount per blob. The [`blob.GasPerBlobByte`](https://github.com/celestiaorg/celestia-app/blob/29906a468910184f221b42be0a15898722a2b08f/specs/src/parameters_v6.md?plain=1#L33) and [`auth.TxSizeCostPerByte`](https://github.com/celestiaorg/celestia-app/blob/29906a468910184f221b42be0a15898722a2b08f/specs/src/parameters_v6.md?plain=1#L31) are parameters that could potentially be adjusted through the system's governance mechanisms. Hence, actual costs may vary depending on the current state of these parameters. #### Gas fee calculation The total fee for a transaction is calculated as the product of the gas limit for the transaction and the gas price set by the user: $$ \text{Total Fee} = \text{Gas Limit} \times \text{Gas Price} $$ The gas limit for a transaction is the maximum amount of gas that a user is willing to spend on a transaction. It is determined by both a static fixed cost (FC) and a variable dynamic cost based on the size of each blob involved in the transaction: $$ \text{Gas Limit} = FC + \sum_{i=1}^{n} \text{SSN}(B_i) \times SS \times GCPBB $$ Where: - $FC$ = Fixed Cost, is a static value (65,000 gas) - $\sum_{i=1}^{n} \text{SSN}(B_i)$ = SparseSharesNeeded for the ith Blob, is the number of shares needed for the ith blob in the transaction - $SS$ = Share Size, is the size of each share - $GCPBB$ = Gas Cost Per Blob Byte, is a parameter that could potentially be adjusted through the system's governance mechanisms. The gas fee is set by the user when they submit a transaction. The fee is often specified by users directly. The total cost for the transaction is then calculated as the product of the estimated gas limit and the gas price. Since the state machine does not refund users for unused gas, it's important for users to estimate the gas limit accurately to avoid overpaying. For more details on how gas is calculated per blob, refer to the [`PayForBlobs` function](https://github.com/celestiaorg/celestia-app/blob/32d247971386c1944d44bec1faeb000b1ff1dd51/x/blob/keeper/keeper.go#L53) that consumes gas based on the blob sizes. This function uses the [`GasToConsume` function](https://github.com/celestiaorg/celestia-app/blob/32d247971386c1944d44bec1faeb000b1ff1dd51/x/blob/types/payforblob.go#L157-L167) to calculate the extra gas charged to pay for a set of blobs in a `MsgPayForBlobs` transaction. This function calculates the total shares used by all blobs and multiplies it by the `ShareSize` and `gasPerByte` to get the total gas to consume. For estimating the total gas required for a set of blobs, refer to the [`EstimateGas` function](https://github.com/celestiaorg/celestia-app/blob/32d247971386c1944d44bec1faeb000b1ff1dd51/x/blob/types/payforblob.go#L169-L181). This function estimates the gas based on a linear model that is dependent on the governance parameters: `gasPerByte` and `txSizeCost`. It assumes other variables are constant, including the assumption that the `MsgPayForBlobs` is the only message in the transaction. The `DefaultEstimateGas` function runs `EstimateGas` with the system defaults. #### Estimating gas programmatically Users can estimate an efficient gas limit by using this function: ```go import ( blobtypes "github.com/celestiaorg/celestia-app/x/blob/types" ) gasLimit := blobtypes.DefaultEstimateGas([]uint32{uint32(sizeOfDataInBytes)}) ``` If using a celestia-node light client, then this function is automatically called for you when submitting a blob. This function works by breaking down the components of calculating gas for a blob transaction. These components consist of a flat costs for all PFBs, the size of each blob and how many shares each uses and the parameter for gas used per byte. More information about how gas is used can be found in the [gas specs](https://github.com/celestiaorg/celestia-app/blob/d17e231ae3a0150b50a1854f3e9a268c34502b6b/specs/src/specs/resource_pricing.md) and the exact formula can be found in the [blob module](https://github.com/celestiaorg/celestia-app/blob/d17e231ae3a0150b50a1854f3e9a268c34502b6b/x/blob/types/payforblob.go#L157-L181). ## Transaction submission strategies Celestia-node offers three transaction submission modes, controlled by the `TxWorkerAccounts` configuration parameter in your node's state config in `config.toml`. Each mode has different throughput characteristics and ordering guarantees. ### Default behavior (TxWorkerAccounts = 0) By default, `TxWorkerAccounts` is set to `0`, which means queued submission is disabled. All PayForBlobs transactions are submitted immediately to the mempool without waiting for confirmations. This is the same behavior as versions before queued submission was introduced. The mempool maintains a fork of the canonical state each block, updating the sequence number (nonce) for each account that submits a transaction. If you wish t
프로젝트로 돌아가기