diff --git a/README.md b/README.md index 986c2cdd36..785a7b6bc9 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,20 @@ -# Core DAO Developer Documentation +# Core Developer Documentation -Welcome to the Core DAO Developer Documentation for Core Chain! This comprehensive guide is designed to assist developers in navigating and integrating with Core Chain effectively. Whether you are looking to build decentralized applications, participate in network governance, or simply explore the capabilities of Core Chain, this documentation provides all the necessary tools and resources. +Welcome to Core's Official Developer Documentation! This comprehensive guide is designed to assist developers in navigating and integrating with Core blockchain effectively. Whether you are looking to build decentralized applications, participate in network governance, or simply explore the capabilities of Core blockchain, this documentation provides all the necessary tools and resources. ## Commands for Local Build -* Install depencies `npm run install ` -* Start the live-reloading docs server `npm run start` +### Using NPM + +* Install depencies `npm install ` * Build the documentation site `npm run build` +* Start the live-reloading docs server `npm run start` + +### Using Yarn + +* Install depencies `yarn install ` +* Build the documentation site `yarn run build` +* Start the live-reloading docs server `yarn run start` ## 📜 License diff --git a/crowdin.yml b/crowdin.yml index 2d502575f9..4a6a26ed71 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,7 +1,5 @@ files: - - source: /docs/* + - source: /docs/**/* ignore: - /docs/CNAME - translation: /docs_%two_letters_code%/%original_file_name% - - source: /docs/Dev-Guide/* - translation: /docs_%two_letters_code%/Dev-Guide/%original_file_name% + translation: /%two_letters_code%/%original_path%/%original_file_name% diff --git a/docs/CoreIgnition/FAQs.md b/docs/CoreIgnition/FAQs.md new file mode 100644 index 0000000000..ee06131550 --- /dev/null +++ b/docs/CoreIgnition/FAQs.md @@ -0,0 +1,50 @@ +--- +sidebar_label: Core Ignition FAQs +hide_table_of_contents: false +sidebar_position: 2 +--- + +# Core Ignition FAQs +--- + +### 1. What is Core Ignition? + +Core Ignition is a six-month incentive program developed by the Core Foundation to jumpstart the growth of Core ecosystem. Season 1 has concluded on September 11, 2024, and Season 2 is currently live. Please visit [Core Ignition](https://ignition.coredao.org) for further details. + + +### 2. What is Core blockchain? + +Core serves as the Proof of Stake layer for Bitcoin, pioneering Non-Custodial Bitcoin Staking and securing a fully EVM-compatible BTCfi ecosystem. Since April 2024, over 5,500 BTC have been staked with Core, boosting Bitcoin’s utility and security. Core is the most Bitcoin-aligned EVM blockchain, with approximately 55% of Bitcoin mining hash power contributing to the network’s security. + + +### 3. I am new to Core ecosystem. How do I get started? + +For new users to the Core blockchain, here's some essential information: +1. To interact with Core, the users need its native token, CORE, in their wallet. +2. For first-time users, Core offers a one-time benefit to help users get started: + * If users bridge at least 10 USDT to Core, users qualify for the Core Faucet. + * This Faucet automatically deposits some CORE into the user's wallet. +3. The process works as follows: + * First, funds are bridged (minimum 10 USDT) to the Core blockchain. + * Upon successful bridging, Core will automatically deposit CORE into the user's wallet. + * With CORE now in the user's wallet, users can immediately begin transacting on the Core blockchain. + +Remember, this automatic CORE deposit is a one-time benefit designed to help new users easily start using the Core blockchain. + + +### 4. Difference between Core Ignition versus Core Ignition Builder’s incentive program? + +The Core Ignition incentive program rewards loyal users to foster growth in Core’s BTCfi ecosystem. In contrast, the Core Ignition Builder’s incentive program rewards developers for creating dApps/projects on the Core blockchain. + + +### 5. I don’t have any Bitcoin token (BTC). Can I still participate in Core’s BTCfi ecosystem? + +Absolutely! Users can still participate in Core's BTCfi ecosystem even without holding Bitcoin. As an EVM-compatible chain, Core offers a range of DeFi opportunities similar to other EVM chains, including DEXes, lending protocols, perpetual futures, restaking, and NFT platforms. Core's mission is to unlock $1.25T of trapped Bitcoin liquidity, creating opportunities for all web3 users. + + +### 6. Where to find more updates about Core Ignition? +* Visit the official [Core Ignition website.](https://ignition.coredao.org/) +* Follow Core DAO [official X (Twitter) account](https://x.com/Coredao_Org) +* Read [new blog posts](https://coredao.org/explore/blog) +* Join Core community channels - [Discord](https://discord.com/invite/coredaoofficial), and [Telegram](https://t.me/CoreDAOTelegram) for discussions and regular updates. + diff --git a/docs/CoreIgnition/Mechanics.md b/docs/CoreIgnition/Mechanics.md new file mode 100644 index 0000000000..65dd06f73e --- /dev/null +++ b/docs/CoreIgnition/Mechanics.md @@ -0,0 +1,85 @@ +--- +sidebar_label: Mechanics +hide_table_of_contents: false +sidebar_position: 2 +--- + +# Core Mechanics +--- + +## Core Ignition Dashboard +

+ Ignition_dashboard +

+ + +### Core Ignition Profile +The Core Ignition Profile is a personalized dashboard connected to the user account, allowing users to showcase their achievements and engagement. It enables users to: +1. Display a customized username and avatar +2. Connect X (Twitter) and display its profile photo +3. Track high-level engagement status +4. Display the badges earned + +To update the user profile, click on the profile meatballs menu. +

+ Ignition Profile meatballs menu +

+ + +### Ignition Wallet Balance +Ignition Wallet balance displays a subset of whitelisted assets the account holds on Core. Users can earn Sparks (points) by bridging/holding assets with extra Sparks boost on Core. + + +### Ignition dApp Balance +Ignition dApp balance reflects the assets the user has deposited inside the whitelisted dApps on Core. Users can also boost Sparks by interacting with whitelisted dApps on Core. + + +### How to Boost Sparks +Sparks are cumulative points reflecting how active users are in Core ecosystem, updated daily at 00:00 UTC and appear on Leaderboard. Users earn Sparks daily through: + +**1. Assets in Ignition Wallet Balance:** +The amount and type of whitelisted assets users bridge to Core will be reflected in the user's Ignition Wallet Balance. By holding these assets on Core, users will earn Sparks. Sparks are calculated daily based on the wallet balance of the user. + +**2. Activities with Core Ecosystem dApp:** +Users could also earn Sparks by interacting with whitelisted dApps on Core Ignition. Each on-chain activity with these dApps will contribute Spark points to the user account. More details will be updated soon. + +**3. Campaign Joined:** +Core Ignition will feature flash or time-limited campaigns on a rolling basis, offering users special opportunities to supercharge Sparks. Stay connected by checking the in-app campaign sections and following Core's official announcements on [X (Twitter)](https://x.com/Coredao_Org) for the latest updates. + +**4. Invite New Users to Join Ignition:** +For those new to Core Ignition, bridge $100 USDT worth of whitelisted assets to Core to unlock a permanent invite link. For users who have signed up in Season 1, the invite code is automatically unlocked. By inviting new users to Core Ignition, users will receive 10% of the daily Sparks earned by introducing first-degree invitees and 2% from second-degree invitees. Please note that a cap may apply to the maximum Sparks each user can earn through referrals. + + +### How to Boost Multipliers +Multipliers are dynamic variables to multiply Spark points. The multiplier displayed on the user's dashboard reflects the multiplier currently applying to the entire asset of the user. This multiplier is calculated by averaging out the multipliers distributed across the assets. +

+ image +

+ +Below are the baseline multipliers for the whitelisted assets inside the wallet of the user or deposited into various dApps. + +| Whitelisted Assets |Wallet Assets | Lending | Borrowing | Liquidity Provision | +| ------------- |-------------| ------------- |-------------| ------------- | +| stCORE, CLND | 1.3x | 2.5x | 3x | 3.5x | +| USDT, USDC | 1.2x | 2x | 2.5x | 3x | +| CORE, WCORE, wETH | 1x | 1.5x | 2x | 2.5x | +| solvBTC.CORE| 1x | 1.4x | 1.6x | 1.8x | +| aBTC, BTCB, BTC.B, nBTC, oBTC, pumpBTC, rBTC, suBTC, SolvBTC.b, SolvBTC.m, uBTC, wBTC | 1x | 1.2x | 1.4x | 1.6x | + + +>***Example 1:*** +>If the user holds 10 stCORE in Ignition wallet balance, the user gets: +>Daily Sparks = stCORE amount * stCORE price * Multiplier = 10 stCORE * $1.5 (assumed) * 1.3 = 19.5 + + +>***Example 2:*** +>If the user lends 20 stCORE in a Lending Protocol, the user get: +>Daily Sparks = stCORE amount * stCORE price * Multiplier = 20 stCORE * $1.5(assumed) * 2.5 = 75 + + +Find out specific Multiplier opportunities in the Explore dApps section: +

+ dApp tab +

+ +In addition to holding strategic tokens and deploying assets into various dApps, users can also earn additional Multipliers by taking actions from special campaigns. The multipliers from campaigns can stack on top of the baseline multipliers highlighted above to further boost Sparks. Baseline multipliers are subject to change without prior notice. diff --git a/docs/CoreIgnition/Overview.md b/docs/CoreIgnition/Overview.md new file mode 100644 index 0000000000..2de9d8d810 --- /dev/null +++ b/docs/CoreIgnition/Overview.md @@ -0,0 +1,55 @@ +--- +sidebar_label: Overview +hide_table_of_contents: false +sidebar_position: 2 +--- + +# Overview +--- + +Core Ignition Season 2 is a six-month user incentive program designed to recognize the Core community for their valuable contributions to the Core network. Through Core Ignition, users have the opportunity to contribute meaningfully to the evolving BTCfi landscape while being rewarded for various engagements and activities, which are viewable on the Ignition dashboard after successfully connecting and bridging to Core Ignition. + + +## Program Period +The duration for the Core Ignition user incentive program is **six** months, from September 12, 2024, 00:00 UTC to March 11, 2025, 23:59 UTC. + +## Eligibility +All participants are eligible, except for those in prohibited jurisdictions or as specified in the Program Terms & Conditions. + +## Benefits from Participation +By participating in the Core Ignition user incentive program, users gain access to the thriving Core ecosystem and have the chance to be involved in exploring groundbreaking applications. Core Ignition is designed to grant potential rewards and benefits to network participants based on their overall contribution to Core Ignition initiatives. Contributions may include: + 1. Inviting others to engage in Core Ignition; + 2. Bridging specific assets to Core; + 3. Holding specific assets on Core; + 4. Execute transactions interacting with smart contracts; + 5. Participate in dApps within the Core Ecosystem, including but not limited to DEXs, lending protocol, perpetual futures, etc. + +## Get Started +1. Visit [Core Ignition website](https://ignition.coredao.org). +

+ image +

+ +2. Click on "Add Core Network" to add Core Blockchain into the wallet network. +3. Click on "Earn Sparks" or "Join Now" to initiate account creation. +4. Select the appropriate country +

+ image +

+ +5. Choose a username for the Ignition dashboard. Connect X (Twitter) account (optional). +

+ image +

+ +6. Review and agree to the Terms & Conditions and Privacy Policy. +

+ image +

+ +7. Click "Connect Wallet" to connect a compatible Web3 Core wallet. +

+ image +

+ +8. Engage with the Core ecosystem to boost Core Ignition Balances and earn daily Sparks points. diff --git a/docs/Dev-Guide/bridge-with-layerzero.md b/docs/Dev-Guide/bridge-with-layerzero.md index a48d10f926..b686e24bf6 100644 --- a/docs/Dev-Guide/bridge-with-layerzero.md +++ b/docs/Dev-Guide/bridge-with-layerzero.md @@ -4,161 +4,42 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Bridging Tokens to Core With LayerZero ---- - -This guide outlines the steps to bridge your ERC-20 token to Core using Omnichain Fungible Tokens (OFT) via LayerZero. LayerZero's protocol enables seamless cross-chain communications, allowing your token to operate across multiple chains. Please refer to LayerZero for all the[ supported source blockchains](https://layerzero.gitbook.io/docs/technical-reference/mainnet/supported-chain-ids). - -## Overview - -Before proceeding, you should be aware of what omnichain fungible tokens and the LayerZero protocol are. - -**Omnichain Fungible Token (OFT)**: Enables the creation of tokens native to multiple chains, simplifying token management and enhancing interoperability. - -**LayerZero Protocol**: Serves as foundational technology for cross-chain interactions, providing a reliable method for different blockchains to communicate, ensuring secure and efficient transactions. - -## Bridging Existing ERC-20 Tokens to Core - -### Deploy LayerZero ProxyOFTV2 Contract on the Source Chain - -First, **access the ProxyOFTV2 contract** by retrieving the `ProxyOFTV2` contract code from the[ official repository](https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/token/oft/v2/ProxyOFTV2.sol). - -Then**, adjust the ProxyOFTV2 contract for the source blockchain**, like this: - -``` -constructor( - address _token, - uint8 _sharedDecimals, - address _lzEndpoint -``` - -Here's some context on what's present in this code snippet: - -* **Token Contract Address** (`_token`): Provide the ERC-20 token contract address for a contract that's already been deployed on the source chain. If your token was USDC on Ethereum, for example, you’d use contract address [0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48](https://etherscan.io/address/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) -* **Shared Decimals** (`_sharedDecimals`): Set the number of decimal places for the token in the LayerZero environment. The shared decimals normalize the differences between data type across EVM and non-EVM chains. It is a good practice to use a smaller shared decimal point on all chains so that your token can have a larger balance. - * If your token is deployed on non-EVM chains, it should be set as the lowest decimals across all chains. - * If your tokens are only deployed on EVM chains and all have decimals larger than eight, this value should be set as `8`. - * Please refer to this[ LayerZero doc](https://layerzero.gitbook.io/docs/evm-guides/layerzero-omnichain-contracts/oft/oftv2#what-should-i-set-as-shared-decimals) for more info. -* **LayerZero Endpoint Address for Source Chain** (`_lzEndpoint`): This endpoint address is required for the contract to interact with the LayerZero protocol. For example, Ethereum endpoint: 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675. -* Please refer to the[ LayerZero documentation](https://layerzero.gitbook.io/docs/technical-reference/mainnet/supported-chain-ids) for the endpoints for supported blockchains. - -Finally, **deploy the `ProxyOFTV2` contract** to the chosen source blockchain. - -### Deploy LayerZero OFTV2 Contract on Core Chain - -First, **access the OFTV2 contract** by retrieving the `ProxyOFTV2` contract code from the[ official repository](https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/token/oft/v2/OFTV2.sol). - -\ -Then, **prepare parameters for OFTV2 Contract deployment on Core Chain**, like so: - -``` -constructor( - string memory _name, - string memory _symbol, - uint8 _sharedDecimals, - address _lzEndpoint -``` - -Here's some context on what's happening in this code snippet: - -* **Token Name** (`_name`): Specify your token name (e.g. USD Coin) -* **Token Symbol** (`_symbol`): Specify your token symbol (e.g. USDC) -* **Shared Decimals** (`_sharedDecimals`): Match the shared decimals in the `ProxyOFTV2` on the source chain. -* **LayerZero Endpoint Address for Core Chain** (`_lzEndpoint`): The endpoint address for Core Chain is `0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4`. -* Please refer to the[ LayerZero documentation](https://layerzero.gitbook.io/docs/technical-reference/mainnet/supported-chain-ids) for endpoints of the supported blockchains. +# Bridging Tokens to Core With LayerZero (OFT V2) -Finally, **deploy the Contract on CoreDAO:** deploy this OFTV2 contract to the Core blockchain. +![Core LayerZero OFT](https://github.com/user-attachments/assets/ac7382c0-6825-4fb8-91c2-5e022a2eca66) -### Linking Contracts via Trusted Remotes - -The term "trusted remote" comes from EVM-to-EVM messaging, and refers to the 40 bytes that identify the contract from which you will receive messages in your LayerZero User Application contract. The 40 bytes object is the packed bytes of the `remoteAddress` and the `localAddress`. - -You can generate `TrustedRemote` using `ethers.js`: - -``` -// the trusted remote (or sometimes referred to as the path or pathData) -// is the packed 40 bytes object of the REMOTE + LOCAL user application contract addresses - -let trustedRemote = hre.ethers.utils.solidityPack( - ['address','address'], - [remoteContract.address, localContract.address] -) -``` - -On the source blockchain, call the `ProxyOFTV2` contract's `setTrustedRemoteAddress` function with the following parameters: - -* `trustedRemote`: This is the 40 bytes generated by trusted remote in the previous step -* `localContract`: This is the source chain’s `ProxyOFTV2` contract address. -* `remoteContract`: This is the Core chain’s `OFTV2` contract address - -On the Core blockchain, call the `OFTV2` contract's `setTrustedRemoteAddress` function with the following parameters: - -* `trustedRemote`: This is the 40 bytes generated by trusted remote in the previous step. -* `localContract`: This is the Core chain’s `OFTV2` contract address. -* `remoteContract`: This is the source chain’s `ProxyOFTV2` contract address - -For more info, please refer to the[ LayerZero guide for setting trusted remotes](https://layerzero.gitbook.io/docs/evm-guides/master/set-trusted-remotes) to link your contracts across the two networks. - -### Set Minimum Gas Limit for Each Chain - -You'll need to set the minimum gas limit for each chain. It's advisable to use a 200k minimum for all EVM chains; the only major exception is Arbitrum, where the gas limit should be 2M. Here are the steps. - -First, call `setMinDstGas` on the source chain (Core’s[ chainId is 153](https://layerzero.gitbook.io/docs/technical-reference/mainnet/supported-chain-ids)). Be sure to include the packet type ("0" means send, "1" means send and call) and the gas limit amount. - -Then, call `setMinDstGas` on Core Chain with the[ chainId of the source chain](https://layerzero.gitbook.io/docs/technical-reference/mainnet/supported-chain-ids). Be sure to include the packet type ("0" meaning send, "1" meaning send and call) and the gas limit amount. - -Finally, make sure that your `AdapterParams` gas limit is greater than `setMinDstGas`. - -For more info, please refer to the[ LayerZero guide](https://layerzero.gitbook.io/docs/evm-guides/layerzero-omnichain-contracts/oft/oftv2). - -### Transfer Tokens Cross-Chain - -Here, we'll cover the basic steps involved in transferring tokens across chains. - -First, ensure that you have [Node.js](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed. - -Then, clone the `oft-transfer-script` repository found [here](https://github.com/LayerZero-Labs/oft-transfer-script/tree/main). +--- -With that done, navigate to the `hardhat` folder in the cloned repository and run `npm install` to install the required npm packages. +In this [guide](https://github.com/coredao-org/LZ-OFT-V2-Core-Guide), we walk you through the process of setting up cross-chain token transfers using LayerZero's Omnichain Fungible Token (OFT) V2 protocol. Specifically, this guide focuses on enabling ERC-20 token transfers between Core Testnet and Base Sepolia Testnet, equipping developers with the necessary tools and knowledge to handle cross-chain token interactions. -Next, create an `.env` file in the root directory of the repository and add the following variables: +Whether you're a beginner or an experienced developer, [this guide](https://github.com/coredao-org/LZ-OFT-V2-Core-Guide) will help you: -* `RPC_ENDPOINT`: This should be the URL of your Ethereum JSON RPC endpoint. -* `PRIVATE_KEY`: The private key of the Ethereum address you intend to use with the script. +Set up and configure Hardhat for cross-chain deployments. +Deploy OFT contracts on Core Testnet and Base Sepolia Testnet. +Configure LayerZero endpoints and establish trusted remotes for secure communication between blockchains. +Execute cross-chain token transfers, allowing for efficient movement of assets across different blockchain networks. -Here's a code snippet explaining how the `RPC_ENDPOINT` and `PRIVATE_KEY` should be configured: +If you're ready to dive in, access the full guide [here](https://github.com/coredao-org/LZ-OFT-V2-Core-Guide). -``` -RPC_ENDPOINT= -PRIVATE_KEY= -``` +## Major Points Covered in the Guide: -Finally, run the FT Token Transfer script. This script is designed to interact with the OFT smart contract to facilitate token transfers using `estimateFees()` and `sendFrom()`. Here's a little more context on what these methods accomplish: +- **Setting Up the Development Environment**: Install Node.js, pnpm, and Hardhat, then initialize your project to begin working with LayerZero's OFT V2 protocol. -* `estimateFees()`: This function provides an estimate of the fees required to send a certain amount of tokens. -* `sendFrom()`: This function allows you to send tokens from one address on the source blockchain to another on the destination. +- **Deploying OFT Contracts**: Follow step-by-step instructions for deploying contracts that enable cross-chain token transfers between Core Testnet and Base Sepolia. -Here's a code snippet showing how to transfer tokens with `sendFrom`: +- **Configuring Cross-Chain Peers**: Learn how to set trusted remotes and configure LayerZero pathways to ensure reliable and secure token transfers. -``` -npx hardhat sendFrom --qty 100000000000000 --network core -``` +- **Executing Token Transfers**: Use Hardhat tasks to perform cross-chain token transfers, verifying the transactions on blockchain explorers. -### Manual Transfers via Etherscan +- **Customizing the Token Setup**: While this guide focuses on bridging ERC-20 tokens, the OFT contracts can be adapted to meet different token requirements, whether fungible or non-fungible. You can modify the configuration for your unique token needs. -If your `ProxyOFT` contract is registered on Etherscan, you can use the Etherscan user interface to transfer your ERC20 tokens manually by calling the `sendFrom()` function with the following parameters: +- For further customization and more in-depth configuration details, you can refer to [LayerZero’s documentation on OFT and EVM configuration](https://docs.layerzero.network/v2/developers/evm/oft/quickstart). -* `from`: This is the sender’s address on Ethereum. -* `dstChainId`: LayerZero’s unique chain ID for the receiving chain (we’ll use [chainId 153](https://layerzero.gitbook.io/docs/technical-reference/mainnet/supported-chain-ids) for Core chain). -* `toAddress`: The intended recipient’s address on Core chain. -* `amount`: The number of tokens **in wei units.** -* `refundAddress`: This is the address where gas refunds will be sent if necessary. It's wise to use the sender’s address as the refund address. -* `zroAddress`: On Etherscan, the "zero address" is `0x0000000000000000000000000000000000000000`. -* `adapterParams`: 0x -* `nativeFee`: you can calculate the native fee by calling the `estimateSendFee` function on the same contract using the same `remoteChainId`, `toAddress`, `amount`, `useZro`, and `adapterParams` above. +This resource will help guide you through any advanced setups not covered in this guide, ensuring you can tailor the process to your specific project requirements. -## LayerZero Integration Checklist +## Why This Guide is Important: +By implementing LayerZero’s OFT V2, you unlock the ability to create omnichain token ecosystems where tokens can be efficiently transferred across multiple blockchains. Bridging tokens between Core Testnet and Base Sepolia is used as an example because of its speed, and low fees. Via the endpoints provided by LayerZero, you're able to transfer tokens between Core any many different EVM networks. — this guide shows how easy it is to extend your project’s reach by enabling interoperability across networks. This opens up new possibilities for decentralized applications (dApps) that require token interactions across various blockchains, enhancing liquidity, scalability, and functionality. -Please refer to the[ checklist](https://layerzero.gitbook.io/docs/evm-guides/layerzero-integration-checklist) to prepare for a Mainnet deployment. +Start your journey with the full guide [here](https://github.com/coredao-org/LZ-OFT-V2-Core-Guide) and explore the potential of LayerZero’s omnichain solutions. For more detailed configurations, make sure to visit [LayerZero’s official resources](https://docs.layerzero.network/v2/developers/evm/oft/quickstart). diff --git a/docs/Dev-Guide/contract-verify.md b/docs/Dev-Guide/contract-verify.md index 76e3a9728d..6c61b98354 100644 --- a/docs/Dev-Guide/contract-verify.md +++ b/docs/Dev-Guide/contract-verify.md @@ -7,22 +7,25 @@ sidebar_position: 2 # Contract Verification --- -In the interest of transparency, we recommend verifying all contracts on [Core Scan](https://scan.coredao.org/). Let’s check out a few of the common methods for verifying contracts, via the web, API, and Hardhat. +To promote transparency, it is considered best practice to verify all deployed contracts on the Core blockchain. While there are several ways to achieve contract verification, we recommend using Core's official verification tool, [Core Scan](https://scan.coredao.org/), for optimal reliability. This document guides you through the most commonly used methods for contract verification: the Core Scan web tool, the Core REST API, and the Hardhat Verification plugin. :::note -Make sure that your smart contract follows the [Solidity Support Guidelines by Core Chain](./smart-contract-guidelines.md), to do so ensure that the `evmVersion` parameter is set to `paris` under the solidity compiler settings. +Ensure that your smart contract complies with the [Solidity Support Guidelines by Core](./smart-contract-guidelines.md). To meet these guidelines, set the `evmVersion` parameter to `paris` within the Solidity compiler settings. ::: ## Web Verification via Core Scan -Web verification is the most commonly used smart contract verification strategy. After deploying your smart contract to Core, you can use its source code to verify it on Core Scan. +Web verification is the most commonly used smart contract verification strategy. After deploying your smart contract onto Core blockchain, you can use its source code to verify it on the Core Scan. -1. Search for the contract by address on [Core Scan](https://scan.test.btcs.network). -2. After locating the contract, select the **Contract** tab and click **Verify and Publish**_._ +1. Navigate to Core Scan website. + * [For Mainnet](https://scan.coredao.org/) + * [For Testnet](https://scan.test.btcs.network) +2. Search for the contract by address on Core Scan. Simply paste the contract address in the search bar on the website. +3. After locating the contract, select the **Contract** tab and click **Verify and Publish**_._ ![verify-core-scan](../../static/img/contract-verification/contract-verify-1.avif) -3\. Fill in the required verification information on the page, specifically: +4\. Fill in the required verification information on the page, specifically: * Contract address; * Compiler type: for simple contracts, select the `Single File` compiler type. For more complex contracts, such as contracts with external imports, select the `Standard Json` compiler type; @@ -31,15 +34,15 @@ Web verification is the most commonly used smart contract verification strategy. ![verify-core-scan](../../static/img/contract-verification/contract-verify-2.avif) -4\. On the next page, fill in the contract's Solidity source code. +5\. On the next page, fill in the contract's Solidity source code. -If your contract has constructor parameters, we recommend adding them in the `Constructor Arguments` field, although it’s not mandatory. The constructor parameters should be formatted as ABI-encoded bytes. Remix and other tools can generate these for you. +If your contract has constructor parameters, it is recommended to specify them in the `Constructor Arguments` field, although it’s not mandatory. The constructor parameters should be formatted as ABI-encoded bytes. [Remix](https://remix.ethereum.org/) and other tools can generate these for you. If you enabled optimization during contract compilation, select "Yes" for the `Optimization` field. ![verify-contract](../../static/img/contract-verification/contract-verify-3.avif) -5\. Click on **Verify and Publish** to finish the process. +6\. Click on **Verify and Publish** to finish the process. ![verify-contract](../../static/img/contract-verification/contract-verify-4.avif) @@ -47,7 +50,7 @@ Now your verified contract on Core Scan should look like this: ![verify-contract](../../static/img/contract-verification/contract-verify-5.avif) -## API Verification +## Core REST API Verification You can find the guide to using the Core API to verify contracts [here](https://docs.coredao.org/docs/api/api-documents/contracts). Please note that to make API calls you must register on Core Scan and generate an API key. @@ -139,6 +142,6 @@ module.exports = { ## Known Limitations -* Currently Core only supports solc compiler versions up to 0.8.19. +* Currently Core only supports solidity compiler versions up to 0.8.19. * Libraries are not supported using API verifications. * If you run into issues verifying very large (1000+ lines) single file contracts, we recommend switching to `Standard JSON` format for verification. diff --git a/docs/Dev-Guide/core-bridge-resources.md b/docs/Dev-Guide/core-bridge-resources.md index a937bc702e..e13636f0e9 100644 --- a/docs/Dev-Guide/core-bridge-resources.md +++ b/docs/Dev-Guide/core-bridge-resources.md @@ -48,8 +48,7 @@ The[ Core Bridge](https://bridge.coredao.org/) is powered by LayerZero, and enab | USDC | https://bscscan.com/address/0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d | | USDT |https://bscscan.com/address/0x55d398326f99059ff775485246999027b3197955 | | BTCB | 0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c | -| WBNB |0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c | - +| WBNB | 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c | | Polygon | Addresses | @@ -60,14 +59,6 @@ The[ Core Bridge](https://bridge.coredao.org/) is powered by LayerZero, and enab | WBTC | https://polygonscan.com/address/0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6 | - -| BNB Smart Chain (BSC) | Addresses | -| ----------------------------- | ------------------------------------------------------------ | -| Bridge | 0x29d096cD18C0dA7500295f082da73316d704031A | -| USDC | 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 | -| USDT | 0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9 | -| WBTC | 0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f | - | OPTIMISM | Addresses | | ----------------------------- | ------------------------------------------------------------ | | Bridge | 0x29d096cD18C0dA7500295f082da73316d704031A | @@ -84,3 +75,16 @@ The[ Core Bridge](https://bridge.coredao.org/) is powered by LayerZero, and enab | WBTC | 0x50b7545627a5162F82A992c33b87aDc75187B218 | +| ARBITRUM | Addresses | +| ----------------------------- | ------------------------------------------------------------ | +| Bridge | 0x29d096cD18C0dA7500295f082da73316d704031A | +| USDC | 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 | +| USDT | 0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9 | +| WBTC | 0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f | + +| BASE | Addresses | +| ----------------------------- | ------------------------------------------------------------ | +| Bridge | 0x84FB2086Fed7b3c9b3a4Bc559f60fFaA91507879 | +| USDC | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | +| WETH | 0x4200000000000000000000000000000000000006 | + diff --git a/docs/Dev-Guide/core-faucet.md b/docs/Dev-Guide/core-faucet.md index 5480bfcc4a..57b8394f4b 100644 --- a/docs/Dev-Guide/core-faucet.md +++ b/docs/Dev-Guide/core-faucet.md @@ -7,22 +7,30 @@ sidebar_position: 2 # Core Testnet Faucet --- -To help users get started and allow developers to quickly prototype their dApps, Core has released the public [Core Testnet Faucet](https://scan.test.btcs.network/faucet) to distribute Core testnet tokens, **tCORE**. +To help users get started and allow developers to quickly prototype their dApps, Core has released the public Core Testnet Faucet to distribute Core testnet tokens, **tCORE** or **tCORE2**. ## Steps to Obtain tCORE from Core Testnet Faucet -1. Navigate to the [faucet](https://scan.test.btcs.network/faucet) website. -2. Paste your address in the given textbox. Make sure you give the Core Testnet address of your wallet that you want to get funded with tCore. +1. Navigate to the faucet website. + * **For Core Blockchain Testnet (1114) Faucet:** https://scan.test2.btcs.network/faucet + * **For Core Blockchain Testnet (1115) Faucet:** https://scan.test.btcs.network/faucet + +2. Paste your address in the given textbox. Make sure you give the Core Testnet address of your wallet that you want to get funded with tCORE or tCORE2. 3. Complete the CAPTCHA -4. Click the `Get tCORE` button. After requesting tCORE from the faucet, you'll see your MetaMask balance increase. +4. If using faucet for Core Blockchain Testnet (1114), click the `Get tCORE2` button. After requesting tCORE from the faucet, you'll see your MetaMask balance increase. + +![using-faucet-test2](../../static/img/faucet/faucet-test2.png) + +5. If using faucet for Core Blockchain Testnet (1115), click the `Get tCORE` button. After successfully requesting tCORE2 from the faucet, you'll see your wallet's balance increase. ![using-faucet](../../static/img/faucet/faucet.png) + :::caution -Each address can request **only one tCORE per day**. If you've run out of tCORE and the faucet won't send you more because of the one tCORE daily limit, come back tomorrow and try again! +Each address can request **only one tCORE or tCORE2 per day** from the faucet in 24 hours. If you've run out of tCORE or tCORE2 and the faucet won't send you more because of the one tCORE or tCORE2 daily limit, come back after 24 hours and try again. Or else you can request in Core's Discord Server. ::: :::note -tCORE is only used for testing and does not have any value. Do not use it for real financial transactions. +tCORE and tCORE2 are only used for testing and does not have any value. Do not use it for real financial transactions. ::: diff --git a/docs/Dev-Guide/core-mainnet-wallet-config.md b/docs/Dev-Guide/core-mainnet-wallet-config.md index fc7755273a..310d3679c0 100644 --- a/docs/Dev-Guide/core-mainnet-wallet-config.md +++ b/docs/Dev-Guide/core-mainnet-wallet-config.md @@ -1,10 +1,10 @@ --- -sidebar_label: Core Chain Mainnet +sidebar_label: Core Mainnet hide_table_of_contents: false sidebar_position: 2 --- -# Connect to Core Chain Mainnet +# Connect to Core Mainnet --- :::note diff --git a/docs/Dev-Guide/core-testnet-wallet-config.md b/docs/Dev-Guide/core-testnet-wallet-config.md index 74c1552839..12e79ed861 100644 --- a/docs/Dev-Guide/core-testnet-wallet-config.md +++ b/docs/Dev-Guide/core-testnet-wallet-config.md @@ -1,10 +1,10 @@ --- -sidebar_label: Core Chain Testnet +sidebar_label: Core Testnet hide_table_of_contents: false sidebar_position: 2 --- -# Connect to Core Chain Testnet +# Connect to Core Testnet --- :::note This is a detailed guideline for connecting to Core Testnet using the MetaMask wallet. @@ -24,10 +24,12 @@ There are multiple ways to add Core Testnet configurations to your MetaMask Wall Once you've set up your MetaMask wallet, you can use it to connect to Core Testnet by adding Core Testnet's chain details in MetaMask's network settings. Navigate to `Settings->Networks` in MetaMask and click the `Add Network` button. Input the following information: * **Network Name:** Core Blockchain TestNet -* **New RPC URL:** https://rpc.test.btcs.network -* **Chain ID:** 1115 -* **Currency Symbol:** tCORE -* **Block Explorer URL:** https://scan.test.btcs.network +* **New RPC URL:** https://rpc.test2.btcs.network +* **Chain ID:** 1114 +* **Currency Symbol:** tCORE2 +* **Block Explorer URL:** https://scan.test2.btcs.network +* **Faucet:** https://scan.test2.btcs.network/faucet +* **Staking Website:** https://stake.test2.btcs.network/ ![add-network-metamask](../../static/img/testnet-wallet-config/testnet-config-wallet-1.png) @@ -56,8 +58,12 @@ If you using the Chrome MetaMask extension, you can use a quick shortcut to add ![add-network-metamask](../../static/img/testnet-wallet-config/testnet-wallet-config-2.png) :::info + +#### New Testnet +Core's new testnet with `chainID 1114` is now live and recommended for use. It supports BTC Testnet for staking, unlike the previous version (`chainID 1115`). The old testnet will soon be deprecated and eventually retired, so switch to the new testnet to access the latest features. + #### Rebrand Updates -`Satoshi Chain/BTCs` have been rebranded to `Core Chain/CORE`, respectively. If you added the Testnet before the rebranding, you'll need to update Network Name and Currency Symbol in the MetaMask settings manually; otherwise, you won't be able to use the current version of Core Testnet. Go to `Settings->Network`, and select `Core Testnet` to open up the network settings. Update Network Name and Currency Symbol to the values stated in the [above section](#adding-network-manually) and click the Save button. You're good to go! +`Satoshi Chain/BTCs` have been rebranded to `Core/CORE`, respectively. If you added the Testnet before the rebranding, you'll need to update Network Name and Currency Symbol in the MetaMask settings manually; otherwise, you won't be able to use the current version of Core Testnet. Go to `Settings->Network`, and select `Core Testnet` to open up the network settings. Update Network Name and Currency Symbol to the values stated in the [above section](#adding-network-manually) and click the Save button. You're good to go! ::: ### Funding Wallet with tCORE Tokens diff --git a/docs/Dev-Guide/dapp-on-core.md b/docs/Dev-Guide/dapp-on-core.md index 33978885df..8ecf78035f 100644 --- a/docs/Dev-Guide/dapp-on-core.md +++ b/docs/Dev-Guide/dapp-on-core.md @@ -2,7 +2,7 @@ sidebar_label: Build dApp on Core hide_table_of_contents: false sidebar_position: 2 -description: Build a Full Stack dApp on Core Chain +description: Build a Full Stack dApp on Core --- @@ -250,7 +250,7 @@ npx hardhat compile ## Deploy and Interact with Smart Contract -1. Before deploying your smart contract on the Core Chain, it is best advised to first run a series of tests making sure that the smart contract is working as desired. Refer to the detailed guide [here](https://docs.coredao.org/developer/develop-on-core/building-on-core/using-hardhat#contract-testing) for more details. +1. Before deploying your smart contract on Core, it is best advised to first run a series of tests making sure that the smart contract is working as desired. Refer to the detailed guide [here](https://docs.coredao.org/docs/Dev-Guide/hardhat#contract-testing) for more details. 2. Create a `scripts` folder in the root directory of your project. Inside this folder, create a file `deploy-and-call.js`; paste the following script into it. @@ -287,10 +287,10 @@ main().catch((error) => { process.exitCode = 1; }); ``` -3. Make sure your MetaMask wallet has tCORE test tokens for the Core Testnet. Refer [here](https://docs.coredao.org/developer/develop-on-core/using-core-testnet/connect-to-core-testnet#testnet-facuet-tcore-account-funding) for details on how to get tCORE tokens from Core Faucet. +3. Make sure your MetaMask wallet has tCORE or tCORE2 test tokens for the Core Testnet. Refer [here](https://docs.coredao.org/docs/Dev-Guide/core-testnet-wallet-config) for details on how to get tCORE or tCORE2 tokens from Core Faucet. -4. Run the following command from the root directory of your project, to deploy your smart contract on the Core Chain. +4. Run the following command from the root directory of your project, to deploy your smart contract on the Core blockchain. ```bash @@ -311,7 +311,7 @@ call retrieve() again: BigNumber { value: "100" } 5. Make sure to save the Address of Storage Contract at which is deployed, as obtained above, this will be used for interacting with smart contract from the dApp's frontend. -🎉 Congratulations! You have successfully learned how to create, compile, and deploy a smart contract on the Core Chain Testnet using the Hardhat. +🎉 Congratulations! You have successfully learned how to create, compile, and deploy a smart contract on the Core Testnet using the Hardhat. ## Interacting with Smart Contract through Frontend diff --git a/docs/Dev-Guide/dev-tools.md b/docs/Dev-Guide/dev-tools.md index b70f97fb46..72ea9555cd 100644 --- a/docs/Dev-Guide/dev-tools.md +++ b/docs/Dev-Guide/dev-tools.md @@ -15,9 +15,9 @@ sidebar_position: 2 * **[RPC Endpoints](https://chainlist.org/chain/1115):** RPC endpoints for Core Testnet's RPC service. -* **[Core Faucet](https://scan.test.btcs.network/faucet):** fund your testnet address with tCORE. +* **[Core Faucet](https://scan.test.btcs.network/faucet):** fund your testnet address with tCORE or tCORE2. -* **[Core Staking](https://stake.test.btcs.network/):** tCORE staking website. +* **[Core Staking](https://stake.test.btcs.network/):** Core's official testnet staking website. * **[Gnosis Safe](https://safe.test.btcs.network/welcome):** secure multi-sig management of digital assets. @@ -33,11 +33,11 @@ sidebar_position: 2 * **[Core Bridge](https://bridge.coredao.org/):** official bridge for the Core ecosystem (more details in Core Bridge Resources) -* **[Core Staking](https://stake.coredao.org/):** official CORE staking website. +* **[Core Staking](https://stake.coredao.org/):** Core's official mainnet staking website. * **[Web3 Provider](https://cloud.infstones.com/login):** scalable API infrastructure provided by InfStones. -* **[Core Scan Contract Verifier](https://scan.coredao.org/verifyContract):** web tool for contract verification (guide here). +* **[Core Scan Contract Verifier](https://scan.coredao.org/verifyContract):** web tool for contract verification (guide [here](https://docs.coredao.org/docs/Dev-Guide/contract-verify#web-verification-via-core-scan)). * **[Gnosis Safe](https://safe.coredao.org/welcome):** secure multi-sig management of digital assets. diff --git a/docs/Dev-Guide/erc20-tokens.md b/docs/Dev-Guide/erc20-tokens.md index 5c47f163b0..5297eba0a0 100644 --- a/docs/Dev-Guide/erc20-tokens.md +++ b/docs/Dev-Guide/erc20-tokens.md @@ -2,7 +2,7 @@ sidebar_label: ERC-20 Tokens hide_table_of_contents: false sidebar_position: 2 -description: ERC-20 on Core Chain +description: ERC-20 on Core --- # ERC20 Tokens diff --git a/docs/Dev-Guide/erc721-tokens.md b/docs/Dev-Guide/erc721-tokens.md index 8ac07de2b7..459f044ded 100644 --- a/docs/Dev-Guide/erc721-tokens.md +++ b/docs/Dev-Guide/erc721-tokens.md @@ -2,7 +2,7 @@ sidebar_label: ERC-721 Tokens hide_table_of_contents: false sidebar_position: 2 -description: ERC-721 on Core Chain +description: ERC-721 on Core --- # ERC721 Tokens diff --git a/docs/Dev-Guide/hardhat.md b/docs/Dev-Guide/hardhat.md index 13012a8921..1e801f05fa 100644 --- a/docs/Dev-Guide/hardhat.md +++ b/docs/Dev-Guide/hardhat.md @@ -2,7 +2,7 @@ sidebar_label: Using Hardhat hide_table_of_contents: false sidebar_position: 2 -description: Deploy Contracts on Core Chain using the Hardhat +description: Deploy Contracts on Core using the Hardhat --- # Using Hardhat @@ -103,7 +103,7 @@ Copy the following into your `hardhat.config.js` file: ``` -**Make sure that your smart contract follows the [Solidity Support Guidelines by Core Chain](./smart-contract-guidelines.md)**, to do so ensure that the `evmVersion` parameter is set to `paris` under the solidity compiler settings in the `hardhat.config.js` file. +**Make sure that your smart contract follows the [Solidity Support Guidelines for Core Blockchain](./smart-contract-guidelines.md)**, to do so ensure that the `evmVersion` parameter is set to `paris` under the solidity compiler settings in the `hardhat.config.js` file. > Note that we need to pass in private keys/mnemonic for Provider. You can create a `secret.json` to store them. Do not forget to add this file to the `.gitignore` of your project so that you don't accidentally check your private keys into a public repository. And make sure you keep this file in an absolutely safe place! diff --git a/docs/Dev-Guide/network-config.md b/docs/Dev-Guide/network-config.md index 52d6a1bbbe..594328daa3 100644 --- a/docs/Dev-Guide/network-config.md +++ b/docs/Dev-Guide/network-config.md @@ -10,6 +10,20 @@ sidebar_position: 2 Core mainnet and testnet chain details ## Core Testnet + +### (Latest) Core Blockchain Testnet (1114 (0x45a)) +_Note: This is the latest testnet and is strongly recommended for use. The previous testnet version will be deprecated and eventually retired, so transitioning to this new testnet ensures continued support and access to the latest features._ + +* **Network Name:** Core Blockchain Testnet +* **RPC URL:** https://rpc.test2.btcs.network +* **Chain ID:** 1114 (0x45a) +* **Currency Symbol:** tCORE2 +* **Block Explorer URL:** https://scan.test2.btcs.network +* **Faucet:** https://scan.test2.btcs.network/faucet +* **Staking Website:** https://stake.test2.btcs.network/ + +### Core Blockchain Testnet (1115 (0x45b)) + * **Network Name:** Core Blockchain Testnet * **RPC URL:** https://rpc.test.btcs.network * **Chain ID:** 1115 (0x45b) diff --git a/docs/Dev-Guide/precompile-addresses.md b/docs/Dev-Guide/precompile-addresses.md index ff7bd0bdba..55f0cba8a2 100644 --- a/docs/Dev-Guide/precompile-addresses.md +++ b/docs/Dev-Guide/precompile-addresses.md @@ -7,7 +7,7 @@ sidebar_position: 2 # Precompiles & Deployment Addresses --- -Following is a list of precompiled addresses of Core Chain ecosystem. +Following is a list of precompiled addresses of Core ecosystem. | **Name** | **Address** | |---------------------------------------|------------------------------------------------------------------------------| diff --git a/docs/Dev-Guide/remix.md b/docs/Dev-Guide/remix.md index 15094cdffa..79973b3735 100644 --- a/docs/Dev-Guide/remix.md +++ b/docs/Dev-Guide/remix.md @@ -2,7 +2,7 @@ sidebar_label: Using Remix hide_table_of_contents: false sidebar_position: 2 -description: Deploy Contracts on Core Chain using the Remix IDE +description: Deploy Contracts on Core using the Remix IDE --- # Using Remix @@ -22,7 +22,7 @@ In the picture below, you'll see that you can choose different Solidity compiler You can choose different environments on Remix, as shown in the picture below. An environment is just the blockchain network you'll be working with. There are built-in Virtual Machines (VMs), as well as providers that enable you to connect to external VMs. -To connect to Core Testnet, choose `Injected Provider - MetaMask`. Make sure your MetaMask wallet is [configured for Core Tesnet](./core-testnet-wallet-config.md) using the testnet chain settings, and verify that your account is funded from the [faucet](https://scan.test.btcs.network/faucet). +To connect to Core Testnet, choose `Injected Provider - MetaMask`. Make sure your MetaMask wallet is [configured for Core Tesnet](./core-testnet-wallet-config.md) using the testnet chain settings, and verify that your account is funded from the appropriate faucet based ont eh Core testnet your are connectede to. Refer [here](https://scan.test.btcs.network/faucet) for Core Testnet (1115) and [here](https://scan.test2.btcs.network/faucet) for Core Testnet (1114). ![remix-ide](../../static/img/remix/remix-3.avif) @@ -32,7 +32,7 @@ You will be asked to connect to MetaMask. Once connected, Remix shows the connec ## Smart Contract Compilation and Deployment -* **Make sure that your smart contract follows the [Solidity Support Guidelines by Core Chain](./smart-contract-guidelines.md)**. +* **Make sure that your smart contract follows the [Solidity Support Guidelines for Core Blockchain](./smart-contract-guidelines.md)**. * Remix comes with several default preset contracts loaded to the default workspace, as shown below. For this tutorial, let's use the preloaded `1_Storage.sol` contract. This contract implements a simple database that allows us to store one number via the `store()` function and view it via the `retrieve()` function. diff --git a/docs/Dev-Guide/rpc-cli.md b/docs/Dev-Guide/rpc-cli.md index 5363f67f5b..07a16d4ea9 100644 --- a/docs/Dev-Guide/rpc-cli.md +++ b/docs/Dev-Guide/rpc-cli.md @@ -15,7 +15,7 @@ Remote Procedure Calls (RPCs) are one way of solving this problem. RPCs are soft If it helps, you can think of an RPC as being essentially the opposite of an oracle. The [purpose of an oracle](https://cointelegraph.com/learn/what-is-a-blockchain-oracle-and-how-does-it-work) is to take external data (such as the results of an election or a weather forecast) and move it into a blockchain, while the purpose of an RPC is to take internal data (such as information related to transactions and blocks) and move it out of a blockchain. ## Which RPC Providers can I Use to connect to Core Network Mainnet? -The Core Chain supports different [RPC providers](https://chainlist.org/chain/1116) -- both native Core RPC and third-party RPCs providers. Refer to the complete list of RPC endpoints [here](./rpc-list.md) for conencting to Core mainnet or testnet. +The Core supports different [RPC providers](https://chainlist.org/chain/1116) -- both native Core RPC and third-party RPCs providers. Refer to the complete list of RPC endpoints [here](./rpc-list.md) for conencting to Core mainnet or testnet. ## Working with RPCs Through the Command Line We can use the CURL for connecting to CORE RPC endpoitns via CLI. `CURL`, also written as `cURL`, is short for `client URL`. In essence, it's a CLI tool that offers developers a way of fetching data directly from a remote server. The simplest CURL command consists of fetching a webpage's HTML code by passing in a URL, and you can try it now by running this in your CLI of choice: @@ -24,7 +24,7 @@ We can use the CURL for connecting to CORE RPC endpoitns via CLI. `CURL`, also w curl https://coredao.org/ ``` -The below command illustrates how CURL can be used to get information related to a specific transaction on the Core Chain by passing in the transactions hash and a few other parameters. +The below command illustrates how CURL can be used to get information related to a specific transaction on the Core blockchain by passing in the transactions hash and a few other parameters. ```bash curl -H "Content-Type: application/json" \ diff --git a/docs/Dev-Guide/rpc-list.md b/docs/Dev-Guide/rpc-list.md index a79ce7f499..fb92a498a5 100644 --- a/docs/Dev-Guide/rpc-list.md +++ b/docs/Dev-Guide/rpc-list.md @@ -11,18 +11,23 @@ Remote Procedure Call (RPC) endpoints are crucial for developers and application ## RPC Endpoints for Core Blockchain -### Core Blockchain Testnet (1115 (0x45b)) +### Core Blockchain Testnet (1114 (0x45a)) +_Note: This is the latest testnet and is strongly recommended for use. The previous testnet version will be deprecated and eventually retired, so transitioning to this new testnet ensures continued support and access to the latest features._ + +* https://rpc.test2.btcs.network + +### Core Blockchain Testnet (1115 (0x45b)) * https://rpc.test.btcs.network ### Core Blockchain Mainnet (1116 (0x45c)) * wss://ws.coredao.org -* wss://core.drpc.org * https://rpc.coredao.org -* https://core.drpc.org * https://rpcar.coredao.org (For Archive Node) -### Third Party RPC Enpoints for Core Blockchain Mainnet -* **Ankr:** https://rpc.ankr.com/core -* **1RPC:** https://1rpc.io/core -* **INFSTONES:** https://core.public.infstones.com -* **IceCreamSwap:** https://rpc-core.icecreamswap.com \ No newline at end of file +### Third Party RPC Endpoints for Core Blockchain Mainnet +* **Ankr:** https://rpc.ankr.com/core +* **1RPC:** https://1rpc.io/core +* **INFSTONES:** https://core.public.infstones.com +* **IceCreamSwap:** https://rpc-core.icecreamswap.com +* **ZAN Node:** https://api.zan.top/core-mainnet +* **dRPC:** https://core.drpc.org | wss://core.drpc.org diff --git a/docs/Dev-Guide/rpc-postman.md b/docs/Dev-Guide/rpc-postman.md index a7f0fb8759..8b396d8ff6 100644 --- a/docs/Dev-Guide/rpc-postman.md +++ b/docs/Dev-Guide/rpc-postman.md @@ -29,7 +29,7 @@ In this document, we'll cover the very basics of hitting an RPC endpoint with Po ![new-workspace-postman](../../static/img/rpc/postman/rpc-psotman-4.png) -5. First, change the `GET` request to a `POST` request, as that's how our query will be structured. Then, add the RPC URL that you want to use to get data related to a specific Core Chain transaction. Remember that you can use any of the [valid Core RPC URLs](./rpc-list.md). +5. First, change the `GET` request to a `POST` request, as that's how our query will be structured. Then, add the RPC URL that you want to use to get data related to a specific Core blockchain transaction. Remember that you can use any of the [valid Core RPC URLs](./rpc-list.md). ![set-request-type-postman](../../static/img/rpc/postman/rpc-psotman-5.png) diff --git a/docs/Dev-Guide/smart-contract-guidelines.md b/docs/Dev-Guide/smart-contract-guidelines.md index 2309f9f52a..d40f7bcfe7 100644 --- a/docs/Dev-Guide/smart-contract-guidelines.md +++ b/docs/Dev-Guide/smart-contract-guidelines.md @@ -2,45 +2,41 @@ sidebar_label: Smart Contract Guidelines hide_table_of_contents: false sidebar_position: 2 -description: Guidelines for Solidity Support for Developing Smart Contracts on Core Chain +description: Guidelines for Solidity Support for Developing Smart Contracts on Core --- -# Smart Contract Development Guidelines on Core Chain +# Guidelines for Smart Contract Development on Core --- -Core Chain is constantly evolving for better user and developer experience. This document aims to provide clear instructions for developers on the supported Solidity versions and the necessary settings to ensure your smart contracts are correctly deployed and verifiable on the Core Chain network. To maintain consistency and compatibility, Core Chain supports Solidity versions higher than 0.8.19 using the **Paris** EVM. Adhering to this specified version and configuration guidelines is crucial for the seamless functioning of your contracts. The following sections will detail the recommended Solidity settings, including compiler options and verification procedures, to help you achieve a smooth and secure contract deployment on Core Chain. +Core blockchain is constantly evolving to provide a better user and developer experience. This document provides clear instructions for developers on the supported Solidity versions and the necessary settings to ensure your smart contracts are correctly deployed and verifiable on the Core network. To maintain consistency and compatibility, Core blockchain supports Solidity versions higher than **0.8.24** using the **Shanghai** EVM version. Adhering to this specified version and configuration guidelines is crucial for the seamless functioning of your contracts. The following sections will detail the recommended Solidity settings, including compiler options and verification procedures, to help you achieve a smooth and secure contract deployment on the Core blockchain. -## Background +## Recommended Configurations for Deploying Smart Contracts on Core -At the moment, Core's EVM matches version **Paris** and _does not support_ the deployment and verification of smart contracts of version **0.8.20^** with default EVM settings. Core is upgrading to the latest version of EVM and is projected to finish by _early of Q3 2024_. - -## Configurations to Correctly Deploy Smart Contracts on Core - -To make sure that the lag in support for deployment and verification of smart contracts of version **0.8.20^** does not stagger the developement of dapps on the Core Chain, following are the guidelines to ensure that developers can successfully deploy and verify smart contracts of version 0.8.20^ on Core before the Core EVM upgrade. +Currently, Core's EVM matches version **Shanghai** and does not support the deployment and verification of smart contracts of version **0.8.24^** with default EVM settings. To make sure that the lag in support for deployment and verification of smart contracts of version 0.8.24^ does not stagger the development of dapps on the Core, the following are the guidelines to ensure that developers can successfully deploy and verify smart contracts of version 0.8.24^ on Core. ### EVM Settings -In order to support running smart contracts with Solidity version 0.8.20^, Developers should _not use the default EVM settings_ to compile the smart contracts. Instead, they need to _pick the most recent version before Shanghai_, which is **Paris**. +To support running smart contracts with Solidity version **0.8.24^**, developers **_should_** choose the **Shanghai** EVM version and **not** the default EVM versions to compile and deploy the smart contracts. #### Hardhat -* Please add `evmVersion: "paris"` in solidity comppiler configurations. +* Please add `evmVersion: "shanghai"` in solidity comppiler configurations. -![hardhat-solidity-setting](../../static/img/solidity-support/evm-setting.jpg) +![hardhat-solidity-setting](../../static/img/solidity-support/hardhat-evm-setting.png) #### Remix -* Please choose `paris` in Compiler configuration. +* Please choose `shanghai` in Compiler configuration. ![remix-solidity-setting](../../static/img/solidity-support/remix-setting.png) ### Contract Verification -* In order to make the verification process easier, Core scan has changed the platform default EVM version to **Paris** for solidity version **0.8.20^**. -* Developers can take the exact same steps to verify their smart contracts with version 0.8.20^ as of the older versions, refer [here](./contract-verify.md) for more details on contract verification on Core Chain. +* To simplify the verification process, the default EVM version for Core Scan is set to **Shanghai** for solidity version **0.8.24^**. +* Developers can take the same steps to verify their smart contracts with version 0.8.24^ as of the older versions. Refer [here](./contract-verify.md) for more details on contract verification on Core blockchain. -### Smart Contracts Based on Solidity version < 0.8.20 +### Smart Contracts Based on Solidity version < 0.8.24 -* Note that for smart contracts with solidity version **\< 0.8.20** are _not_ affected by this and can operate as usual. +* **Note**: smart contracts with solidity version **\< 0.8.24** are unaffected and can operate as usual. diff --git a/docs/FAQs/LST-stCore-faqs.md b/docs/FAQs/LST-stCore-faqs.md index 211c2fb67b..706577d3e3 100644 --- a/docs/FAQs/LST-stCore-faqs.md +++ b/docs/FAQs/LST-stCore-faqs.md @@ -8,7 +8,7 @@ sidebar_position: 2 --- ### 1. What is stCORE? -stCORE is an innovative solution by Core Chain designed to enhance the utility of CORE tokens by introducing liquid staking. This allows CORE token holders to maximize the potential of their assets with increased flexibility and efficiency. The process involves staking CORE tokens to secure the network and simultaneously gaining liquidity through minting stCORE tokens, which can be utilized in various DeFi protocols. +stCORE is an innovative solution on the Core blockchain designed to enhance the utility of CORE tokens by introducing liquid staking. This allows CORE token holders to maximize the potential of their assets with increased flexibility and efficiency. The process involves staking CORE tokens to secure the network and simultaneously gaining liquidity through minting stCORE tokens, which can be utilized in various DeFi protocols. ### 2. What are the benefits of liquid staking with stCORE? Liquid staking with stCORE allows CORE token holders to participate in DeFi protocols while their assets are staked. This enhances asset utility and potential yield generation without compromising the security contributions to the network. diff --git a/docs/FAQs/btc-staking-faqs.md b/docs/FAQs/btc-staking-faqs.md index 9c92844804..7087fc6030 100644 --- a/docs/FAQs/btc-staking-faqs.md +++ b/docs/FAQs/btc-staking-faqs.md @@ -4,61 +4,77 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Non-Custodial BTC Staking FAQs +# Non-Custodial Bitcoin Staking FAQs --- -### 1. What is Non-Custodial BTC Staking on the Core network? -Core provides BTC holders with a risk free and transparent opportunity to lock up/stake their BTC on the Bitcoin Network without giving up custody of their BTC assets, in order to participate in Core Chain’s security and earn CORE rewards in return. +### 1\. What is Non-Custodial Bitcoin Staking on the Core network? -### 2. How does Non-Custodial BTC Staking work? +Core provides Bitcoin holders with a risk-free and transparent opportunity to lock up/stake their Bitcoin on the Bitcoin Network without giving up custody of their Bitcoin assets. In return, they can participate in the Core blockchain’s security through Satohi Plus and earn CORE rewards. -With the non-custodial bitcoin staking, Core Chain's protocol incorporate bitcoin holders as the third part of Satoshi Plus consensus. Core Chain's methodology for integrating bitcoin staking centers on [CLTV timelock](https://en.bitcoin.it/wiki/Timelock#CheckLockTimeVerify). CLTV timelock are Bitcoin-native cryptographic feature that specify a condition under which the transaction output cannot be spent until a certain point in time has passed. This time can be defined in terms of a specific date and time or by block height. Rather than holders giving up custody of their bitcoins to external staking, stakers on Core Chain merely need to place their bitcoins in CLTV timelocks as part of a transaction, and the transaction can be designed to return the output after the time period has elapsed. Within that transaction, stakers must include a script containing the same information that Bitcoin miners include in their delegated blocks: +### 2\. How does Non-Custodial Bitcoin Staking work? -1. The address of the Core Validator the staker wants to delegate their bitcoin to. -2. The address that the staker would like their CORE token rewards to be sent to. +With the non-custodial bitcoin staking, Core's protocol incorporates bitcoin holders into its consensus mechanism, Satoshi Plus. Core's methodology for integrating Bitcoin staking centers on [CLTV timelock](https://en.bitcoin.it/wiki/Timelock#CheckLockTimeVerify), a Bitcoin-native cryptographic feature that specifies a condition under which the transaction output cannot be spent until a particular point in time has passed. For more details on how Non-Custodial Bitcoin Staking works, refer [here](https://docs.google.com/document/d/1DfhLwMfANGYhcJe4UiyRJxpw1FvFX6k-QQK4cMYYOls/edit?tab=t.0#heading=h.1i3v4ioboaxe). -Bitcoin stakers earn yields on their otherwise passive bitcoin in the form of CORE token rewards. The end result is that billions of dollars in underutilized Bitcoin value will become productive, remunerating stakers while also expanding the scope of Bitcoin's utility. +### 3\. What are the advantages of Non-Custodial Bitcoin Staking? -### 3. How does non-custodial BTC staking maintain security and trust? -By allowing users to stake their bitcoins without moving them off the Bitcoin blockchain, non-custodial BTC staking avoids introducing new trust assumptions. It leverages the inherent security and trust of Bitcoin’s established infrastructure, maintaining high security for staked assets. +1. **Tailored for Long-Term Holders and Institutions:** Designed for those who prefer keeping their bitcoins on the secure Bitcoin blockchain, non-custodial Bitcoin staking offers a way to earn rewards during a specified holding period without frequent transactions. +2. **No New Trust Assumptions:** Users can stake their bitcoins directly on the Bitcoin blockchain, maintaining the high security and trust inherent in Bitcoin's robust infrastructure without transferring assets off-chain. +3. **Opportunity to Earn Passive Rewards:** Bitcoin stakers can earn CORE token rewards in exchange for contributing to the Core blockchain's consensus, enhancing the blockchain's functionality and security. +4. **Self-Custody and Security:** Bitcoin Staking is 100% secure with self-custody; users execute staking transactions themselves on the Bitcoin network, ensuring their Bitcoin does not leave the blockchain. +5. **Use of Native Cryptographic Features:** Bitcoin staking on Core utilizes battle-tested cryptographic features of the Bitcoin network, making it safer than non-native solutions. +6. **Flexibility in Transaction Building:** Users can build their staking transactions using any preferred tool, significantly reducing the risk of supply chain attacks from third-party libraries. -### 4. What are the advantages of Non-Custodial BTC Staking? +### 4\. How does Non-Custodial Bitcoin staking maintain security and trust? -1. **Tailored for Long-Term Holders and Institutions:** Designed for those who prefer keeping their bitcoins on the secure Bitcoin blockchain, non-custodial BTC staking offers a way to earn rewards during a specified holding period without frequent transactions. +Core's Non-Custodial Bitcoin staking avoids introducing new trust assumptions by allowing users to stake their bitcoins without moving them off the Bitcoin blockchain. It leverages Bitcoin's established infrastructure's inherent security and trust, maintaining high security for staked assets. -2. **No New Trust Assumptions:** Users can stake their bitcoins directly on the Bitcoin blockchain, maintaining the high security and trust inherent in Bitcoin's robust infrastructure without the need to transfer assets off-chain. +### 5\. What is the role of Core in the process of Non-Custodial Bitcoin staking? +It is noted here that no assets are moved onto the Core blockchain or into any trusted third-party or smart contracts. Instead, users' assets remain locked on the Bitcoin network under the complete ownership of the user. From the Core’s perspective, only the relayers monitor the Bitcoin network for any Bitcoin staking transactions. Upon detection, these are picked, and only the valid ones are passed down to the consensus engine and accrual of staking rewards. With the Fusion Upgrade, the users would manually have to claim their staking rewards in the form of CORE tokens. -3. **Opportunity to Earn Passive Rewards:** BTC stakers can earn CORE token rewards in exchange for their contributions to the Core Chain's consensus, enhancing the blockchain's functionality and security. +### 6\. What happens to my asset in the validator I delegated my Bitcoins to, or the Core blockchain go down? -4. **Self-Custody and Security:** BTC Staking is 100% secure with self-custody; users execute staking transactions themselves on the Bitcoin network, ensuring their BTC does not leave the blockchain. +Delegating Bitcoins for staking rewards through Core’s Non-Custodial Bitcoin does not require any kind of asset transfers or bridging onto the Core blockchain or to validators. Even if the validators or Core blockchain goes down, users' assets remain in their complete custody and can be redeemed after the timelock expires on the Bitcoin network. -5. **Use of Native Cryptographic Features:** BTC staking on Core utilizes battle-tested cryptographic features of the Bitcoin network, making it safer than non-native solutions. +### 7\. What are some challenges associated with Short Time Locks on Bitcoin? -6. **Flexibility in Transaction Building:** Users have the flexibility to build their staking transactions using any preferred tool, significantly reducing the risk of supply chain attacks from third-party libraries. +CLTV timelock is a native feature of the Bitcoin network. A user can lock up any amount of Bitcoin for the desired time period through this feature. However, with shorter time lock periods (e.g., 10 minutes) due to network congestions and Bitcoin network block times, these transactions may not be processed quickly enough, leading to delays in redeeming the Bitcoin. Note that for a Bitcoin staking transaction to be valid, the minimum requirements should be met. -### 5. Are there any specific requirements to participate in Non-Custodial BTC Staking? -Yes, participants must stake a minimum of **0.01 BTC for at least 10 days**. This minimal requirement makes it accessible for a wide range of Bitcoin holders. +### 8\. Are there any specific requirements to participate in Non-Custodial Bitcoin Staking? -### 6. Why is that the staking address provided differs from your original Bitcoin address? -The staking address is derived from your wallet's master private key, ensuring your control and security over your assets. Your Bitcoins remain safely stored in your original wallet, unaffected by staking. While staked assets may not be visible in some wallet versions, you still have complete ownership. +Users should align with the following requirements for a Bitcoin staking transaction to be considered valid. -You can view your staked funds by searching the staking address on the any BTC explorer like [Mempool](https://mempool.space/). We're actively working to make staked assets visible in all supported wallets especially through command line versions. +* Users must ensure that the transaction is sent to their address. +* Using the Bitcoin native timelock feature, specify the lock-up amount intended to be delegated to the validator on the Core blockchain as the transaction output. +* **_Minimum requirements exist_** for the **amount**of BTC that can staked. Users should stake at least **0.01 Bitcoin** (excluding the transaction fees). +* The transaction should also contain an op\_return output specifying + * The address of the Core Validator the staker wants to delegate their Bitcoin to. + * The address to which the staker would like their CORE token rewards to be sent. -### 7. Does Core Chain provide any hardware wallet support for Non-Custodial BTC Staking? +### 9\. Why does the staking address provided differ from your original Bitcoin address? -At present, Non-Custodial BTC Staking does not support hardware wallets due to technical constraints. Nevertheless, we're constantly exploring ways to enhance compatibility with various wallet types, prioritizing both security and convenience for our users. +The staking address is derived from your wallet's master private key, ensuring your control and security over your assets. Your Bitcoins remain safely stored in your original wallet, unaffected by staking. While staked assets may not be visible in some wallet versions, you still have complete ownership. -### 8. What are the important considerations for Locking Periods to keep in mind before staking your assets? +You can view your staked funds by searching the staking address on any Bitcoin explorer like [Mempool](https://mempool.space/). We're actively working to make staked assets visible in all supported wallets, especially through command-line versions. -* **Time Lock Expiration:** When you lock your Bitcoin for staking, it's inaccessible until the staking period concludes. -* **Choosing wisely:** We advise selecting your locking period thoughtfully, taking into account your investment objectives and risk tolerance. Starting with shorter locking periods can help you become familiar with the process before committing to longer durations. -* **Staked Amount Verification:** currently due to some technical complexities it is possible that your staked asset is not visible in your wallet when checked through CLI, however, you can easily verify that you have the complete ownership of your staked assets from the [Core Chain Non-Custodial BTC Staking Website](https://stake.coredao.org/). +### 10\. Does Core provide hardware wallet support for Non-Custodial Bitcoin Staking? +Due to technical constraints, Non-Custodial Bitcoin Staking does not currently support hardware wallets. Nevertheless, we're constantly exploring ways to enhance compatibility with various wallet types, prioritizing security and convenience for our users. -### 9. Why is my staked asset not visible in my wallet? +### 11\. What are the important considerations for Locking Periods before staking your assets? -Currently due to some technical complexities it is possible that your staked asset is not visible in your wallet when checked through CLI, however, you can easily verify that you have the complete ownership of your staked assets from the [Core Chain Non-Custodial BTC Staking Website](https://stake.coredao.org/). +* **Time Lock Expiration: **When you lock your Bitcoin for staking, it's inaccessible until the staking period concludes. +* **Choosing wisely:** You should select your locking period thoughtfully, considering your investment objectives and risk tolerance. Starting with shorter locking periods can help you become familiar with the process before committing to longer durations. +* **Staked Amount Verification:** Due to some technical complexities, it is possible that your staked asset is not visible in your wallet when checked through CLI. However, you can easily verify that you have complete ownership of your staked assets from the [Core's Official Staking Website](https://stake.coredao.org/). Also, delays from block time, the number of block confirmation requirements, and network congestion on the Bitcoin network might lead to delays in the confirmation of your transactions, making your assets not visible in your wallets. +### 12\. Why is my staked asset not visible in my wallet? + +Due to technical complexities, it is possible that your staked asset is not visible in your wallet when checked through CLI. However, you can easily verify that you have complete ownership of your staked assets from the [Core's Official Staking Website](https://stake.coredao.org/). Also, delays from block time, the number of block confirmation requirements, and network congestion on the Bitcoin network might lead to delays in the confirmation of your transactions, making your assets not visible in your wallets. + +### 13\. How is the security of non-custodial Bitcoin staking ensured? + +[Halborn](https://www.halborn.com/), a SOC2 Type 1 compliant firm renowned for its smart contract security expertise and [trusted by leading blockchain platforms](https://www.halborn.com/about/who-trusts-us) like Ava Labs, Solana, and Polygon, as well as DeFi projects like Sushiswap, has thoroughly audited Core's protocol and non-custodial Bitcoin staking's security. You can review audit reports on Core's protocol and non-custodial Bitcoin staking by leading firms [here](https://docs.coredao.org/docs/Learn/audit). + +### 14\. What should you do if the *`Redeem BTC`* button is not working on the staking website? + +You can Redeem your BTC by clicking the `Redeem` button on Core's official [Staking Website](https://stake.coredao.org/). If the button is not working, try clearing your browser cache and re-try. If you face further issues, please reach out at [Core Dev Forum](https://forum.coredao.org/). -### 10. How is the security of non-custodial BTC staking ensured? -Core Chain's protocol and non-custodial BTC staking’s security have been thoroughly audited by [Halborn](https://www.halborn.com/), a SOC2 Type 1 compliant firm renowned for its smart contract security expertise and [trusted by leading blockchain platforms](https://www.halborn.com/about/who-trusts-us) like Ava Labs, Solana, and Polygon, as well as DeFi projects like Sushiswap. Review Audit Reports of Core Chain's protocol and non-custodial BTC staking by leading firms [here](../Learn/audit.md). \ No newline at end of file diff --git a/docs/FAQs/core-faqs.md b/docs/FAQs/core-faqs.md index 6c429689c8..faf2021a7a 100644 --- a/docs/FAQs/core-faqs.md +++ b/docs/FAQs/core-faqs.md @@ -7,9 +7,9 @@ sidebar_position: 2 # Core Chain FAQs --- -### 1. Where can I find the codebase for Core Chain? +### 1. Where can I find the codebase for Core blockchain? -Core Chain advocates open source project building and hence we have all of our codebase available for community use. You can find Core Chain’s codebase and other developer tools on the [official GitHub account of Core Chain](https://github.com/coredao-org). +Core Foundation advocates open source project building and hence all of Core's codebases are available for community use. You can find Core blockchain’s codebase and other developer tools on the [official GitHub account of Core](https://github.com/coredao-org). ### 2. What are Core Chain’s official communication channels? @@ -23,12 +23,12 @@ Core Chain advocates open source project building and hence we have all of our c ### 3. Which dApps are deployed on the Core Network? -Core Chain is designed to cater to builders, offering a robust platform where various decentralized applications (dApps) can be deployed and flourish. Supporting a diverse range of dApps, the Core ecosystem is specifically structured to encourage development and innovation, making it a favorable environment for creators looking to deploy cutting-edge applications in the blockchain space. For more details, you can check out our [ecosystem](https://coredao.org/explore/ecosystem) to explore who’s building what. +Core is designed to cater to builders, offering a robust platform where various decentralized applications (dApps) can be deployed and flourish. Supporting a diverse range of dApps, the Core ecosystem is specifically structured to encourage development and innovation, making it a favorable environment for creators looking to deploy cutting-edge applications in the blockchain space. For more details, you can check out our [ecosystem](https://coredao.org/explore/ecosystem) to explore who’s building what. ### 4. How to connect MetaMask to Core Network? -Follow our detailed guide on how to connect your MetaMask wallet to the Core [Testnet](https://rumeelhussainbnb.github.io/CoreDAODocs/docs/Dev-Guide/core-testnet-wallet-config) and [Mainnet](https://rumeelhussainbnb.github.io/CoreDAODocs/docs/Dev-Guide/core-mainnet-wallet-config). +Follow our detailed guide on how to connect your MetaMask wallet to the Core [Testnet](../Dev-Guide/core-testnet-wallet-config.md) and [Mainnet](../Dev-Guide/core-mainnet-wallet-config.md). ### 5. What role does the CORE token play in securing the Core network? @@ -40,7 +40,7 @@ No, as a Bitcoin staker on the Core network, you do not need to run a validator ### 7. What are the conditions for slashing? What are the slashing fees incurred? Will all my staked tokens (CORE and BTC) get slashed? -On the Core Chain network, slashing and jailing are mechanisms to penalize validators for misconduct. +On the Core network, slashing and jailing are mechanisms to penalize validators for misconduct. “Slashing” refers to cutting either a validator’s reward for mining blocks, or their staked CORE tokens. The severity of the slashing punishment is scaled up in proportion to the validator’s misbehavior. @@ -53,7 +53,7 @@ On the Core Chain network, slashing and jailing are mechanisms to penalize valid ### 8. What consensus mechanism does the Core network use, and how does it prevent different attacks? -The Core network uses the Satoshi Plus consensus mechanism which combines Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS) and Non-Custodial BTC Staking to secure the network against various attacks. This setup mitigates network attacks such as DDoS through node dispersion and randomized P2P communication. For consensus attacks like the 51% attack, it employs round-robin mining and a hybrid score system for validator election, making such attacks economically impractical. Additionally, Core Chain uses checkpointing to freeze and secure the blockchain's history periodically, thwarting long-range attacks. For more details, see the [Core Chain Security Overview](https://docs.coredao.org/core-white-paper-v1.0.7/satoshi-plus-consensus/security). +The Core network uses the Satoshi Plus consensus mechanism which combines Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS) and Non-Custodial BTC Staking to secure the network against various attacks. This setup mitigates network attacks such as DDoS through node dispersion and randomized P2P communication. For consensus attacks like the 51% attack, it employs round-robin mining and a hybrid score system for validator election, making such attacks economically impractical. Additionally, Core uses checkpointing to freeze and secure the blockchain's history periodically, thwarting long-range attacks. For more details, see the [Core Blockchain Security Overview](https://whitepaper.coredao.org/core-white-paper-v1.0.7/satoshi-plus-consensus/security). ### 9. What is the average transaction confirmation time of Core network? @@ -61,28 +61,24 @@ The average transaction confirmation time on the Core network is **12 blocks**. ### 10. How much TPS can the Core network withstand? -The Core Chain is still evolving and stepping hard on the innovation gear, as of now Core can handle up to **~700** on mainnet with an artificially low gas limit. However, we look forward to scaling the network and making it efficient to handle much larger TPS counts. - - +Core blockchain is still evolving and stepping hard on the innovation gear, as of now Core can handle up to **~700** on mainnet with an artificially low gas limit. However, we look forward to scaling the network and making it efficient to handle much larger TPS counts. ### 11. Where can I get the test CORE token from? -To help users get started and allow developers to quickly prototype their dApps, Core has released the public [Core Testnet Faucet](https://scan.test.btcs.network/faucet) to distribute Core testnet tokens, tCORE. Follow the detailed guide [here](https://rumeelhussainbnb.github.io/CoreDAODocs/docs/Dev-Guide/core-faucet), on how to obtain tCORE from the Core testnet faucet. +To help users get started and allow developers to quickly prototype their dApps, Core Testnet Faucets for both of its testnets, [Faucet for Core Testnet (1114)](https://scan.test2.btcs.network/faucet) and [Faucet for Core Testnet (1115)](https://scan.test.btcs.network/faucet), to distribute Core testnet tokens, tCORE. Follow the detailed guide [here](../Dev-Guide/core-faucet.md), on how to obtain tCORE or tCORE2 from the Core testnet faucet. ### 12. How can I contribute to the Core community? -You can contribute to the Core Chain Community through several different ways: +You can contribute to the Core Community through several different ways: * **Contribute to our Official Documentation:** Send PR with your changes to GitHub repo of our official documentation and our team will review it accordingly. If deem correct, we will merge them into our official documentation. -* **[Core Chain Wishlist](https://github.com/coredao-org/core-community-contributions):** Build projects for the Core Chain ecosystem. The Core Foundation has laid out a list of project categories that builders can build and contribute to the growth of the Core ecosystem. -* **Builder Incentive Programs:** Core also offers several grants and builder programs for encouraging developement on the Core Chain. Whether through [Core Foundation Grants](https://coredaofoundation.org/fund-your-project), [Core Ignition](https://ignition.coredao.org/) or the [Core Ignition Builders’ Incentive Program](https://coredao.org/initiatives/incentiveprogram), you can jumpstart your building journey on the Web3 on the Core Chain. +* **[Core Wishlist](https://github.com/coredao-org/core-community-contributions):** Build projects for the Core ecosystem. The Core Foundation has laid out a list of project categories that builders can build and contribute to the growth of the Core ecosystem. +* **Builder Incentive Programs:** Core also offers several grants and builder programs for encouraging developement on the Core blockchain. Whether through [Core Foundation Grants](https://coredaofoundation.org/fund-your-project) or the [Core Ignition Builders’ Incentive Program](https://coredao.org/initiatives/incentiveprogram), you can jumpstart your building journey on the Web3 on Core. +* **Core Commit Program:** Core Foundation offers a 3-month accelerator program for early stage projects to scale up. The [Core Commit Program](https://coredao.org/initiatives/commit-program) not only provides builders with resources and access to 1:1 mentorhsip from some of the biggest minds in the Web3 industry, it also provides them the opportunity of monthly perforamce based rewards and funding from Core Ventures and its network of 100+ VCs. ### 13. Does Core offer any grants or builder programs? -Core isn't just about grants—it's a gateway to limitless opportunities. Whether through [Core Foundation Grants](https://coredaofoundation.org/fund-your-project), [Core Ignition](https://ignition.coredao.org/) or the [Core Ignition Builders’ Incentive Program](https://coredao.org/initiatives/incentiveprogram), you'll receive technical guidance, mentorship, and exposure to a vibrant community dedicated to innovating in the DeFi landscape. +Core isn't just about grants, it's a gateway to limitless opportunities. Whether through [Core Foundation Grants](https://coredaofoundation.org/fund-your-project), [Core Ignition Builders’ Incentive Program](https://coredao.org/initiatives/incentiveprogram) or the [Core Commit Program](https://coredao.org/initiatives/commit-program), you'll receive technical guidance, mentorship, and exposure to a vibrant community dedicated to innovating in the DeFi landscape. ### 14. How can I report a scam/rug pull? diff --git a/docs/FAQs/core-node-faqs.md b/docs/FAQs/core-node-faqs.md index 64ca3d3b8b..8355008585 100644 --- a/docs/FAQs/core-node-faqs.md +++ b/docs/FAQs/core-node-faqs.md @@ -7,18 +7,18 @@ sidebar_position: 2 # Core Nodes FAQs --- -### 1. What are the different types of nodes supported by Core Chain? +### 1. What are the different types of nodes supported supported on the Core blockchain? On the Core network, a Core full node stores the entire history of the Core blockchain, enabling anyone to verify the state of any account. A Core full node can take many forms: -- Normal full node: for private use. -- Validator full node: acts as a validator on Core, validating blocks and transactions. -- RPC full node: provides RPC services and responds to HTTP requests. +- **Normal full node:** for private use. +- **Validator full node:** acts as a validator on Core, validating blocks and transactions. +- **RPC full node:** provides RPC services and responds to HTTP requests. Other than this Core also supports -- Archive node: stores the entire blockchain data on Core Chain from the genesis block. -- Snapshot nodes: stores snapshots for helping other nodes fast-track syncing to the network. +- **Archive node:** stores the entire blockchain data of Core from the genesis block. +- **Snapshot nodes:** stores snapshots for helping other nodes fast-track syncing to the network. ### 2. What are the benefits of running a Core Node? @@ -108,14 +108,6 @@ Validators are crucial for securing the network by producing blocks and validati For more details, refer to [Validator Node Confgiurations Guide](../Node/config/validator-node-config.md) -### 6. How do I set up a Core Chain full node? - -Refer to the detailed guide [here](https://rumeelhussainbnb.github.io/CoreDAODocs/docs/Node/Full-Node/on-mainnet) on how to set up and run a full node on the Core network. - - +Refer to the detailed guide [here](../Node/Full-Node/on-mainnet.md) on how to set up and run a full node on the Core network. diff --git a/docs/FAQs/coreBTC-faqs.md b/docs/FAQs/coreBTC-faqs.md index 28151d1d7a..2316db771d 100644 --- a/docs/FAQs/coreBTC-faqs.md +++ b/docs/FAQs/coreBTC-faqs.md @@ -8,13 +8,13 @@ sidebar_position: 2 --- ### 1. What is coreBTC? What's the purpose of coreBTC? -coreBTC is a native wrapped Bitcoin on the Core Chain, maintaining a 1:1 peg with BTC through a secured mechanism. It allows Bitcoin users to interact seamlessly with the DeFi space on the EVM-compatible Core Chain using their BTC assets, expanding Bitcoin's functionality within the DeFi landscape without compromising its inherent security. +coreBTC is a native wrapped Bitcoin on Core, maintaining a 1:1 peg with BTC through a secured mechanism. It allows Bitcoin users to interact seamlessly with the DeFi space on the EVM-compatible Core using their BTC assets, expanding Bitcoin's functionality within the DeFi landscape without compromising its inherent security. ### 2. How is coreBTC different from centralized wrapped tokens (e.g., WBTC)? Unlike centralized wrapped tokens like WBTC that rely on a custodian to hold the underlying Bitcoin, coreBTC operates through a decentralized infrastructure. It involves permissionless participants such as Lockers, Guardians, and Liquidators, ensuring enhanced security and integrity without relying on central custodians. This structure aligns with the decentralized ethos of blockchain, mitigating risks associated with centralized entities. ### 4. How can I be sure that my BTC is safe? -The security of your BTC in the coreBTC system is assured by overcollateralization required from Lockers and the continuous monitoring by Guardians and Liquidators. This structure ensures that the locked BTC is always backed by sufficient collateral on the Core chain, safeguarding against mismanagement or value drops. The decentralized nature of this ecosystem also contributes to its reliability and security. +The security of your BTC in the coreBTC system is assured by overcollateralization required from Lockers and the continuous monitoring by Guardians and Liquidators. This structure ensures that the locked BTC is always backed by sufficient collateral on the Core, safeguarding against mismanagement or value drops. The decentralized nature of this ecosystem also contributes to its reliability and security. ### 5. Who are the key permissionless participants? What are their roles? The key permissionless participants in the coreBTC ecosystem include: @@ -23,10 +23,10 @@ The key permissionless participants in the coreBTC ecosystem include: * **Guardians:** They monitor Lockers to prevent unauthorized movements of BTC and ensure compliance with the protocol, providing a check against mismanagement. * **Liquidators:** They oversee the collateral's market value, initiating liquidation if the value falls below a certain threshold, thus maintaining the financial health of the system. -* **Porters and Relayers:** These participants facilitate the transmission and verification of data between the Bitcoin and Core blockchains, ensuring accurate and timely minting and burning of coreBTC. +* **Relayers:** They facilitate the transmission and verification of data between the Bitcoin and Core blockchains, ensuring accurate and timely minting and burning of coreBTC. ### 6. How is the security of coreBTC ensured? Our protocol and coreBTC’s security have been thoroughly audited by [Halborn](https://www.halborn.com/), a SOC2 Type 1 compliant firm renowned for its smart contract security expertise and [trusted by](https://www.halborn.com/about/who-trusts-us) leading blockchain platforms like Ava Labs, Solana, and Polygon, as well as DeFi projects like Sushiswap. -### 7. Where can I learn more about coreBTC and other Core Chain projects? -Visit https://unlockingbitcoindefi.com to find out more on coreBTC and our other innovative BTCfi projects \ No newline at end of file +### 7. Where can I learn more about coreBTC and other Core projects? +Visit https://unlockingbitcoindefi.com to find out more on coreBTC and our other innovative BTCfi projects diff --git a/docs/FAQs/delegator-faqs.md b/docs/FAQs/delegator-faqs.md index c70a135e78..750ae81511 100644 --- a/docs/FAQs/delegator-faqs.md +++ b/docs/FAQs/delegator-faqs.md @@ -4,73 +4,63 @@ hide_table_of_contents: false sidebar_position: 2 --- -# CORE Delegator FAQs +# Delegator FAQs --- -### 1. What is a delegator in Core Chain? +### 1. What is a delegator on the Core blockchain? -In the Core Chain ecosystem, delegation is a fundamental mechanism that allows BTC miners and BTC and CORE token holders to participate actively in the network's security and governance without being validators themselves. This process involves the delegators entrusting their voting and operational power to validators, who then use the delegated resources (BTC hash power, BTC, and CORE) to participate in the network's consensus process and governance decisions. +In the Core ecosystem, delegation is a fundamental mechanism that allows BTC miners and BTC and CORE token holders to participate actively in the network's security and governance without being validators themselves. This process involves the delegators entrusting their voting and operational power to validators, who then use the delegated resources (BTC hash power, BTC, and CORE) to participate in the network's consensus process and governance decisions. -### 2. What are the different types of delegations that can be done on the Core Chain due to the Satoshi Plus Consensus mechanism? +### 2. What are the different types of delegations that can be done on Core due to the Satoshi Plus Consensus Mechanism? 1. **BTC/CORE Delegation to Validators:** This type of delegation allows BTC and CORE token holders to support specific validators by staking and delegating their tokens to them. In return, validators use the aggregated power to secure the network, validate transactions, and produce blocks. Delegators share in the rewards earned by their chosen validators, receiving a portion of the transaction fees and block rewards in proportion to their stake. -2. **Hash Power Delegation from BTC Miners:** Bitcoin miners can delegate a portion of their computational hash power to validators on the Core network. This unique form of delegation leverages the security and work already being done on the Bitcoin network to enhance the security of the Core Chain. +2. **Hash Power Delegation from BTC Miners:** Bitcoin miners can delegate a portion of their computational hash power to validators on the Core network. This unique form of delegation leverages the security and work already being done on the Bitcoin network to enhance the security of Core blockchain. -### 3. How can one delegate CORE tokens in Core Chain? +### 3. How can one delegate CORE tokens in Core? By delegating CORE to Validators, CORE holders can help secure the network and share in system rewards. Please refer to the detailed [guide](../stake-and-delegate/delegating-core) on CORE Delegation for more details. -### 4. What are the minimum staking period requirements for BTC and BTC Hash Power delegation? -For BTC and BTC hash power delegation the minimum requirement is that of **10** days, i.e., you cannot un-delegate your stake prior to **10** days. Technically, (\`CLTV timestamp - transaction confirmation timestamp > 10 days\`). + -### 5. What are the benefits of delegating BTC or CORE tokens? +### 4. What are the benefits of delegating BTC or CORE tokens? This type of delegation allows BTC and CORE token holders to support specific validators by delegating their tokens to them. In return, validators use the aggregated power to secure the network, validate transactions, and produce blocks. Delegators share in the rewards earned by their chosen validators, receiving a portion of the transaction fees and block rewards in proportion to their stake. -### 6. How does one delegate hash power in Core Chain? +### 5. How does one delegate hash power on Core netowrk? By delegating hash power to Validators, BTC miners can help secure the network and get share in system rewards. Please refer to the detailed [guide](../stake-and-delegate/delegating-hash) on hash power delegation for more details. -### 7. How can a delegator maximize their rewards? +### 6. How can a delegator maximize their rewards? To maximize their rewards, delegators will look both for validators that are generous in their payouts, but also don’t already have a substantial amount of delegated CORE tokens or delegated PoW. The less a given validator has staked, the greater a contribution from a delegator will be. If a delegator adds one CORE token to a validator that only has one token, they’re 50% of that validator’s total delegation. If they delegate to a validator with 99 CORE tokens, they’re only 1% of that validator’s total delegation. Since payouts are determined in part based on the percentage of total stake each delegator accounts for, they’ll be incentivized to try and find validators with small delegations. -### 8. Can you change your validator once you have delegated? +### 7. Can you change your validator once you have delegated? - **Hash Power:** hash is delegated separately in each BTC block mined; and once delegated no further transfer can be made. -- **BTC Delegation:** users lock up their BTC and designate a validator to stake to on Core Chain. They can transfer BTC stake to other validators on Core, but will lose the rewards of the acting day. +- **BTC Delegation:** users lock up their BTC and designate a validator to stake to on Core. They can transfer BTC stake to other validators on Core, but will lose the rewards of the acting day. - **CORE Delegation:** users can transfer to other validators and will still receive the rewards of the acting day. - +Other than the transaction fee/gas charges, Core doesn’t charge any additional fees for delegation of BTC hash power, BTC or CORE tokens. -### 9. Are there any fees associated with delegating BTC or CORE tokens or hash power? - -Other than the transaction fee/gas charges, Core Chain doesn’t charge any additional fees for delegation of BTC hash power, BTC or CORE tokens. - -### 10. How long does it take to start earning rewards after delegation of BTC,CORE or Bitcoin hash power? +### 9. How long does it take to start earning rewards after delegation of BTC,CORE or Bitcoin hash power? - **BTC hash power delegators:** The Core blockchain uses Bitcoin network block records from seven days ago for hybrid score calculations. Additionally, after a validator is elected, staking rewards are distributed on the second day of the switched round. Therefore, after delegating their hash power, miners/mining pools will have their hash power used in the Validator election calculation N+7 days later and will have claimable rewards N+8 days later. - **CORE/BTC delegators:** after delegating their CORE/BTC, delegators will have their assets used in the Validator election calculation for the next round and will have claimable rewards a round later. -### 11. How can delegators claim their rewards? - -Refer to the detailed guide [here](../stake-and-delegate/delegating-core#claiming-rewards) on Claiming rewards earned through staking of BTC and CORE. In case of BTC Hash Power delegation, refer [here](../stake-and-delegate/delegating-hash#implementation). - -### 12. When are the rewards paid out? - -The rewards are paid out at the end of each round of consensus on the Core Chain. +### 10. How can delegators claim their rewards? -### 13. What happens if a validator stops performing or is penalized? +Refer to the detailed guide [here](../stake-and-delegate/delegating-core#claiming-rewards) on Claiming Rewards earned through staking of BTC and CORE. In case of BTC Hash Power delegation, refer [here](../stake-and-delegate/delegating-hash#implementation). -Poor performance or misconduct by validators can result in penalties like slashing of stakes, impacting both validators and their delegators. Note that delegators will not lose their staked assets, the penalties on validators will only be affecting the delegator's daily rewards. +### 11. When are the rewards paid out? - +Poor performance or misconduct by validators can result in penalties like slashing of stakes and jailing. Note that delegators will not lose their staked assets, the penalties on validators will only be affecting the delegator's daily rewards. diff --git a/docs/FAQs/dual-staking-faqs.md b/docs/FAQs/dual-staking-faqs.md new file mode 100644 index 0000000000..5d66f3912f --- /dev/null +++ b/docs/FAQs/dual-staking-faqs.md @@ -0,0 +1,55 @@ +--- +sidebar_label: Dual Staking FAQs +hide_table_of_contents: false +sidebar_position: 2 +--- + +# Dual Staking FAQs +--- + +### 1\. Are there any requirements for Dual staking? + +In order to enable higher yields for Bitcoin staking through Dual Staking, users must meet the following requirements: + +1. Stake both CORE and Bitcoin simultaneously, ensuring that the amount of CORE staked exceeds the minimum dual staking threshold **AND** +2. The CORE staking wallet address ***must*** match the designated CORE rewards address for Bitcoin staking to which the yield is paid to. + +### 2\. Under Dual Staking, do stakers earn staking rewards on both CORE and Bitcoin staked? + +Dual Staking is specifically designed to boost Bitcoin staking yields and does not impact the yield earned from CORE staking. As with independent staking of Bitcoin and CORE, users will receive separate rewards for each asset. However, if the amount of staked CORE exceeds a certain threshold, the Bitcoin staking yield will receive an additional boost. Note that, the additional yield percentages applies solely to Bitcoin staking, allowing Bitcoin stakers to maximize returns without altering the reward structure for CORE staking. + +### 3\. What are the steps institutional customers need to take to participate in Dual Staking? + +Institutional customers seeking to benefit from Dual Staking ***must*** stake both Bitcoin and CORE simultaneously, with the CORE amount staked being above a certain threshold to unlock the enhanced rewards percentages for Bitcoin staking. +Additionally, they are required to ensure that the CORE reward address for Bitcoin Staking matches the CORE staking address. This alignment is crucial, as it verifies that the staked Bitcoin and CORE belong to the same owner. Staking platforms should also verify that the CORE addresses align to ensure that the users receive the correct dual staking yield rates based on their combined staking activity. + +### 4\. For users already staking Bitcoin and CORE, is there anything they need to do to take advantage of Dual Staking? + +To take full advantage of Dual Staking, users must ensure that the designated Bitcoin staking reward address matches the address used for CORE staking. Users who have staked their Bitcoin and/or CORE across multiple addresses may want to consolidate their staking into a single address to optimize yield and maximize returns and ensure that the staked CORE is above the required threshold to unlock higher yield percentages for Bitcoin staking. + +### 5\. How do users balance CORE and Bitcoin across validators to maximize yield? + +In order for users to see the distribution of their delegated CORE, Bitcoin, and Hash for each validator, they can visit Core’s official [staking website](https://stake.coredao.org/). The CORE & Bitcoin staking yields from each validator vary because they're dependent on the total and weighted amount of delegations a validator receives, refer [here](../Learn/core-concepts/satoshi-plus-consensus/rewards#3-validator-rewards) for more details. +The practice of rebalancing delegations among validators is essential for maximizing overall rewards and maintaining a healthy ecosystem of validators. When a validator receives insufficient delegation, it risks becoming inactive. Conversely, excessive delegation to a single validator may result in reduced rewards for each delegator, as the rewards must be shared among a larger pool of delegators. +The act of delegators rebalancing their delegation to maximize reward is the driving force to ensure a balanced set of validators. For users who prefer not to actively manage their delegations, it is advisable to distribute stakes equally across all active validators. This approach enhances stability in reward percentages. + +### 6\. Is there any risk of losing your Bitcoin assets during dual staking? + +Dual Staking is a [non-custodial process](../Learn/products/btc-staking/overview#how-non-custodial-bitcoin-staking-works), allowing users to maintain full control over their assets. Throughout the staking process, Bitcoin remains securely in the user’s wallet. Stakers face no slashing risk, external smart contract risk, or counterparty risk. The trust assumptions for staking Bitcoin are the same trust assumptions underlying holding Bitcoin. + +### 7\. While Bitcoin is timelocked, can users unstake CORE that’s dual staked with Bitcoin? If so, do they lose any rewards earned prior to unstaking CORE? + +Users can unstake CORE anytime, just as they can when they stake CORE independently. The only difference is that when the Bitcoin staking reward is calculated, the reward percentage will drop due to the decrease in staked CORE. Note that this reduction only applies to future rewards and doesn't apply to rewards already earned by the user. + +### 8\. How do users ensure the CORE reward address for Bitcoin Staking is the same as the CORE staking address when staking through [Core’s staking website](https://stake.coredao.org/)? + +On **stake.coredao.org**, to ensure that the CORE reward address for Bitcoin staking is the same as the CORE staking address, make sure you adhere to the following steps: + +1. To stake CORE, connect your Core wallet which will then be used for signing the CORE staking transaction. +2. To stake Bitcoin, first connect **the same Core wallet**, and then connect your Bitcoin wallet. When the Bitcoin staking transaction is constructed through the staking website, it uses the connected Core wallet address as the Core reward address for Bitcoin staking. + +As long as the user always uses the same Core wallet address to stake both CORE and Bitcoin, it will be the same address. The staking transactions for both Bitcoin & CORE are also tracked by the Core address. Once the Core wallet is connected, users can go to "[My Staking](https://stake.coredao.org/mystaking)" section on the [staking website](https://stake.coredao.org/) to see all the CORE and Bitcoin staking transactions, all the accrued rewards in CORE for both Bitcoin staking and CORE staking. + +### 9\. What happens to the delegators' reward if the validator they delegated their assets to gets slashed? + +If a validator is slashed, the stakers who delegated their CORE or Bitcoin will **not** be slashed. However, given that the validator will not receive the staking reward, the delegators will also miss out on the staking rewards for that round. \ No newline at end of file diff --git a/docs/FAQs/validator-faqs.md b/docs/FAQs/validator-faqs.md index 14bf251069..1ab3d88a2d 100644 --- a/docs/FAQs/validator-faqs.md +++ b/docs/FAQs/validator-faqs.md @@ -6,13 +6,13 @@ sidebar_position: 2 # Core Validator FAQs --- -### 1. What is a Validator in Core Chain? +### 1. What is a Validator in the Core ecosystem? -In the Core Chain ecosystem, "validator" refers to nodes or participants in the blockchain network that are responsible for verifying, validating, and adding new transactions to the blockchain. Validators play a critical role in the maintenance and security of the network. +In the Core ecosystem, "validator" refers to nodes or participants in the blockchain network that are responsible for verifying, validating, and adding new transactions to the blockchain. Validators play a critical role in the maintenance and security of the network. ### 2. How to Become a Validator? -- 1. To register as a validator on Core Chain you must be running a full node in validator mode. Please read the guides on [configuring validator nodes](../Node/config/validator-node-config) and [running validator nodes](../Node/validator/running-validator) for information on how to set this up. +- 1. To register as a validator on Core you must be running a full node in validator mode. Please read the guides on [configuring validator nodes](../Node/config/validator-node-config) and [running validator nodes](../Node/validator/running-validator) for information on how to set this up. 2. Once that’s finished, the easiest way to register a new validator is using one of our staking websites: 1. [Mainnet stake website](https://stake.coredao.org) 2. [Testnet stake website](https://stake.test.btcs.network) @@ -32,7 +32,7 @@ Provide information for each of the form's fields: ![validator-logs](../../static/img/validator/register/validator-register-2.avif) -### 3. What are the Hardware/Software Requirements for running a validator node on Core Chain? +### 3. What are the Hardware/Software Requirements for running a validator node on Core? Validators are crucial for securing the network by producing blocks and validating transactions within the Core Chain’s Satoshi Plus consensus framework. @@ -60,9 +60,9 @@ For more details, refer to [Full Node Confgiurations Guide](../Node/Full-Node/on ### 4. What is the minimum amount of CORE tokens required to stake for becoming a validator? -On the Core Chain network, validators are required to stake a certain minimum amount of CORE tokens that gets locked up for the duration a validator node provides its services. On testnet, the minimum amount is **10,000 tCORE**. Whereas, on the mainnet the minimum amount is **10,000 CORE**. +On the Core network, validators are required to stake a certain minimum amount of CORE tokens that gets locked up for the duration a validator node provides its services. On testnet, the minimum amount is **10,000 tCORE**. Whereas, on the mainnet the minimum amount is **10,000 CORE**. -### 5. How are validators rewarded in the Core Chain ecosystem? +### 5. How are validators rewarded in the Core ecosystem? Validators earn rewards for their role in processing transactions, creating new blocks, and maintaining the blockchain's integrity. These rewards are critical for compensating Validators for their efforts and operational costs. TCore validators run in a round robin manner and each active validator receives almost the same amount of rewards every round. There are two categories of validator rewards: @@ -74,11 +74,11 @@ Both Base rewards and Transaction fees are calculated and distributed when the l ### 6. When are rewards paid out? -Cycle time for Core to distribute rewards currently set to **1 day**. Each day, **23** validators with the highest hybrid scores are elected to the validator set, thereby becoming responsible for producing blocks on the Core network for the entirety of the round. At the last block of each round, the accumulated rewards for the round are calculated and distributed. +Cycle time for Core to distribute rewards currently set to **1 day**. Each day, **27** validators with the highest hybrid scores are elected to the validator set, thereby becoming responsible for producing blocks on the Core network for the entirety of the round. At the last block of each round, the accumulated rewards for the round are calculated and distributed. ### 7. What are the risks/penalties involved in being a validator? -Here's a condensed overview of the potential risks and penalties for validators in the Core Chain ecosystem: +Here's a condensed overview of the potential risks and penalties for validators in the Core ecosystem: 1. **Slashing Risks:** Validators face slashing for actions like double signing or failing to perform their duties, resulting in a loss of a portion of their staked CORE tokens. 2. **Stake Lock-up and Liquidity Risk:** Validators must lock up CORE tokens as collateral, which cannot be accessed during lock-up periods, posing a liquidity risk during market volatility. @@ -86,9 +86,9 @@ Here's a condensed overview of the potential risks and penalties for validators 4. **Loss of Delegation:** If validators perform poorly or are frequently penalized, delegators may withdraw their support, significantly reducing the validator's earning potential. 5. **Operational and Security Risks:** Validators need to maintain secure, efficient operations around the clock. Operational failures or security breaches can lead to financial and reputational damage. -### 8. How does the validator election process work in Core Chain? +### 8. How does the validator election process work in the Core ecosystem? -The Validator election process in Satoshi Plus on the Core Chain network involves several key steps, integrating both Proof of Work (PoW) and Proof of Stake (PoS) elements: +The Validator election process in Satoshi Plus on the Core network involves several key steps, integrating both Proof of Work (PoW) and Proof of Stake (PoS) elements: 1. **Stake Delegation**: Holders of CORE and BTC tokens delegate their tokens to validator candidates, influencing the election with their staked tokens. 2. **Hash Power Delegation**: Bitcoin miners contribute to validator selection by allocating a portion of their hash power, specified in the Bitcoin blocks they mine. @@ -105,13 +105,11 @@ Where, - rBp and tBp are the BTC tokens delegated to a validator and total staked BTC tokens, respectively. - m and n are dynamic factors adjusting the weights of hash power and the voting power of BTC versus CORE tokens. -4. **Validator Set Formation**: The top **23** validators, based on hybrid scores, are selected for the next round. - +4. **Validator Set Formation**: The top **27** validators, based on hybrid scores, are selected for the next round. -### 9. What is slashing, and what are the different slashing fees charged on Core Chain? +### 9. What is slashing, and what are the different slashing fees charged on Core blockchain? -"Slashing" is a penalty applied to validators in a blockchain network for misconduct or failures in their duties. In the Core Chain network, slashing can affect both potential rewards and deposited stakes. +"Slashing" is a penalty applied to validators in a blockchain network for misconduct or failures in their duties. In the Core network, slashing can affect both potential rewards and deposited stakes. - **Rewards Slashing**: If a validator fails to mine **50** consecutive blocks during their turn, all CORE token rewards accrued up to that point are lost. The impact is more significant if the failure occurs later in the round, as more rewards would have been accumulated. - **Deposit Slashing and Jailing**: Failing to mine **150** consecutive blocks results in losing **10%** of the validator's deposit and a **jailing of three days**, during which they cannot be elected to the validator set. @@ -125,10 +123,7 @@ There are two scenarios where validators can get jailed. 1. Failing to mine **150** consecutive blocks results in losing **10%** of the validator's deposit and a **jailing of three days**, during which they cannot be elected to the validator set. 2. Double signing can lead to slashing of all rewards, the entire validator deposit, and a permanent ban from the network, i.e., getting jailed forever. - - ### 11. How frequently do Validators need to be online? Validators are generally expected to be online and actively participating almost continuously. - diff --git a/docs/Learn/audit.md b/docs/Learn/audit.md index e8ef1411ca..00a3371efc 100644 --- a/docs/Learn/audit.md +++ b/docs/Learn/audit.md @@ -9,12 +9,15 @@ sidebar_position: 2 The importance of smart contract audits in the blockchain ecosystem cannot be overstated. As immutable programs that automate processes, handle significant amounts of value, and establish trust in decentralized systems, smart contracts must be secure against both inadvertent bugs and malicious exploits. Audits are crucial because they involve a rigorous examination of the contract’s code by security experts who can identify vulnerabilities and suggest enhancements before the code is deployed on the blockchain, where it becomes much harder to alter. -Understanding this critical need for security, Core Chain places a strong emphasis on ensuring its codebase is not just robust and efficient but also secure and reliable. To achieve this, Core Chain engages with reputable third-party security firms to conduct comprehensive audits of its smart contract code. These external parties scrutinize the smart contracts for potential security issues, logic errors, and best practice violations. By involving independent auditors, Core Chain aims to provide an unbiased assessment of its smart contract infrastructure, thus fostering trust among its users and stakeholders. +Understanding this critical need for security, Core contributors place a strong emphasis on verifying that its codebase is not just robust and efficient but also secure and reliable. To achieve this, Core is audited by reputable third-party security firms that conduct comprehensive audits of its smart contract code. These external parties scrutinize the smart contracts for potential security issues, logic errors, and best practice violations. Involving independent auditors is aimed at providing an unbiased assessment of Core's smart contract infrastructure, thus fostering trust among its users and stakeholders. -Furthermore, Core Chain adopts a proactive stance towards continuous security, where the codebase undergoes regular audits, especially before major updates or after significant changes. This commitment to regular third-party verification serves as a testament to Core Chain’s dedication to maintaining a secure environment for its community and preserving the integrity of its platform in the rapidly evolving landscape of decentralized technologies. +Furthermore, Core benefits from a proactive stance towards continuous security, where the codebase undergoes regular audits, especially before major updates or after significant changes. This commitment to regular third-party verification serves as a testament to Core contributor and community dedication to maintaining a secure environment for its community and preserving the integrity of its platform in the rapidly evolving landscape of decentralized technologies. Core's [blockchain codebase](https://github.com/coredao-org) has been audited by top-tier third-party blockchain security firms, including Halborn and Least Authority. Access the audit reports from the following: - * [Halborn](https://github.com/HalbornSecurity/PublicReports/blob/master/Solidity%20Smart%20Contract%20Audits/CoreDAO_Genesis_Smart_Contract_Security_Audit_Report_Halborn_Final.pdf) -* [Least Authority](https://leastauthority.com/blog/audits/audit-of-core-dao-layer-1-smart-contracts/) \ No newline at end of file +* [Least Authority](https://leastauthority.com/blog/audits/audit-of-core-dao-layer-1-smart-contracts/) +* [Audit Report of BTC Staking](https://www.halborn.com/audits/coredao/btc-staking) +* [Audit Report of coreBTC](https://www.halborn.com/audits/coredao/corebtc) +* [Audit Report of 1.0.9 Upgrade](https://www.halborn.com/audits/coredao/109-upgrade-release) + diff --git a/docs/Learn/core-concepts/architecture.md b/docs/Learn/core-concepts/architecture.md index b2f4052bcd..101e553d6e 100644 --- a/docs/Learn/core-concepts/architecture.md +++ b/docs/Learn/core-concepts/architecture.md @@ -2,87 +2,115 @@ sidebar_label: Architecture hide_table_of_contents: false sidebar_position: 2 -description: Quick Glance on the Core Chain's Underlying Architecture +description: Quick Glance at Core's Underlying Blockchain Architecture --- -# Architecture of Core Chain +# Architecture of the Core Blockchain --- -Core Chain, a Bitcoin-aligned EVM blockchain, represents a critical innovation for Bitcoin's integration into the decentralized finance (DeFi) space. This document outlines the architectural components of Core Chain, which is designed to function as a highly scalable smart contract platform that enhances Bitcoin’s utility without compromising its foundational principles. +The Core blockchain’s architecture centers on its Satoshi Plus consensus, a tripartite mechanism combining Delegated Proof of Work, Delegated Proof of Stake, and Non-Custodial Bitcoin Staking. On top of Satoshi Plus’ security, Core’s infrastructure also includes a trust-minimized bridged Bitcoin asset in coreBTC, trustless peer-to-peer Bitcoin `<>` Core transactions with HTLC atomic swaps, and more. -The Core Chain ecosystem is constructed upon a multifaceted and innovative blockchain architecture that ensures the network's security, scalability, and decentralization. At the forefront is the CORE Consensus Engine which integrates the Satoshi Plus consensus mechanism, a hybrid system that utilizes the combined strength of Bitcoin miners and Core validators. +Through Satoshi Plus, Bitcoin miners/mining pools, CORE token stakers, and Bitcoin stakers elect validators to secure Core. Validators are elected by these three parties on the basis of a hybrid score, which calculates each validator’s reception of delegated hash power, delegated/staked CORE tokens, and delegated/staked Bitcoin from Bitcoin miners/mining pools, CORE token stakers, and Bitcoin stakers respectively. +Satoshi Plus' Non-Custodial Bitcoin Staking component is the first live Bitcoin staking mechanism, unlocking native yield for Bitcoin for the first time in its history. Without introducing any new trust assumptions to holding Bitcoin, Bitcoin staking via Satoshi Plus establishes the Bitcoin Risk-Free Rate. + +Additionally, Satoshi Plus is presently benefitting from the security of ~55% of all Bitcoin mining efforts, manifested in delegated hash power. By involving miners and mining pools in the validator election process, Satoshi Plus benefits from Bitcoin’s unrivaled decentralization while also providing miners with supplemental rewards at no additional cost, a valuable proposition as Bitcoin block rewards continue to decline. ![component-diagram](../../../static/img/staoshi-plus/component-diagram.jpg) -## Core Consensus Engine -The Core Consensus Engine is the heart of the Core Chain, where consensus is achieved through a unique combination of Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS) and Non-Custodial Bitcoin Staking. This engine coordinates the intricate processes involving validators, delegators, stakers, relayers, and other network participants to maintain the blockchain's integrity and performance. +## Major Components, Roles, and Workflows -### Satoshi Plus Consensus Mechanism +* **Validators:** Validators are responsible for producing blocks and validating transactions on the Core network. Anyone can become a Core validator by registering with the network and locking up a refundable CORE token deposit. -Core Chain introduces a novel consensus mechanism known as Satoshi Plus, a hybrid model that blends Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS), and Non-Custodial Bitcoin Staking. This model is designed to leverage the existing Bitcoin mining infrastructure to secure a smart contract platform, thereby providing a symbiotic relationship between the two chains. +* **Validator Election:** The validator set is determined through election, with validators chosen based on their hybrid score for each round. Any validator in the current validator set which hasn’t been jailed or slashed is considered “live”. To ensure a more stable TPS, the live validators are updated every 200 blocks, meaning that if any validators are jailed or slashed, the others can continue mining blocks as usual. -### Delegated Proof of Work (DPoW) -- Bitcoin miners can participate in the Satoshi Plus mechanism's DPoW part by appending additional metadata in the `op_return` field of Bitcoin blocks. This metadata includes the address of the Core Validator to whom they wish to delegate their hashing power, and the address for receiving CORE token rewards. -- This mechanism allows miners to earn supplemental rewards in CORE tokens over and above their usual Bitcoin mining rewards, thus incentivizing their participation in the Core Chain ecosystem. +* **Hybrid Score:** Every validator node seeking to become part of the validator set is given a hybrid score, which is calculated based on three factors: the DPoW from Bitcoin miners, the DPoS from CORE holders, and bitcoin holders delegating bitcoin to their preferred validators. The validator set is currently made up of the **27** validators with the highest hybrid scores. -### Delegated Proof of Stake (DPoS) and Non-Custodial Bitcoin Staking -- CORE token holders can stake their tokens with Core Validators, participating directly in the blockchain’s security and governance. -- BTC holders can stake their BTC on the Core network through non-custodial BTC staking and then delegate these to any Core Validators, participating directly in the blockchain’s security and governance. -- Stakers receive CORE token rewards, aligning their interests with the overall health and security of the network. +* **Bitcoin Miners:** Bitcoin miners secure the Bitcoin network via PoW, and can delegate their PoW to a Core validator by including certain information in the coinbase transaction of a block as it’s in the process of being mined. This delegation is non-destructive, meaning that they’re re-purposing their existing work, not choosing between securing Bitcoin and securing Core. +* **CORE Stakers:** All holders of Core’s native CORE tokens are able to underwrite the network’s security by delegating their token holdings to a validator. -### Major Components and Roles +* **Bitcoin Stakers:** The third leg of Satoshi Plus consensus is non-custodial Bitcoin staking, which allows any bitcoin holder to earn yield by staking their bitcoin tokens without giving up custody. -**1. Validators:** Validators have the critical role of producing blocks and validating transactions on the Core network. They are elected into the validator set based on a hybrid score that reflects both the Bitcoin hash power delegated to them and the CORE staked in their favor. The **top 23 validators** are selected each round, which currently lasts one day. +* **Relayers:** Relayers transmit Bitcoin blocks and transaction data to the Core network. Anyone can become a relayer by registering and locking up a refundable CORE token deposit. -**2. Relayers:** Relayers are tasked with relaying Bitcoin block headers to the Core network, ensuring that the DPoW component of the consensus is maintained. In order to register itself, a relayer node should submit a refundable CORE deposit to participate. +* **Verifiers:** Verifiers are responsible for reporting malicious behaviors on the network. Successful verification flags may result in slashing a malicious validator’s rewards or stake, or by jailing them outright, and verifiers are compensated for this monitoring activity when block rewards are dispensed. Anyone can act as a verifier on the Core network. -**3. BTC Miners:** BTC Miners secure the Bitcoin network and can delegate their hash power to Core validators to influence the consensus on Core without compromising their work on Bitcoin. This act of delegation is facilitated through a non-destructive process. +* **Round:** A round is the period of time during which the Core network updates the validator set and distributes rewards. At present, a round is one day. Every round (i.e. every day), all validators are given a hybrid score, and the 27 validators with the highest hybrid scores are elected to the validator set. The validator set then becomes responsible for producing blocks on the Core network for the entirety of that round. When the last block of each round has been produced, the accumulated rewards for the full round are calculated and distributed, and the validator set for the next round is also determined. -**4. CORE Holders:** CORE holders can stake their tokens by delegating them to validators, participating in securing the network and influencing the validator election process. +* **Slot:** Each 1-day round is divided into slots, and all validators in the validator set take turns producing one block per slot, in a round robin manner. Currently, the slot length is set to three seconds. In each slot, an honest validator either produces a block or fails to do so (if there are network issues, eclipse attacks, etc). -**5. BTC Holders:** BTC holders can stake thier BTC onto the Core network and then delegate thier staked BTC to a Core validator of their choice and earn CORE tokens as rewards in exchange of their staked BTC. In this way, BTC holders can participate in securing the network and influencing the validator election process. +* **Epoch:** An epoch is the span of time during which the system checks each validator’s status so as to exclude jailed validators from participating in consensus activities. Currently, an epoch is set to 200 slots, which is 600 seconds or 10 minutes. Validator status is checked once per epoch (rather than continuously) in order to keep TPS roughly constant in a given round. -**6. Verifiers:** Verifiers are responsible for identifying and reporting malicious behaviors within the network. They play a vital role in the security mechanisms of the Core Chain ecosystem. +## Delegated Proof of Work -### Workflows and Processes +To participate in Satoshi Plus, miners and/or mining pools simply write two additional pieces of information in the `op_return` field as they produce a new Bitcoin block: -**1. Staking and Governance Module:** CORE and BTC holders can delegate or stake their tokens to validators, participating in network security and governance decisions, like updates to consensus parameters or protocol upgrades. +1. The address of the Core Validator that the miner wants to delegate their hash power to. +2. The address that the miner would like its CORE token rewards to be sent to. -**2. Block Production and Round Robin:** Validators take turns producing blocks in a round-robin manner. Each round is divided into slots, with a length currently set to **3 seconds**. +In exchange for participating in the consensus process by delegating their hash power to vote for Validators, miners receive supplemental CORE token rewards in addition to their existing bitcoin rewards. In sum, Satoshi Plus receives Bitcoin miner participation and Bitcoin receives better compensated (i.e. more highly incentivized) miners. -**3. Reward Module:** Rewards are distributed at the end of each round based on validators' performance. The Reward Module calculates and distributes these rewards accordingly. +## Delegated Proof of Stake -**4. Epochs and Validator Quorum Updates:** Epochs, set to **200 slots (or 10 minutes)**, are the cycle lengths for checking each validator's status. Jailed validators are excluded from the quorum to keep the Transaction Per Second (TPS) rate stable throughout the round. +Delegated Proof of Stake is the method of involving Core users in the security of the protocol. To participate in consensus, any CORE token holder can stake their CORE tokens with Core Validators, thus voting for those Validators in the same way that a miner might delegate its hash power to elect a validator. -**5. Security Measures (Slashing and Jailing):** Validators and relayers must act honestly to avoid penalties. Malicious behaviors reported by verifiers can lead to slashing of stakes or jailing, where validators are temporarily removed from the consensus process. +Similarly, just as miners receive rewards, CORE token stakers also earn CORE token rewards for contributing to the Satoshi Plus consensus. One significant advantage of Delegated Proof of Stake compared to standard Proof of Stake models is that the former allows all token holders to participate equally, whereas the latter sometimes only allows large holders to stake. -**6. Hybrid Score Calculation:** This is the protocol function used in validator election calculations, incorporating the delegated BTC hash power, BTC and CORE tokens to produce a score determining the validators' ranks. +## Non-Custodial Bitcoin Staking +Satoshi Plus’s methodology for integrating bitcoin staking centers on absolute time locks, a Bitcoin-native cryptographic feature that locks up the outputs of a transaction for a pre-defined period of time, during which they can’t be spent. Rather than holders giving up custody of Bitcoin to external staking, stakers with Satoshi Plus merely place their Bitcoin in absolute time locks as part of a transaction, and the transaction can be designed to return the output after the time period has elapsed. Within that transaction, stakers must include a script containing the same information that Bitcoin miners include in their delegated blocks: -## Core Chain Infrastructure +1. The address of the Core Validator the staker wants to delegate their bitcoin to. +2. The address that the staker would like their CORE token rewards to be sent to. -### Core-Native Bitcoin Wrapping (coreBTC) -- Core Chain facilitates the wrapping of Bitcoin through a decentralized mechanism. This involves locking Bitcoin on the Bitcoin blockchain and issuing an equivalent amount of coreBTC on Core Chain. -- Lockers and Porters play crucial roles in managing the lock and wrap processes, ensuring that coreBTC is backed 1:1 by Bitcoin, thus preserving trustlessness and security. +Bitcoin stakers earn a yield on their otherwise passive bitcoin in the form of CORE token rewards, for however long they set the time-lock (and thus for however long they delegate their bitcoin to vote for Validators on Core). The end result is that billions of dollars in underutilized Bitcoin value will become productive, remunerating stakers while also expanding the scope of Bitcoin’s utility. -### Non-Custodial Bitcoin Staking -- This feature allows Bitcoin holders to stake their bitcoins in a non-custodial manner using absolute time locks. This means that users can earn yields on their bitcoins without relinquishing control over them. -- The staking mechanism integrates with the Satoshi Plus consensus, involving similar processes used by miners for securing the network. +## Validator Election -### HTLC Atomic Swaps -- Core Chain supports trustless atomic swaps using Hashed TimeLock Contracts (HTLCs), facilitating the seamless exchange of tokens between Bitcoin and EVM-compatible chains. -- This feature enhances the interoperability and liquidity options available to both Bitcoin and Core Chain users, promoting a more integrated DeFi ecosystem. +The synthesis of Delegated Proof of Work, Delegated Proof of Stake, and Non-Custodial Bitcoin Staking occurs during the election of the Satoshi Plus validator set. + +The validators who receive the highest combination of delegated hash power, staked CORE, and staked Bitcoin are elected to the validator set. The highest combination is determined by a hybrid score, which balances the three elements. + +## Rewards + +Satoshi Plus rewards are derived from: + +1. CORE block rewards to be paid out over an 81 year period +2. Transaction fees paid in CORE tokens. Following successful block production, validators earn these CORE token rewards + +Since elected validators are entirely dependent upon their delegators, when they receive block rewards and transaction fees for producing blocks, they pay the majority of their rewards back to their delegating miners, CORE stakers, and Bitcoin stakers. + +Rewards paid out to delegators are allocated proportional to their voting power. So, whatever weight their vote carried in the hybrid score calculation is the proportion of rewards they will receive from validators. + +## Slashing and Security -## Future Enhancements +In traditional Proof of Stake systems, stakers run the risk of being slashed if they fail to maintain a secure and reliable node, behave maliciously, or engage in activities that compromise the network’s integrity. In Satoshi Plus, this remains true for validators. Validators are held to a high standard, because their entire duty is to honestly adhere to the ruleset of Satoshi Plus. Thus, if they fail to perform, their locked up CORE token deposit is slashed, resulting in a serious economic penalty in addition to accruing zero rewards. + +While slashing keeps validators maximally accountable, Satoshi Plus’ design is not meant to penalize participants for actions they don’t control. Therefore, miners, CORE stakers, and Bitcoin stakers have no risk of their staked or delegated assets/power being slashed. Their incentive to choose the best validators lies in the rewards they can accrue from selecting diligently. Their risk for choosing the wrong validators is that they won’t receive rewards that they otherwise would receive. That economic penalty serves as an effective incentive while also being fair to stakers. + +## Other Workflow Details + +1. **Block Production and Round Robin:** Validators take turns producing blocks in a round-robin manner. Each round is divided into slots, with a length currently set to 3 seconds. +2. **Reward Module:** Rewards are distributed at the end of each round based on validators' performance. The Reward Module calculates and distributes these rewards accordingly. +3. **Epochs and Validator Quorum Updates:** Epochs, set to 200 slots (or 10 minutes), are the cycle lengths for checking each validator's status. Jailed validators are excluded from the quorum to keep the Transaction Per Second (TPS) rate stable throughout the round. + +## Other Core Infrastructure + +### Core-Native Wrapped Bitcoin (coreBTC) + +coreBTC is a Core-native bridged Bitcoin asset maintaining a 1:1 peg with Bitcoin, using over-collateralized Lockers for secure and trust-minimized minting and redemption. This design enables Bitcoin participation in Core’s DeFi activities and smart contracts without involving centralized custody. While coreBTC is not essential for Satoshi Plus or engaging with Core DeFi, it does permit Bitcoin holders a trust-minimized and Core-native way to port their assets to the Core blockchain. + +### HTLC Atomic Swaps -* **Governance Expansion:** Plans are underway to potentially include Bitcoin miners and stakers in the governance processes of Core Chain, further aligning incentives across both ecosystems. +Hashed TimeLock Contracts (HTLCs) enable the trustless, peer-to-peer exchange of tokens between Core and other blockchains, including (and especially) Bitcoin. -* **Fee Market Development:** Core Chain may introduce local fee markets to make Bitcoin transactions faster and more economical, thus supporting Bitcoin's use as a viable means of payment. +### Future Enhancements -* **HTLC Improvements:** Enhancements to the atomic swap process, including the introduction of liquidity pools and order book supplements, are considered to facilitate more efficient trading and liquidity management. +* **Dual Staking:** Higher Bitcoin staking rates are to be enabled for stakers of both Bitcoin and CORE tokens. +* **Fee Market Development:** Core may adopt local fee markets to make Bitcoin transactions more predictable and economical, thus supporting Bitcoin's use as a viable means of payment. +* **HTLC Improvements:** Enhancements to the atomic swap process, including the introduction of liquidity pools and order book supplements, are being designed to facilitate more efficient trading and liquidity management. ## Conclusion -Core Chain's architecture is designed to leverage Bitcoin’s robust security while expanding its functionality into smart contracts and DeFi. By integrating innovative consensus mechanisms and providing new utilities like non-custodial staking and decentralized wrapping, Core Chain positions itself as a pivotal platform in the evolution of Bitcoin DeFi. \ No newline at end of file +Core’s architecture is designed to make it the ideal platform for BTCfi. Satoshi Plus not only extends Bitcoin’s protection but also reinforces its security model while introducing native yield for Bitcoin for the first time. This comprehensive design secures an end-to-end BTCfi ecosystem, unlocking the full potential of the Bitcoin asset. diff --git a/docs/Learn/core-concepts/overview.md b/docs/Learn/core-concepts/overview.md index 19f18ea1c3..08b2f1708e 100644 --- a/docs/Learn/core-concepts/overview.md +++ b/docs/Learn/core-concepts/overview.md @@ -2,66 +2,74 @@ sidebar_label: Overview hide_table_of_contents: false sidebar_position: 2 -description: Get an Overview of Core Chain - its Purpose, Mission, & Future Vision +description: Get an Overview of Core - its Purpose, Mission, & Future Vision --- -# Overview of Core Chain +# Overview of the Core Blockchain --- ## Introduction -Core Chain is designed as the first Bitcoin-aligned Ethereum Virtual Machine (EVM) blockchain. It introduces a novel consensus mechanism called Satoshi Plus, enhancing Bitcoin's utility by integrating it into the decentralized finance (DeFi) sector through smart contracts and additional blockchain functionalities. +The Core blockchain is designed as the first Bitcoin-aligned Ethereum Virtual Machine (EVM) compatible blockchain. It introduces a novel consensus mechanism called Satoshi Plus, which leverages Bitcoin miners and Bitcoin holders to secure a hyper-scalable smart contract platform. ## Purpose and Mission -The primary goal of Core Chain is to unlock the potential of Bitcoin in the DeFi ecosystem, termed **BTCFi**, leveraging the vast market value of Bitcoin to secure a decentralized, permissionless, and scalable smart contract platform. This initiative aims to bridge the inherent limitations of Bitcoin with the expansive capabilities of smart contracts, thereby broadening the utility and application of Bitcoin without compromising its core attributes of security and decentralization. Furthermore, Core's consenus mechanism, Satoshi Plus is a pioneering combination of Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS) and Non-Custodial Bitcoin Staking. Through DPoW, it leverages the hash power of Bitcoin’s network of miners. Through DPoS, it not only allows CORE token staking but also allows any BTC holder to use absolute time-locks to delegate their Bitcoin to Core validators in exchange for token rewards. The combination of BTC miners, BTC stakers and CORE stakers provide a secure and transparent mechanism for security of the Core network. By simultaneously unlocking DeFi landscape for Bitcoin and leveraging the BTC miners, BTC stakers and CORE stakers, Core aims to provide a Bitcoin-secured, Bitcoin-aligned, and hyper-scalable smart contract platform. +The primary goal behind the Core blockchain is to unlock both the Bitcoin network and the Bitcoin asset. The result is a scalable, permissionless, and BTCfi-empowering (Bitcoin DeFi) smart contract platform secured by the decentralized infrastructure and vast market value of Bitcoin. -## Core Chain Technology +The vision of Core’s future is one in which Bitcoin transitions from a mere Store of Value into a true Medium of Exchange within Core’s scalable and Bitcoin-powered BTCfi ecosystem. The Bitcoin asset, the most securely sound form of money ever witnessed, can finally be fully unlocked. + +The central enabler in this transition is Bitcoin-alignment, because central to Bitcoin is its role as an incentive aligner. Fundamentally, the Bitcoin blockchain is a network of incentive-aligned stakeholders stewarding the security of the Bitcoin asset. That simple goal of securing the Bitcoin asset makes Bitcoin incredibly strong, yet also purposefully limited. Due to Bitcoin’s importance as a perfectly sound, gold-like store of value, the network is designed with purposeful limitations at the protocol level to maximize its preservation and permanence over its scalability. These intrinsic limitations impact Bitcoin’s speed, complexity, composability, interoperability, and flexibility. + +Changing Bitcoin’s base layer is akin to fitting a square peg in a round whole, so instead of altering what makes Bitcoin special, Core simply extends that unique incentive alignment to its smart contract platform. This alignment occurs through Core’s unique consensus mechanism, Satoshi Plus. Together, Bitcoin’s Nakamoto Consensus and Core’s Satoshi Plus consensus reinforce one another, simultaneously defending the Bitcoin asset adn Bitcoin-powered smart contracts, respectively. +In alignment with Bitcoin, Satoshi Plus unlocks the Bitcoin Risk-Free Rate for Bitcoin holders, a second block reward for Bitcoin miners, and an expansive BTCfi ecosystem for Bitcoin and DeFi users. + +## Core Technology 1. **Satoshi Plus Consensus** -This innovative consensus mechanism combines Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS), and Non-Custodial Bitcoin Staking. By doing so, Satoshi Plus aims to utilize Bitcoin's mining infrastructure, integrating Bitcoin miners and mining pools into the security framework of a scalable smart contract platform. Satoshi Plus leverages the hash power of Bitcoin miners while also integrating stake-based voting, thus securing the Core Chain with a robust and hybrid consensus model that is both energy-efficient and scalable. This consensus not only facilitates the participation of Bitcoin miners but also allows CORE token holders to participate actively in the governance of the network. - * **Delegated Proof of Work (DPoW):** This component allows Bitcoin miners to participate directly in the security of Core Chain by recycling their hash power. Miners can delegate their hashing power to Core Validators, earning additional rewards in CORE tokens, thus incentivizing continued participation in the Bitcoin network. - * **Delegated Proof of Stake (DPoS):** CORE token holders can stake their tokens with Core Validators, influencing the network’s governance and earning rewards. This mechanism promotes a democratic and decentralized governance model where all stakeholders can participate in network decisions. - * **Non-custodial Bitcoin Staking:** A feature allowing Bitcoin holders to stake their bitcoin directly on the blockchain without giving up control. This is achieved using absolute time locks that ensure bitcoin remains in the holder's control while participating in staking. This means users can participate in the network's consensus without transferring ownership of their coins. Stakers can lock their bitcoins in time-locked contracts directly on the Bitcoin blockchain, contributing to the network's security and decision-making processes, while earning rewards in CORE tokens. +This innovative consensus mechanism combines Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS), and Non-Custodial Bitcoin Staking, thereby incorporating Bitcoin miners, CORE stakers, and Bitcoin stakers, respectively, in the election of Core validators. Each of these three legs of Satoshi Plus introduces a new layer of security and incentive-alignment. + * **Delegated Proof of Work (DPoW):** Bitcoin miners enhance Core's security by delegating their hash power to Core validators, earning supplemental rewards in the form of CORE tokens. This symbiotic relationship leverages Bitcoin's robust security infrastructure without additional costs to the miners, aligning incentives and bolstering network integrity. + * **Delegated Proof of Stake (DPoS):** Holders of CORE tokens actively participate in Core's consensus by delegating their tokens to validators. This not only ensures a high level of network security but also provides stakers with CORE token rewards, encouraging broad participation and maintaining a balanced, decentralized validator election process. + * **Non-custodial Bitcoin Staking:** Bitcoin holders can lock their assets in absolute time locks on the Bitcoin blockchain, earning CORE token rewards while maintaining custody of their Bitcoin. This innovative approach transforms Bitcoin into a yield-bearing asset, adding value without compromising the security and trust inherent to the Bitcoin network. 2. **Advanced Smart Contract Capabilities** - * **EVM Compatibility:** Ensures that developers can easily port existing Ethereum-based dApps to Core Chain without significant changes, encouraging adoption and growth of the Core Chain ecosystem. - * **Core-Native Wrapped Bitcoin (coreBTC):** A decentralized solution for wrapping Bitcoin, allowing it to be used seamlessly on the Core Chain for smart contracts and other transactions while maintaining a 1:1 peg with Bitcoin. + * **EVM Compatibility:** Enables developers a familiar building environment in which they can easily port existing Ethereum-based dapps to Core without significant changes, encouraging adoption and growth within the Core ecosystem. + * **Core-Native Wrapped Bitcoin (coreBTC):** A decentralized, trust-minimized solution for bridging Bitcoin to Core, allowing it to be used seamlessly on the Core blockchain for smart contracts and other BTCfi activities while maintaining a 1:1 peg with Bitcoin. 3. **Security Enhancements** - * **Enhanced Transaction Validation:** Leveraging Bitcoin’s proven security model, Core Chain implements robust transaction validation mechanisms to ensure network integrity and prevent fraud. - * **Guardian Nodes:** These nodes monitor the network for any signs of malicious activity and can intervene to correct or penalize bad actors, reinforcing the security of the network. + * **Enhanced Transaction Validation:** Core involves both Bitcoin miners and Bitcoin stakers in the security of its smart contracts. + * **Guardian Nodes:** In addition to existing security checks, Verifiers have the sole responsibility of monitoring the network for any signs of malicious activity and can penalize bad actors with verifiable proof. 4. **Interoperability Features** - * **Trustless Atomic Swaps:** Facilitates direct, trustless trading between Bitcoin, Core Chain, and other EVM chains, enhancing liquidity and user engagement across different blockchain ecosystems. - * **HTLC (Hashed TimeLock Contracts):** Enables secure, time-bound transactions across blockchains, adding an extra layer of security and functionality for cross-chain interactions. + * **Trustless HTLC Atomic Swaps:** Hashed TimeLock Contracts enable the trustless, peer-to-peer exchange of tokens between Core and other blockchains, including (and especially) Bitcoin. + * **Cross-Chain Interoperability:** As a scalable, EVM-compatible blockchain, Core has integrations with many cross-chain dapps and bridges. 5. **Usability and Accessibility** - * **User-Friendly Interfaces:** Efforts are being made to ensure that both technical and non-technical users can easily interact with Core Chain through user-friendly wallets and interfaces. - * **Comprehensive Developer Tools:** A suite of tools and documentation is provided to support developers in building, deploying, and managing applications on Core Chain. + * **User-Friendly Interfaces:** Core is accessible through many user-friendly and commonly used wallets and interfaces. + * **Comprehensive Developer Tools:** A suite of tools and documentation is provided to support developers in building, deploying, and managing applications on Core. 6. **Governance and Community Engagement** - * **Transparent Governance Processes:** Core Chain fosters a transparent and inclusive decision-making process, allowing the community to propose and vote on changes to the protocol. - * **Community Incentive Programs:** Initiatives designed to reward community members for their contributions to the ecosystem, whether through development, education, or participation in governance. + * **Transparent Governance Processes:** Certain variable parameters like the burn mechanism involve a transparent and inclusive decision-making process, allowing community participation and on-chain voting. + * **Community Incentive Programs:** Community members have initiatives designed to reward users for their contributions to the ecosystem, whether through development, education, or participation in governance. -## Strategic Objectives -* **Interoperability and Expansion:** Core Chain is set to introduce trustless atomic swaps between Bitcoin, Core Chain, and other EVM chains, increasing interoperability within the blockchain ecosystem. -* **Enhanced Tokenomics:** Core-native wrapped bitcoin (coreBTC) and other Bitcoin-related improvements aim to enhance the liquidity and functional scope of Bitcoin in various financial applications. -* **Community and Stakeholder Engagement:** Core Chain places a strong emphasis on community involvement and stakeholder benefits, ensuring that both miners and token holders (BTC/CORE) are integral to the platform's consensus and rewarded accordingly. - ## State of the Core Ecosystem -Many protocols in Core Chain’s ecosystem are focused on BTC and BTC derivatives (i.e., Bitcoin-native assets based on BTC such as Ordinals NFTs). BTC is largely an underutilized asset, as the limited programmability of Bitcoin Script makes it challenging to activate BTC in conventional DeFi protocols while maintaining custody of the asset(s). With a consensus mechanism integrated with Bitcoin’s own consensus, Core Chain aims to provide a DeFi environment for protocols to utilize BTC assets with minimal trust assumptions. Core offers grants and builder programs like [Core Wishlist](https://github.com/coredao-org/core-community-contributions/blob/main/Core-Wishlist.md), [Core Ignition](https://ignition.coredao.org/) and [Core Ignition Builders' Incentive Program](https://coredao.org/initiatives/incentiveprogram) intended to incentivize building innovative projects on Core Chain and catalyzing more growth around Bitcoin DeFi. Refer [here](https://coredao.org/explore/ecosystem) to explore the ever growing ecosystem of Core Chain. +Core is home to a robust and growing BTCfi ecosystem. Many protocols on Core are focused on Bitcoin and Bitcoin derivatives (i.e., Bitcoin-native assets based on Bitcoin such as Ordinals NFTs). Bitcoin is largely an underutilized asset, as the limited programmability of Bitcoin Script makes it challenging to activate Bitcoin in conventional DeFi protocols while maintaining custody of the asset(s). With a consensus mechanism integrated with Bitcoin’s own consensus, Core is aimed at providing a DeFi environment for protocols to utilize Bitcoin-based assets with minimal trust assumptions. Furthermore, grants and builder programs like [Core Wishlist](https://github.com/coredao-org/core-community-contributions/blob/main/Core-Wishlist.md), [Core Ignition](https://ignition.coredao.org/) and [Core Ignition Builders' Incentive Program](https://coredao.org/initiatives/incentiveprogram) are intended to incentivize building innovative projects on Core and catalyze more growth around Bitcoin DeFi. Explore the ever-expanding Core ecosystem [here](https://coredao.org/explore/ecosystem). ## Future Vision -The roadmap includes expanding the utility and performance of Bitcoin by maintaining the core ethos of the network while introducing enhancements that do not alter the base layer. Core Chain envisions a more interconnected and functionally diverse blockchain ecosystem where Bitcoin's foundational strengths are leveraged to support new and emerging technologies and applications in DeFi. Core Chain has a series of development plans on its roadmap: +The Core roadmap is designed in accordance with the primary goal of unlocking Bitcoin. This includes many structural upgrades designed at further aligning Bitcoin and Core, creating a better user experience for users, and leveraging other areas of research and development. Ultimately, these items should serve to make a more interconnected and functionally diverse blockchain ecosystem where Bitcoin's foundational strengths are leveraged to support new and emerging technologies and applications in DeFi. Some roadmap items include: -* **Local fee markets:** These can make transactions more predictable and potentially cheaper. -* **Atomic swaps:** Leveraging HTLCs, atomic swaps could be used for general purposes. -* **coreBTC improvements:** Integrating coreBTC with Core Chain’s Satoshi Plus consensus and using multisig wallets can increase the security of the asset. Additionally, Lockers could be given more collateral options. -* **coreBTC as a gas token:** This would allow users to pay for transaction fees in either CORE or coreBTC and would enable users to interact with the ecosystem without using any other asset than BTC. -* **Bitcoin LST:** This would allow BTC stakers to earn yield on their BTC while also using that BTC for various applications on Core Chain. -* **Restaking:** This would enable other protocols to benefit from Core Chain’s Bitcoin protection. +* **Dual-Staking:** Creating higher Bitcoin staking rates for stakers of both Bitcoin and CORE tokens. -## Conclusion -Core Chain represents a significant step forward in the evolution of blockchain technology by effectively merging Bitcoin's robust security framework with the expansive capabilities of smart contracts. It aims to set a new standard for how traditional cryptocurrencies can interact with and benefit from the burgeoning field of decentralized finance. +* **Local Fee Markets:** Improvements that can make transactions more predictable and potentially cheaper. + +* **Atomic Swaps:** Leveraging HTLCs, atomic swaps can continue to be a source of structural alignment between the Bitcoin and Core blockchains. +* **coreBTC Improvements:** Integrating coreBTC with Core Chain’s Satoshi Plus consensus and using multisig wallets can increase the security of the asset. Additionally, Lockers could be given more collateral options. +* **coreBTC as a Gas Token:** This option would allow users to pay for transaction fees in either CORE or coreBTC. + +* **Bitcoin LST:** This feature would allow BTC stakers to earn yield on their Bitcoin while also using that BTC for various applications on Core. + +* **Restaking:** This addition would enable other protocols to benefit from Core’s Bitcoin protection. + + +## Conclusion +By leveraging its unique Satoshi Plus consensus mechanism, Core integrates Bitcoin miners, CORE stakers, and non-custodial Bitcoin stakers, ensuring robust security and decentralized governance. This innovative approach not only enhances Bitcoin's utility but also fosters a thriving BTCfi ecosystem, empowering users, developers, and investors to unlock new opportunities in decentralized finance. As Core continues to grow and evolve, it stands poised to further Bitcoin’s role as the central pillar of a scalable, permissionless, and interconnected financial future. diff --git a/docs/Learn/core-concepts/satoshi-plus-consensus/DPoS.md b/docs/Learn/core-concepts/satoshi-plus-consensus/DPoS.md index b08a4aa758..61573bfbbc 100644 --- a/docs/Learn/core-concepts/satoshi-plus-consensus/DPoS.md +++ b/docs/Learn/core-concepts/satoshi-plus-consensus/DPoS.md @@ -5,17 +5,18 @@ sidebar_position: 2 description: Leveraging DPoS in Satoshi Plus --- -# Delegated Proof of Stake (DPoS) in the Satoshi Plus Consensus Mechanism +# Delegated Proof of Stake (DPoS) --- ## Overview -Delegated Proof of Stake (DPoS) is a pivotal component of the Satoshi Plus consensus mechanism employed by Core Chain. This consensus model is designed to complement the robustness of Delegated Proof of Work (DPoW) with a flexible, democratic, and scalable staking system. DPoS not only enhances network security but also promotes community involvement in governance, making it an essential aspect of the blockchain’s operation. + +Delegated Proof of Stake (DPoS) is a pivotal component of the Satoshi Plus consensus mechanism employed by Core blockchain. This consensus model is designed to complement the robustness of Delegated Proof of Work (DPoW) with a flexible, democratic, and scalable staking system. DPoS not only enhances network security but also promotes community involvement in governance, making it an essential aspect of the blockchain’s operation. DPoS allows holders of both CORE tokens and [Bitcoin](../../products/btc-staking/overview.md) to vote and participate in the election of the validator set by delegating their holdings to their preferred validators. Because there is only a very small minimum staking requirement of 1 CORE token, all CORE holders can contribute to the governance of the Core network. On the bitcoin-staking side, the present configuration requires a **minimum staking requirement of 0.01 BTC** (but this can be adjusted in the future through a governance vote). Holders of both CORE token and BTC can delegate their respective tokens to validators of their choice through the official [staking website](https://stake.coredao.org/). In this section, we cover in depth the working and importance of DPoS in the functioning of the Satoshi Plus. ## How DPoS Works in Satoshi Plus DPoS operates by allowing CORE token holders to actively participate in the network's consensus by staking their tokens with Validators. This process involves several key steps: -* **Staking Tokens:** Core allows to kinds of token that can be staked, its native token CORE and the BTC. CORE token holders can stake their tokens on the Core Chain platform by locking them in a smart contract associated with a Validator they choose to support. The staked tokens represent a vote of confidence in the Validator’s ability to maintain the integrity and security of the network. Similarly, BTC holders can stake their BTC onto the Core network through [non-custodial staking](../../products/btc-staking/overview.md) in a trustless and secure manner without having to give up custody of their assets. This is achieved using absolute time locks that ensure bitcoin remains in the holder's control while participating in staking. They can then delegate their staked BTC to any validator on the Core network and earn rewards in the form of CORE tokens in exchange of their delegation. +* **Staking Tokens:** Core allows to kinds of token that can be staked, its native token CORE and the BTC. CORE token holders can stake their tokens on the Core platform by locking them in a smart contract associated with a Validator they choose to support. The staked tokens represent a vote of confidence in the Validator’s ability to maintain the integrity and security of the network. Similarly, BTC holders can stake their BTC onto the Core network through [non-custodial staking](../../products/btc-staking/overview.md) in a trustless and secure manner without having to give up custody of their assets. This is achieved using absolute time locks that ensure bitcoin remains in the holder's control while participating in staking. They can then delegate their staked BTC to any validator on the Core network and earn rewards in the form of CORE tokens in exchange of their delegation. * **Validator Election:** Validators are elected based on the total stake (BTC and CORE) delegated to them by token holders. The more staked tokens a Validator has, the higher their chances of being selected to validate transactions and create new blocks. This method ensures that those with the most community trust and stake are responsible for the network's security. @@ -23,16 +24,32 @@ DPoS operates by allowing CORE token holders to actively participate in the netw * **Reward Distribution:** Validators and their delegators earn rewards in CORE tokens for their participation in securing the network. These rewards are distributed proportionally based on the amount of stake each delegator contributes, incentivizing both Validators and token holders to act in the network's best interest. +## Step by Step Process + +1. **Staking CORE/BTC Tokens:** CORE token holders decide to participate in network security by staking their tokens. The minimum staking requirement is 1 CORE token or 0.01 BTC. + +2. **Delegating to Validators:** Token holders delegate their staked CORE/BTC tokens to a chosen validator, assisting their hybrid score in the validator election process. + +3. **Validator Election:** Validators with the highest hybrid score, which includes delegated CORE, are elected to the validator set for a given round. + +4. **Producing Blocks:** Elected validators are responsible for producing blocks and validating transactions during their term, thereby earning rewards. + +5. **Earning Rewards:** CORE and BTC stakers earn rewards from the validators to whom they delegated. + + ## Importance of DPoS in Satoshi Plus * **Enhanced Network Security and Efficiency:** DPoS leverages the stake of numerous participants to secure the network, which reduces the risk of centralization inherent in traditional PoW systems. The delegation system also allows for more efficient processing of transactions and block creation, as only a few elected Validators need to reach consensus, speeding up the transaction validation process. * **Decentralization and Democratization of Network Governance:** By enabling any token holder to participate in the consensus process, DPoS democratizes network governance. This inclusivity fosters a more resilient and decentralized network structure, as decisions are made by a broader base of stakeholders, reflecting a diverse range of community interests. -* **Scalability:** DPoS systems are typically more scalable than traditional PoW systems because they require less computational power and can process transactions faster. This is crucial for Core Chain as it aims to support a growing ecosystem of decentralized applications without sacrificing performance. +* **Scalability:** DPoS systems are typically more scalable than traditional PoW systems because they require less computational power and can process transactions faster. This is crucial for Core blockchain as it aims to support a growing ecosystem of decentralized applications without sacrificing performance. * **Community Incentivization:** DPoS encourages community participation by rewarding stakeholders with CORE tokens. This not only aligns the incentives of Validators and token holders but also ensures that those who invest resources and trust into the network are compensated for their contributions. -* **Energy Efficiency:** Compared to PoW, DPoS is far more energy-efficient as it does not require massive amounts of electrical power to maintain network security. This aspect is increasingly important as the blockchain industry faces greater scrutiny over its environmental impact. +* **Liquid Staked CORE:** CORE tokens can also be liquid staked, enabling stakers to use stCORE tokens in Core’s DeFi ecosystem. + +* **Efficient Block Production:** The delegation process allows for an efficient and scalable model, as proven and capable validators are elected to secure the network. #### **Conclusion** -In the Satoshi Plus consensus mechanism, DPoS plays a critical role by providing a balance to the energy-intensive DPoW component, introducing democratic governance elements, and ensuring scalability and security. As such, it is integral to achieving the vision of Core Chain as a scalable, secure, and community-driven platform. \ No newline at end of file +In the Satoshi Plus consensus mechanism, DPoS plays a critical role by providing a balance to the energy-intensive DPoW component. Delegated Proof of Stake is a powerful mechanism that enhances the Core blockchain's security and efficiency. By allowing CORE and BTC token holders to stake and delegate their tokens, DPoS promotes broad participation and robust network security. + diff --git a/docs/Learn/core-concepts/satoshi-plus-consensus/DPoW.md b/docs/Learn/core-concepts/satoshi-plus-consensus/DPoW.md index bd188846df..eb95e56560 100644 --- a/docs/Learn/core-concepts/satoshi-plus-consensus/DPoW.md +++ b/docs/Learn/core-concepts/satoshi-plus-consensus/DPoW.md @@ -10,47 +10,56 @@ description: Leveraging DPoW in Satoshi Plus ## Overview -Delegated Proof of Work (DPoW) is a foundational component of the Satoshi Plus consensus mechanism on Core Chain. This innovative approach adapts the traditional Proof of Work (PoW) system used by Bitcoin, allowing for the integration of Bitcoin mining efforts into the security framework of a smart contract platform. DPoW maintains the robustness of Bitcoin’s security while enhancing its utility and economic incentives for miners. In the Satoshi Plus consensus mechanism, validators are chosen on the basis of a hybrid score, and the hybrid score is calculated from both Delegated Proof of Work (DPoW) and Delegated Proof of Stake (DPoS). In this section, we cover in depth the working and importance of DPoW in the functioning of the Satoshi Plus. +Delegated Proof of Work (DPoW) is a crucial element of Core's Satoshi Plus consensus mechanism. This system leverages the robust security of Bitcoin mining, integrating it into the Core blockchain to enhance security and incentivize participation without additional costs. Here’s a detailed look at how DPoW operates and its significance. + +DPoW enables Bitcoin miners to earn a second block reward on top of their Bitcoin rewards while securing the Core blockchain, creating a symbiotic relationship that benefits both networks. + +![dpow-core-architechture](../../../../static/img/staoshi-plus/dpow.jpg) ## How DPoW Works in Satoshi Plus -On the Bitcoin network, Bitcoin miners generate hash power to secure the Bitcoin network, validate transactions, and earn BTC rewards. In order to even their rewards out over time, Bitcoin miners often contribute their hash power to mining pools, which use the aggregated hash power to increase the pool’s overall chances of mining a Bitcoin block and receiving BTC in return. DPoW integrates Bitcoin mining directly into the Core Chain's security protocol through a delegation system. Here’s a step-by-step breakdown of its operation: +On the Bitcoin network, Bitcoin miners generate hash power to secure the Bitcoin network, validate transactions, and earn Bitcoin rewards. In order to even their rewards out over time, Bitcoin miners often contribute their hash power to mining pools, which use the aggregated hash power to increase the pool’s overall chances of mining a Bitcoin block and receiving Bitcoin in return. DPoW integrates Bitcoin mining directly into the Core's security protocol through a delegation system. Here’s a step-by-step breakdown of its operation: -1. **Mining Integration**: Bitcoin miners continue their standard mining activities but with the additional step of signaling their support for Core Chain. This is achieved by including a special transaction in the Bitcoin blocks they mine, which specifies the Core Validator they wish to support. +1. **Mining Integration**: Bitcoin miners continue their standard mining activities but with the additional step of signaling their support for Core blockchain. This is achieved by including a special transaction in the Bitcoin blocks they mine, which specifies the Core Validator they wish to support. -2. **Metadata in Bitcoin Blocks**: In the mined Bitcoin block, miners add metadata in the `op_return` field. This metadata includes the address of the Core Validator and the address for receiving CORE token rewards, effectively delegating a portion of their hashing power to the Core Chain network. +2. **Metadata in Bitcoin Blocks**: In the mined Bitcoin block, miners add metadata in the `op_return` field. This metadata includes the address of the Core Validator and the address for receiving CORE token rewards, effectively delegating a portion of their hashing power to the Core network. -3. **Validator Support**: By including this information, miners delegate their computational power to Validators on the Core Chain. These Validators use the delegated power to participate in the Core Chain's version of block validation and creation. +3. **Validator Support**: By including this information, miners delegate their computational power to Validators on Core. These Validators use the delegated power to participate in the Core blockchain's version of block validation and creation. -4. **Relayers**: The Bitcoin block headers make their way to Core Chain through Core Chain’s relayers. Each relayer runs an on-chain light client (or utilizes a similar, existing service) which syncs the blocks mined by the Bitcoin mining pool with the Core network. During a 1-day round, the Core network calculates the DPoW for each validator by counting the number of blocks the miners delegated to each validator one week prior. If the round occurs on a Thursday, for example, Core will tabulate the hash power delegated to each validator by counting blocks from last Thursday. +4. **Relayers**: Relayers are responsible for monitoring the Bitcoin network and transmitting blocks and transaction data to the Core network. Within the Core network, an on-chain embedded BTC light client processes the incoming data from relayers and forwards the delegation information (including hash power and Non custodial staking) to the "Delegation Hub." The Delegation Hub serves as the central component responsible for managing and overseeing delegations within the Core network. During a 1-day round, the Core network calculates the DPoW for each validator by counting the number of blocks the miners delegated to each validator _one week prior_. If the round occurs on a Thursday, for example, Core will tabulate the hash power delegated to each validator by counting blocks from _last_ Thursday. 5. **Reward Mechanism**: In return for their contribution, miners receive additional rewards in the form of CORE tokens, on top of the usual Bitcoin mining rewards. This dual-reward system incentivizes miners to participate in the DPoW process without needing to divert resources away from Bitcoin mining. -The architecture for this cross-chain communication is illustrated in the diagram below. +## Step by Step Process -![dpow-core-architechture](../../../../static/img/staoshi-plus/dpow.jpg) +1. **Mining Bitcoin Blocks:** Bitcoin miners continue their primary role of mining blocks on the Bitcoin network using Proof of Work (PoW). -## Importance of DPoW in Satoshi Plus +2. **Including Delegation Information:** Miners add two additional pieces of information in the op_return field of the coinbase transaction: + * **Core Validator Address:** The address of the Core Validator to delegate hash power to. + * **CORE Token Reward Address:** The address where the miner wants their CORE token rewards sent. -* **Enhanced Security**: -DPoW leverages the immense hashing power of the Bitcoin network, which is the most secure blockchain network due to its extensive miner participation and proven cryptographic robustness. By integrating this power, Core Chain significantly enhances its own security. +3. **Delegating Hash Power:** This action delegates the miner's hash power to the chosen Core Validator, repurposing existing work without incurring additional costs. -* **Economic Incentives for Miners**: -The additional rewards in CORE tokens create a new revenue stream for Bitcoin miners, making mining operations more lucrative without increasing operational costs. This incentive is crucial in attracting more miners to participate in Core Chain's ecosystem. +4. **Validator Election:** Validators with higher delegated hash power have a greater chance of being elected to the validator set. -* **Resource Efficiency**: -DPoW allows miners to maximize the utility of their existing computational resources. By supporting Core Chain while conducting their regular Bitcoin mining operations, miners can contribute to two networks simultaneously without additional energy expenditure. +5. **Validator Rewards:** Validators earn rewards for processing blocks, take a small commission, and pass rewards to their delegators, including any Bitcoin miners or mining pools who delegated hash power to them. -* **Symbiotic Relationship**: -This mechanism creates a symbiotic relationship between Bitcoin and Core Chain. As Bitcoin miners contribute to the security of Core Chain, they enhance the overall value proposition of both networks. This interdependency aligns the interests of stakeholders across both platforms. +6. **Earning Rewards:** Miners or mining pools receive CORE token rewards in addition to their Bitcoin rewards, providing extra incentives. -* **Sustainability**: -By reusing the hashing power already dedicated to Bitcoin mining, DPoW contributes to a more sustainable blockchain ecosystem. It reduces the need for additional energy consumption that would otherwise be required for securing a separate blockchain network. -#### **Conclusion** +## Importance of DPoW in Satoshi Plus + +* **Enhanced Security:** By integrating Bitcoin’s PoW, Core benefits from Bitcoin’s unmatched security infrastructure, making the Core network more resilient. + +* **Increased Incentives:** Bitcoin miners gain an additional revenue stream through CORE token rewards, enhancing their overall profitability without additional energy costs. -DPoW is a critical innovation within the Satoshi Plus consensus mechanism, marrying the proven security and decentralization benefits of Bitcoin’s PoW with the advanced capabilities of the Core Chain smart contract platform. This integration not only enhances the security and economic efficiency of both networks but also fosters greater miner participation and resource utilization, making it a pivotal component in the evolution of blockchain technology. +* **Symbiotic Relationship:** This system promotes mutual benefits for both the Bitcoin and Core networks, fostering a cooperative environment that strengthens the blockchain ecosystem. +* **Resource Efficiency**: DPoW allows miners to maximize the utility of their existing computational resources. By supporting security of Core ecosystem while conducting their regular Bitcoin mining operations, miners can contribute to two networks simultaneously without additional energy expenditure. + + +#### **Conclusion** +DPoW is a critical innovation within the Satoshi Plus consensus mechanism, it extends the incentives of the Bitcoin network’s miners to align with Core’s Satoshi Plus consensus mechanism. Core receives Bitcoin miner participation in its security, and Bitcoin receives more highly compensated miners. The result is a miner set that is more heavily incentivized to secure both Bitcoin and Core. diff --git a/docs/Learn/core-concepts/satoshi-plus-consensus/components.md b/docs/Learn/core-concepts/satoshi-plus-consensus/components.md index 3ec5309cf3..34e370d25e 100644 --- a/docs/Learn/core-concepts/satoshi-plus-consensus/components.md +++ b/docs/Learn/core-concepts/satoshi-plus-consensus/components.md @@ -8,46 +8,47 @@ description: Learn about the major components of the Satoshi Plus Mechanism # Satoshi Plus Consensus Mechanism --- -The Satoshi Plus consensus mechanism represents a groundbreaking innovation in blockchain technology, specifically engineered for the Core Chain platform to synergistically combine the robust security attributes of Bitcoin with the flexibility and scalability of smart contracts. This hybrid consensus model merges Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS), and Non-custodial Bitcoin Staking, enables Bitcoin miners to participate directly in the governance and security of a decentralized smart contract platform without incurring additional costs. By leveraging the established Bitcoin mining infrastructure, Satoshi Plus not only fosters a dual-layered security protocol but also enhances the incentive structures across both ecosystems, ensuring a balanced alignment of interests among all stakeholders involved in Core Chain. +The Satoshi Plus consensus mechanism represents a groundbreaking innovation in blockchain technology, specifically engineered for the Core platform to synergistically combine the robust security attributes of Bitcoin with the flexibility and scalability of smart contracts. This hybrid consensus model merges Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS), and Non-custodial Bitcoin Staking, enables Bitcoin miners to participate directly in the governance and security of a decentralized smart contract platform without incurring additional costs. By leveraging the established Bitcoin mining infrastructure, Satoshi Plus not only fosters a dual-layered security protocol but also enhances the incentive structures across both ecosystems, ensuring a balanced alignment of interests among all stakeholders involved in Core blockchain. + +![satoshi-plus](https://github.com/user-attachments/assets/8e90becb-71c2-4798-813c-27bcf6e1badb) -![satoshi-3-component-combo](../../../../static/img/staoshi-plus/satoshi-plus-components.png) ## Major Components of the Satoshi Plus Mechanism -The Satoshi Plus consensus mechanism, designed for Core Chain, ingeniously integrates features of both Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS) and Non-Cstodial BTC Staking. This hybrid system is tailored to harness the strengths of Bitcoin's existing mining infrastructure while simultaneously incorporating the flexibility of staking mechanisms prevalent in many modern blockchains. Below are the various components, their roles, and how they interoperate to maintain network security and efficiency. Below, is a diagram illustrating how the different major components of the Satoshiu plus consensus mechanism fit together to provide a secure and robust ecosystem. +The Satoshi Plus consensus mechanism, designed for Core blockchain, ingeniously integrates features of both Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS) and Non-Cstodial Bitcoin Staking. This hybrid system is tailored to harness the strengths of Bitcoin's existing mining infrastructure while simultaneously incorporating the flexibility of staking mechanisms prevalent in many modern blockchains. Below are the various components, their roles, and how they interoperate to maintain network security and efficiency. Below, is a diagram illustrating how the different major components of the Satoshiu plus consensus mechanism fit together to provide a secure and robust ecosystem. ![component-diagram](../../../../static/img/staoshi-plus/component-diagram.jpg) ### 1. **Delegated Proof of Work (DPoW)** **Description:** -DPoW extends the traditional Proof of Work (PoW) system used by Bitcoin to include delegation features. This allows Bitcoin miners to participate in the consensus mechanism of Core Chain without altering their existing mining operations significantly. +DPoW extends the traditional Proof of Work (PoW) system used by Bitcoin to include delegation features. This allows Bitcoin miners to participate in the consensus mechanism of Core blockchain without altering their existing mining operations significantly. **How it works:** -- **Miner Participation:** Bitcoin miners contribute to the security of Core Chain by allocating a part of their computational power to the network. This is facilitated through a unique implementation where miners include specific metadata (such as the address of a Core Validator and the destination for their CORE token rewards) in a Bitcoin block’s `op_return` field. -- **Workflow:** When a miner mines a new Bitcoin block, they add this additional information to indicate their support for a particular Core Validator. This delegated hash power helps secure Core Chain, and in return, miners earn additional CORE tokens, which are supplementary to their regular Bitcoin mining rewards. +- **Miner Participation:** Bitcoin miners contribute to the security of Core blockchain by allocating a part of their computational power to the network. This is facilitated through a unique implementation where miners include specific metadata (such as the address of a Core Validator and the destination for their CORE token rewards) in a Bitcoin block’s `op_return` field. +- **Workflow:** When a miner mines a new Bitcoin block, they add this additional information to indicate their support for a particular Core Validator. This delegated hash power helps secure Core blockchain, and in return, miners earn additional CORE tokens, which are supplementary to their regular Bitcoin mining rewards. * **Bitcoin Miners** - Bitcoin miners secure the Bitcoin network via PoW, and can delegate their PoW to a Core validator by including certain information in the coinbase transaction of a block as it’s in the process of being mined. This delegation is non-destructive, meaning that they’re re-purposing their existing work, not choosing between securing Bitcoin and securing Core. - * **Relayers** - Relayers transmit Bitcoin block headers to the Core network. Anyone can become a relayer by registering and locking up a refundable CORE token deposit. + * **Relayers** - Relayers transmit Bitcoin blocks and transaction data to the Core network. Anyone can become a relayer by registering and locking up a refundable CORE token deposit. ### 2. **Delegated Proof of Stake (DPoS)** **Description:** -DPoS allows BTC and CORE token holders to engage in the network's governance by staking their tokens with Validators. This model promotes a more democratic and scalable consensus process compared to traditional PoW. +DPoS allows Bitcoin and CORE token holders to engage in the network's governance by staking their tokens with Validators. This model promotes a more democratic and scalable consensus process compared to traditional PoW. **How it works:** - **Staking and Voting:** Token holders stake their CORE tokens with Validators, effectively voting for them to participate in the consensus process. The more tokens staked with a Validator, the greater their influence in validating transactions and creating new blocks. -- **Workflow:** Stakers delegate their tokens to Validators through a secure staking process on the Core Chain platform. In exchange, they receive staking rewards in the form of CORE tokens. The staked tokens contribute to the network's overall security and decision-making processes. +- **Workflow:** Stakers delegate their tokens to Validators through a secure staking process on the Core platform. In exchange, they receive staking rewards in the form of CORE tokens. The staked tokens contribute to the network's overall security and decision-making processes. * **Bitcoin Stakers** - The third leg of Satoshi Plus consensus is non-custodial Bitcoin staking, which allows any bitcoin holder to earn yield by staking their bitcoin tokens without giving up custody. * **CORE Stakers** - All holders of Core Chain’s native CORE tokens are able to underwrite the network’s security by delegating their token holdings to a validator. ### 3. **Non-Custodial Bitcoin Staking** **Description:** -The third most important component of the Satoshi Plush consensus mechanism is the **Non-custodial Bitcoin Staking**. This features allows BTC holders to engage in the network's governance by staking their BTC on the Core Chain and then delegating them to their desired validators. This model promotes a more democratic and scalable consensus process compared to traditional PoW. +The third most important component of the Satoshi Plush consensus mechanism is the **Non-custodial Bitcoin Staking**. This features allows Bitcoin holders to engage in the network's governance by staking their Bitcoin natively on Bitcoin and then delegating them to their desired validators on the Core network. This model promotes a more democratic and scalable consensus process compared to traditional PoW. **How it works:** -- **Staking and Voting:** BTC holders stake their assets on Core Chain and also delegate them to their desired Validators on the Core blockchain, effectively voting for them to participate in the consensus process. The more BTC staked with a Validator, the greater their influence in validating transactions and creating new blocks. -- **Workflow:** Stakers delegate their BTC to Validators through a secure staking process on the Core Chain platform. In exchange, they receive staking rewards in the form of CORE tokens. The staked tokens contribute to the network's overall security and decision-making processes. +- **Staking and Voting:** Bitcoin holders stake their assets on Bitcoin network and also delegate them to their desired Validators on the Core blockchain, effectively voting for them to participate in the consensus process. The more Bitcoin staked with a Validator, the greater their influence in validating transactions and creating new blocks. +- **Workflow:** Stakers delegate their Bitcoin to Validators through a secure staking process on the Core platform. In exchange, they receive staking rewards in the form of CORE tokens. The staked tokens contribute to the network's overall security and decision-making processes. ### 4. **Validators** @@ -55,15 +56,15 @@ The third most important component of the Satoshi Plush consensus mechanism is t Validators are central to the functioning of the Satoshi Plus mechanism. They perform critical network functions including block production, transaction validation, and consensus achievement. Anyone can become a Core validator by registering with the network and locking up a refundable CORE token deposit. **How it works:** -- **Block Production:** Validators are responsible for creating new blocks in the Core Chain blockchain. They aggregate transactions into blocks, execute them, and then append these blocks to the blockchain. +- **Block Production:** Validators are responsible for creating new blocks in the Core blockchain. They aggregate transactions into blocks, execute them, and then append these blocks to the blockchain. - **Workflow:** Validators are chosen to produce blocks based on their total delegated stake (from both DPoW and DPoS). The selection process considers the amount of hash power and token stake delegated to them, ensuring that those with higher support from the community have a higher chance of being selected to create blocks. - * **Validator Election** - The validator set is determined through election, with validators chosen based on their hybrid score for each round. Any validator in the current validator set which hasn’t been jailed or slashed is considered “_live_”. To ensure a more stable TPS, the live validators are updated every **200** blocks, meaning that if any validators are jailed or slashed, the others can continue mining blocks as usual. Core uses its Validator Election mechanism to rank the top **23** validators based on hybrid scores, creating the validator set for a consensus period of **200** slots, known as an epoch. Each slot presents an opportunity for a block to be created and lasts **3** seconds. As such, each epoch lasts **600** seconds, or **10** minutes, and gives a validator up to **10** chances to create a block once accepted for an epoch. + * **Validator Election** - The validator set is determined through election, with validators chosen based on their hybrid score for each round. Any validator in the current validator set which hasn’t been jailed or slashed is considered “_live_”. To ensure a more stable TPS, the live validators are updated every **200** blocks, meaning that if any validators are jailed or slashed, the others can continue mining blocks as usual. Core uses its Validator Election mechanism to rank the top **27** validators based on hybrid scores, creating the validator set for a consensus period of **200** slots, known as an epoch. Each slot presents an opportunity for a block to be created and lasts **3** seconds. As such, each epoch lasts **600** seconds, or **10** minutes, and gives a validator up to **10** chances to create a block once accepted for an epoch. - * **Hybrid Score** - Every validator node seeking to become part of the validator set is given a hybrid score, which is calculated based on three factors: the DPoW from Bitcoin miners, the DPoS from CORE holders, and bitcoin holders delegating bitcoin to their preferred validators. The validator set is made up of the **23** validators with the highest hybrid scores. + * **Hybrid Score** - Every validator node seeking to become part of the validator set is given a hybrid score, which is calculated based on three factors: the DPoW from Bitcoin miners, the DPoS from CORE holders, and bitcoin holders delegating bitcoin to their preferred validators. The validator set is made up of the **27** validators with the highest hybrid scores. * **Verifiers** - Verifiers are responsible for reporting malicious behaviors on the network. Successful verification flags may result in slashing a malicious validator’s rewards or stake, or by jailing them outright, and verifiers are compensated for this monitoring activity when block rewards are dispensed. Anyone can act as a verifier on the Core network. - * **Round** - A round is the period of time during which the Core network updates the validator set and distributes rewards. At present, a round is one day. Every round (i.e. every day), all validators are given a hybrid score, and the **23** validators with the highest hybrid scores are elected to the validator set. The validator set then becomes responsible for producing blocks on the Core network for the entirety of that round. When the last block of each round has been produced, the accumulated rewards for the full round are calculated and distributed, and the validator set for the next round is also determined. + * **Round** - A round is the period of time during which the Core network updates the validator set and distributes rewards. At present, a round is one day. Every round (i.e. every day), all validators are given a hybrid score, and the **27** validators with the highest hybrid scores are elected to the validator set. The validator set then becomes responsible for producing blocks on the Core network for the entirety of that round. When the last block of each round has been produced, the accumulated rewards for the full round are calculated and distributed, and the validator set for the next round is also determined. * **Slot** - Each **1-day** round is divided into slots, and all validators in the validator set take turns producing one block per slot, in a round robin manner. Currently, the slot length is set to three seconds. In each slot, an honest validator either produces a block or fails to do so (if there are network issues, eclipse attacks, etc). @@ -76,15 +77,15 @@ A critical aspect of Satoshi Plus is the alignment of incentives across miners, **How it works:** - **Rewards Distribution:** Both miners and stakers receive rewards in CORE tokens, aligning their interests with the network's health. This dual-reward system encourages ongoing participation and support for the network. -- **Workflow:** Rewards are calculated based on several factors including the amount of computational power or tokens contributed, and are distributed automatically by the Core Chain protocol. This incentivizes continuous and honest participation in the network. +- **Workflow:** Rewards are calculated based on several factors including the amount of computational power or tokens contributed, and are distributed automatically by the Core blockchain protocol. This incentivizes continuous and honest participation in the network. ### 6. **Network Security and Symbiosis** **Description:** -Satoshi Plus enhances the security of both the Bitcoin and Core Chain networks by creating a symbiotic relationship where security enhancements in one benefit the other. +Satoshi Plus enhances the security of both the Bitcoin and Core networks by creating a symbiotic relationship where security enhancements in one benefit the other. **How it works:** -- **Shared Security Model:** By allowing Bitcoin miners to participate in Core Chain's security mechanisms, the system leverages Bitcoin's immense hashing power, enhancing the security of Core Chain without requiring significant additional resources. -- **Workflow:** As miners and stakers contribute to Core Chain’s security, both networks benefit. Miners use their existing setups to support Core Chain, and stakers provide additional security layers through token delegation, creating a robust and resilient network. +- **Shared Security Model:** By allowing Bitcoin miners to participate in Core's security mechanisms, the system leverages Bitcoin's immense hashing power, enhancing the security of Core blockchain without requiring significant additional resources. +- **Workflow:** As miners and stakers contribute to Core Chain’s security, both networks benefit. Miners use their existing setups to support Core blockchain, and stakers provide additional security layers through token delegation, creating a robust and resilient network. -In summary, the Satoshi Plus consensus mechanism cleverly integrates these components into a cohesive system that benefits from the security and decentralization of Bitcoin's mining process and the agility and governance capabilities of modern staking models, fostering a secure, efficient, and scalable blockchain environment. \ No newline at end of file +In summary, the Satoshi Plus consensus mechanism cleverly integrates these components into a cohesive system that benefits from the security and decentralization of Bitcoin's mining process and the agility and governance capabilities of modern staking models, fostering a secure, efficient, and scalable blockchain environment. diff --git a/docs/Learn/core-concepts/satoshi-plus-consensus/rewards.md b/docs/Learn/core-concepts/satoshi-plus-consensus/rewards.md index 47e0ead111..d6b7034b63 100644 --- a/docs/Learn/core-concepts/satoshi-plus-consensus/rewards.md +++ b/docs/Learn/core-concepts/satoshi-plus-consensus/rewards.md @@ -5,26 +5,22 @@ sidebar_position: 2 description: Rewards in the Core Ecosystem --- -# Rewards in the Core Chain Ecosystem +# Rewards in the Core Ecosystem --- -The Core Chain ecosystem is designed to incentivize participation and secure commitment from its community through a well-structured rewards system. This system underpins the Satoshi Plus consensus mechanism, ensuring network security, stakeholder engagement, and alignment of interests among all participants. The rewards system is fundamental in encouraging the community to partake actively in mining, staking, and governance, thereby enhancing the overall health and growth of the ecosystem. +The Core ecosystem is designed to incentivize participation and secure commitment from its community through a well-structured rewards system. This system underpins the Satoshi Plus consensus mechanism, ensuring network security, stakeholder engagement, and alignment of interests among all participants. The rewards system is fundamental in encouraging the community to partake actively in mining, staking, and governance, thereby enhancing the overall health and growth of the ecosystem. ## Types of Rewards -:::warning -The reward structure on Core Chain is subject to adjustments based on periodic governance votes, allowing the community to respond to changes in the ecosystem, such as fluctuations in token value or shifts in the security landscape. -::: - ![rewards](../../../../static/img/validator/Reward-Distribution.png) ### 1. Mining Rewards -* **Description:** Mining rewards are provided to Bitcoin miners who contribute their hashing power to secure the Core Chain. This process extends the traditional mining efforts on the Bitcoin blockchain to include support for Core Chain, without requiring miners to divert resources from their Bitcoin mining activities. -* **Mechanism:** Miners include specific metadata in the Bitcoin blocks they mine, indicating their support for Core Chain. In return for their contribution, miners receive CORE tokens as supplemental rewards, on top of their regular Bitcoin mining rewards. +* **Description:** Mining rewards are provided to Bitcoin miners who contribute their hashing power to secure the Core blockchain. This process extends the traditional mining efforts on the Bitcoin blockchain to include support for Core blockchain, without requiring miners to divert resources from their Bitcoin mining activities. +* **Mechanism:** Miners include specific metadata in the Bitcoin blocks they mine, indicating their support for Core blockchain. In return for their contribution, miners receive CORE tokens as supplemental rewards, on top of their regular Bitcoin mining rewards. ### 2. Staking Rewards -* **Description:** Staking rewards are distributed to BTC and CORE token holders who stake and delegate their tokens with Validators on the Core network. This staking not only helps secure the network through the Delegated Proof of Stake (DPoS) component of the Satoshi Plus consensus but also enables token holders to participate in network governance. -* **Mechanism:** DPoS allows holders of both CORE tokens and [Bitcoin](../../products/btc-staking/overview.md) to vote and participate in the election of the validator set by delegating their holdings to their preferred validators. For Core token staking, the minimum staking requirement is 1 CORE token, allowing any CORE holders to stake onto the Core network. On the bitcoin-staking side, the present configuration requires a **minimum staking requirement of 0.01 BTC** which is adjustable through a governance vote. Holders of both CORE token and BTC can delegate their respective tokens to validators of their choice through the official [staking website](https://stake.coredao.org/). The rewards earned by stakers are proportional to the amount of BTC/CORE staked and the duration of the staking, incentivizing long-term holding and participation in the consensus process. +* **Description:** Staking rewards are distributed to Bitcoin and CORE token holders who stake and delegate their tokens with Validators on the Core network. This staking not only helps secure the network through the Delegated Proof of Stake (DPoS) component of the Satoshi Plus consensus but also enables token holders to participate in network governance. +* **Mechanism:** DPoS allows holders of both CORE tokens and [Bitcoin](../../products/btc-staking/overview.md) to vote and participate in the election of the validator set by delegating their holdings to their preferred validators. For Core token staking, the minimum staking requirement is 1 CORE token, allowing any CORE holders to stake onto the Core network. On the bitcoin-staking side, the present configuration requires a **minimum staking requirement of 0.01 Bitcoin** which is adjustable through a governance vote. Holders of both CORE token and Bitcoin can delegate their respective tokens to validators of their choice through the official [staking website](https://stake.coredao.org/). The rewards earned by stakers are proportional to the amount of Bitcoin/CORE staked and the duration of the staking, incentivizing long-term holding and participation in the consensus process. ### 3. Validator Rewards @@ -37,64 +33,64 @@ Base rewards are calculated and distributed when the last block of a round is mi Validators share rewards with the entities that delegated to them – including CORE stakers, bitcoin stakers, and PoW delegators – but they decide how much to give back by deciding how much they (the validators) choose to keep for themselves. Validators can take as much or as little of the reward as they want, though they’re incentivized to be generous in order to attract more stake and hash power. -After the validators take their fees, the protocol uses this function to determine how the remaining rewards are split between CORE stakers, BTC stakers, and hash power delegators. Reward distribution is calculated based on the following formula: +After the validators take their fees, the protocol uses this function to determine how the remaining rewards are split between CORE stakers, Bitcoin stakers, and hash power delegators. Reward distribution is calculated based on the following formula: + + +### Hash Power Delegators (Miners & Mining Pools) $$ - rH = \frac{rHp}{tHp} * \frac{m}{S} * R + rH = \frac{\frac{rHp}{tHp} * m} {S} * R $$ -$$ - rS = \frac{rSp}{tSp + tBp * n} * \frac{(1-m)}{S} * R -$$ +### CORE Stakers +$$ + rS = \frac{\frac{rSp}{tSp} * k} {S} * R $$ - rB = \frac{(rBp * n)}{(tSp + tBp * n)} * \frac{(1-m)}{S * R} -$$ - -Where: -* $rH$ is the rewards received by the validator because of the hash power delegated to it (DPoW) -* $rS$ is the rewards received by the validator because of the CORE delegated to it (DPoS) -* $rB$ is validator rewards attributed to BTC staking -* $R$ is the overall rewards attributed to all delegators -For completeness, here are three other ratios of interest: +### Bitcoin Stakers $$ - rHu = \frac{rH}{rHp} + rB = \frac{\frac{rBp}{tBp} * l} {S} * R $$ -$$ - rSu = \frac{rS}{rSp} -$$ +Where: +* $$rH$$: Rewards attributed to delegated hash power (DPoW). +* $$rS$$: Rewards attributed to CORE staking (DPoS). +* $$rB$$: Rewards attributed to BTC staking. +* $$R$$: Total rewards allocated to all delegators. +* $$m$$: Proportion of rewards allocated to hash power. +* $$k$$: Proportion of rewards allocated to CORE staking. +* $$l$$: Proportion of rewards allocated to BTC staking. +* $$S$$: Hybrid score of the validator. -$$ - rBu = \frac{rB}{rBp} -$$ +Per unit reward calculations determine the rewards distributed for each staked unit of hash power, CORE, or BTC: + +* Per unit hash power reward: $$rHu$$ = $$ \frac{rH}{rHp} $$ +* Per unit CORE reward: rSu = $$ \frac{rS}{rSp} $$ +* Per unit BTC reward: $$rBu$$ of **Pn** = $$\frac{rB}{rBp}$$ x Yield Multiplier for Leveln Where: -* $rHu$ is the validator hash power rewards per unit; -* $rSu$ is the CORE token staking rewards per unit; -* $rBu$ is the BTC staking rewards per unit; +* $$rHu$$ is the validator hash power rewards per unit; +* $$rSu$$ is the CORE token staking rewards per unit; +* $$rBu$$ of **Pn** is the BTC staking rewards per unit for delegator with PN BTC yield level +* **Yield Multipliers:** Each boosted yield level has a specific multiplier (e,f,g,h, ..., etc) that is determined by a user's staking data as well as system dual staking settings. The settings are subject to change and are configurable through governance voting. These calculations ensure proportional rewards are distributed based on individual contributions to a validator’s delegation pool. -These reward-splitting functions are designed to create an active market for rewards while encouraging competition amongst the validator set for both delegated hash power and delegated stake. For their part, delegators will try to optimize their own rewards by choosing validators with lower amounts of delegated hash power and stake. To maximize their rewards, delegators will look both for validators that are generous in their payouts, but also don’t already have a substantial amount of delegated CORE tokens or delegated PoW. The less a given validator has staked, the greater a contribution from a delegator will be. If a delegator adds one CORE token to a validator that only has one token, they’re 50% of that validator’s total delegation. If they delegate to a validator with 99 CORE tokens, they’re only 1% of that validator’s total delegation. Since payouts are determined in part based on the percentage of total stake each delegator accounts for, they’ll be incentivized to try and find validators with small delegations. +#### Impact of Dual Staking on BTC Rewards +With the introduction of Dual Staking, BTC staking rewards are now tiered based on the amount of CORE staked relative to BTC. BTC rewards are no longer evenly distributed across all participants. Instead, they are allocated dynamically based on dual staking thresholds, with higher tiers generally receiving a greater proportion of the rewards. This tiered structure introduces variability in BTC staking returns, aligning incentives across the Core ecosystem while maintaining proportionality in reward distribution. -### 4. Relayer and Verifier Rewards -In the Core Chain ecosystem, the base rewards are calculated and distributed when the last block of a round is mined, with **90%** going to the validators and **10%** to the System Rewards Contract. The System Reward Contract accumulates rewards to remunerate relayers and verifiers. As things stand, there is a cap of **10 million** total CORE tokens in the System Reward Contract. Any rewards in excess of this amount are burned. -Relayers are responsible for communicating the Bitcoin block headers to the Core network. They earn a portion of the base system rewards and transaction fees for this cross-chain communications work. Relayer rewards are distributed in batches, every 100 Bitcoin blocks. Relayers claim their rewards periodically. +## Reward Split -Verifiers in the Core Chain ecosytem are responsible for monitoring the behavior of validators and report them if they engage in double signing or other malicious activity. When successful, rewards are paid out immediately from the System Rewards Contract, in the same transaction. +These reward-splitting functions are designed to create an active market for rewards while encouraging competition amongst the validator set for both delegated hash power and delegated staked CORE and Bitcoin. For their part, delegators will try to optimize their own rewards by choosing validators with lower amounts of delegated hash power and stake. To maximize their rewards, delegators will look both for validators that are generous in their payouts, but also don’t already have a substantial amount of delegated CORE tokens or delegated PoW. The less a given validator has staked, the greater a contribution from a delegator will be. If a delegator adds one CORE token to a validator that only has one token, they’re 50% of that validator’s total delegation. If they delegate to a validator with 99 CORE tokens, they’re only 1% of that validator’s total delegation. Since payouts are determined in part based on the percentage of total stake each delegator accounts for, they’ll be incentivized to try and find validators with small delegations. + +### 4. Relayer and Verifier Rewards +In the Core ecosystem, the base rewards are calculated and distributed when the last block of a round is mined, with **90%** going to the validators and **10%** to the System Rewards Contract. The System Reward Contract accumulates rewards to remunerate relayers and verifiers. As things stand, there is a cap of **10 million** total CORE tokens in the System Reward Contract. Any rewards in excess of this amount are burned. -### 5. Governance Participation Rewards: -* **Description:** Participants in the Core Chain governance process are incentivized through rewards that encourage active and thoughtful participation in decision-making processes. -* **Mechanism:** Rewards are distributed to users who vote on proposals and participate in other governance activities. These rewards aim to foster a proactive governance community and ensure that decisions reflect the broad consensus of the ecosystem’s stakeholders. +Relayers are responsible for communicating the Bitcoin blocks and transaction data to the Core network. They earn a portion of the base system rewards and transaction fees for this cross-chain communications work. Relayer rewards are distributed in batches, every 100 Bitcoin blocks. Relayers claim their rewards periodically. -## Reward Distribution Strategy -Core Chain follows the following distribution Principles: - * **Fairness:** The rewards system is designed to be fair, ensuring that contributions, whether in the form of staking, mining, or governance participation, are equitably recognized and rewarded. - * **Transparency:** All aspects of the reward distribution are transparent, allowing participants to understand how rewards are calculated and distributed. - * **Security:** The distribution mechanism is secured against manipulation and abuse, using cryptographic and smart contract-based safeguards to ensure the integrity of the reward process. +Verifiers in the Core ecosytem are responsible for monitoring the behavior of validators and report them if they engage in double signing or other malicious activity. When successful, rewards are paid out immediately from the System Rewards Contract, in the same transaction. ## Conclusion -The rewards in the Core Chain ecosystem play a crucial role in maintaining the security, vitality, and decentralization of the network. By aligning the incentives of various participants through a comprehensive and adaptable rewards system, Core Chain ensures ongoing engagement and contributes to the sustained growth and stability of the platform. This structured approach to incentivization is foundational to the success of Core Chain as a leading platform in the Bitcoin DeFi landscape. \ No newline at end of file +The rewards in the Core ecosystem play a crucial role in maintaining the security, vitality, and decentralization of the network. By aligning the incentives of various participants through a comprehensive and adaptable rewards system, Core ensures ongoing engagement and contributes to the sustained growth and stability of the platform. This structured approach to incentivization is foundational to the success of Core as a leading platform in the Bitcoin DeFi landscape. diff --git a/docs/Learn/core-concepts/satoshi-plus-consensus/security.md b/docs/Learn/core-concepts/satoshi-plus-consensus/security.md index f054bcdc8f..d831ad18bc 100644 --- a/docs/Learn/core-concepts/satoshi-plus-consensus/security.md +++ b/docs/Learn/core-concepts/satoshi-plus-consensus/security.md @@ -2,38 +2,38 @@ sidebar_label: Security hide_table_of_contents: false sidebar_position: 2 -description: Learn about the Security Model of Core Chain +description: Learn about Core's Security Model --- -# Core Chain's Approach to Security +# Core Security --- ## Overview -Core Chain, as a revolutionary Bitcoin-aligned EVM blockchain, leverages the Satoshi Plus consensus mechanism to ensure an optimal blend of security, decentralization, and scalability. This approach harnesses the intrinsic security features of Bitcoin while enabling robust smart contract functionality and DeFi integration, making it a pioneering platform in the blockchain space. +Core, as a Bitcoin-aligned EVM blockchain, leverages the Satoshi Plus consensus mechanism to uphold an optimal blend of security, decentralization, and scalability. This approach harnesses the intrinsic security features of Bitcoin while enabling robust smart contract functionality and DeFi integration, making it a pioneering platform in the blockchain space. ## Security Components ### 1. Delegated Proof of Work (DPoW) and Delegated Proof of Stake (DPoS) -Core Chain incorporates these two powerful mechanisms to form a balanced and secure blockchain environment. The DPoW extends the proven security model of Bitcoin by allowing miners to delegate hashing power to Core Chain, thereby benefiting from Bitcoin’s immense hash rate and security pedigree. On the other hand, DPoS enables both BTC (through non-custodial staking) and CORE token holders to stake their assets with validators on the Core network, promoting a decentralized network governance and additional security layers. +Core incorporates these two powerful mechanisms to form a balanced and secure blockchain environment. The DPoW extends the proven security model of Bitcoin by allowing miners to delegate hashing power to Core, thereby benefiting from Bitcoin’s immense hash rate and security pedigree. On the other hand, DPoS enables both BTC (through non-custodial staking) and CORE token holders to stake their assets with validators on the Core network, promoting decentralized network governance and additional security layers. ### 2. Validator Security -Validators are central to maintaining the integrity and security of the Core Chain. They are selected based on the combined weight of staked tokens (CORE and BTC) and delegated hash power, ensuring that only the most supported and trusted nodes handle the consensus process. This dual support system mitigates the risk of centralization and security breaches. +Validators are central to maintaining the integrity and security of the Core blockchain. They are selected based on the combined weight of staked tokens (CORE and BTC) and delegated hash power, so that only the most supported and trusted nodes handle the consensus process. This dual support system mitigates the risk of centralization and security breaches. ### 3. Security Through Incentivization The Satoshi Plus mechanism incentivizes both miners and stakers (CORE and BTC) by providing rewards in CORE tokens, aligning their interests with the network’s longevity and integrity. This economic incentivization helps sustain a robust participation level, crucial for maintaining a secure and decentralized network. ## Security Protocols and Implementations 1. **Robust Transaction Validation** -Core Chain validators are responsible for verifying transactions and creating new blocks. The unique combination of DPoW, DPoS, and Non-custodial BTC Staking ensures that these validators have sufficient computational and stake-based support to perform their roles effectively, reducing the likelihood of fraudulent activities and ensuring the accuracy of the blockchain ledger. +Core validators are responsible for verifying transactions and creating new blocks. The unique combination of DPoW, DPoS, and Non-Custodial BTC Staking involves many stakeholders and significant capital in the election of validators, thus heavily incentivizing the election of trustworthy validators and the honest participation of those validators. -2. **Network Resilience Against Attacks** -The integration of Bitcoin’s hash power with CORE and BTC staking makes the Core Chain exceptionally resilient against various types of attacks. The high cost of attacking such a hybrid system, combined with distributed consensus achieved through delegated mechanisms, significantly enhances network security. +3. **Network Resilience Against Attacks** +The integration of Bitcoin’s hash power with CORE and BTC staking makes Core exceptionally resilient against various types of attacks. The high cost of attacking such a hybrid system, combined with distributed consensus achieved through delegated mechanisms, significantly enhances network security. -3. **Upgradability and Flexibility** -Unlike traditional blockchains that rely solely on a single form of consensus, Core Chain’s hybrid model allows for adaptability and upgradability. This flexibility ensures that the network can evolve in response to emerging security threats or advancements in blockchain technology. +4. **Upgradability and Flexibility** +Unlike traditional blockchains that rely solely on a single form of consensus, Core’s hybrid model allows for adaptability and upgradability. This flexibility is designed to enable the network to evolve in response to emerging security threats or advancements in blockchain technology. -## Attack Vectors and Security Measures in the Core Chain Ecosystem +## Attack Vectors and Security Measures in the Core Ecosystem -The Core Chain employs a robust security architecture to mitigate potential threats, integrating both technological safeguards and economic incentives within the Satoshi Plus consensus mechanism. Here is an expanded view on how these mitigations are achieved for each potential attack vector. +Core employs a robust security architecture to mitigate potential threats, integrating both technological safeguards and economic incentives within the Satoshi Plus consensus mechanism. Here is an expanded view on how these mitigations are achieved for each potential attack vector. ### Double Spending Attacks - **Description:** Double spending involves an attacker attempting to spend the same digital currency twice. @@ -44,23 +44,23 @@ The Core Chain employs a robust security architecture to mitigate potential thre ### 51% Attacks - **Description:** These attacks occur when a single entity gains control of more than half of the network's computational power or staking capacity. - **Mitigation Achieved By:** - - **Decentralized Validator Base:** By requiring validators to be backed by substantial staking and hashing contributions, the system ensures a broad distribution of control, diluting the power any single miner or group might have. + - **Decentralized Validator Base:** By requiring validators to be backed by substantial staking and hashing contributions, the system assigns a broad distribution of control, diluting the power any single miner or group might have. - **Economic Disincentives:** The cost associated with acquiring sufficient resources to control more than half of both mining and staking aspects of the network makes such attacks economically disadvantageous. ### Sybil Attacks - **Description:** An attacker creates numerous fake identities to gain disproportionate influence over the network. - **Mitigation Achieved By:** - **Economic Barriers:** Staking and mining requirements introduce significant financial barriers to entry, discouraging the proliferation of false identities as each must be backed by substantial real resources. - - **Identity Verification via Staking and Mining:** Validators are known entities that must continuously prove their commitment through ongoing mining and staking, ensuring only genuine participants control the network. + - **Identity Verification via Staking and Mining:** Validators are known entities that must continuously prove their commitment through ongoing mining and staking, so only genuine participants control the network. ### Long-Range Attacks - **Description:** Attackers attempt to revert the blockchain to a previous state by building an alternative chain from a past point. - **Mitigation Achieved By:** - - **Checkpointing:** Core Chain implements periodic checkpointing where the state of the blockchain at certain intervals is solidified, preventing reversion past these points. + - **Checkpointing:** Core implements periodic checkpointing where the state of the blockchain at certain intervals is solidified, preventing reversion past these points. - **Finality Mechanism:** The blockchain employs mechanisms that confer finality on blocks after a certain number of confirmations, making it impossible to alter the chain’s history beyond these confirmed blocks. ### Economic Incentive Alignment -- **Description:** Ensuring all network participants are economically incentivized to act in the network's best interest. +- **Description:** All network participants are economically incentivized to act in the network's best interest. - **Mitigation Achieved By:** - **Reward Distribution:** Miners, stakers, and validators receive rewards that correlate with their contribution to network security, aligning their economic incentives with the overall health and security of the blockchain. - **Penalties for Dishonest Behavior:** Validators and miners stand to lose their stakes or future earning potential if found to be acting maliciously, adding a layer of financial deterrence against misconduct. @@ -69,14 +69,14 @@ The Core Chain employs a robust security architecture to mitigate potential thre - **Description:** These involve exploiting the governance mechanism to pass unfavorable or malicious proposals. - **Mitigation Achieved By:** - **Broad Consensus Requirements:** Proposals require broad consensus across a diverse set of stakeholders, minimizing the risk that a small, concentrated group can unilaterally affect changes. - - **Transparent Proposal and Voting Process:** All governance actions are recorded transparently on the blockchain, ensuring traceability and accountability. + - **Transparent Proposal and Voting Process:** All governance actions are recorded transparently on the blockchain, fascilitating traceability and accountability. ### Smart Contract Vulnerabilities - **Description:** Vulnerabilities in smart contract code can be exploited to conduct thefts or manipulate services. - **Mitigation Achieved By:** - **Code Audits and Security Reviews:** Regular and thorough audits of smart contract code by independent security firms help identify and rectify potential vulnerabilities. - - **Bug Bounty Programs:** Encouraging the community and security researchers to find and report bugs ensures that many potential exploits are caught early by offering rewards for their discovery. + - **Bug Bounty Programs:** Encouraging the community and security researchers to find and report bugs, so that many potential exploits are caught early by offering rewards for their discovery. ## Conclusion -Core Chain's security strategy is deeply integrated with its unique consensus mechanism, Satoshi Plus, which leverages the strengths of both Bitcoin's mining capabilities and the staking mechanisms prevalent in modern blockchains. Furthermore, Core Chain's security strategy is multi-faceted, addressing potential vulnerabilities through technical safeguards, economic incentives, and community-driven processes. This comprehensive approach not only enhances the resilience of the network against attacks but also fosters a robust ecosystem where stakeholders are motivated to maintain and protect the network's integrity. As Core Chain continues to develop and integrate new features, its foundational focus on security remains a critical component in its design and operation, ensuring that it remains a secure and trustworthy platform for users and developers alike. +Core's security strategy is deeply integrated with its unique consensus mechanism, Satoshi Plus, which leverages the strengths of both Bitcoin's mining capabilities and the staking mechanisms prevalent in modern blockchains. Furthermore, Core's security strategy is multi-faceted, addressing potential vulnerabilities through technical safeguards, economic incentives, and community-driven processes. This comprehensive approach not only enhances the resilience of the network against attacks but also fosters a robust ecosystem where stakeholders are motivated to maintain and protect the network's integrity. As Core continues to develop and integrate new features, its foundational focus on security remains a critical component in its design and operation, so that it remains a secure and trustworthy platform for users and developers alike. diff --git a/docs/Learn/core-concepts/satoshi-plus-consensus/validator-election.md b/docs/Learn/core-concepts/satoshi-plus-consensus/validator-election.md index ef486975d5..2dd9b827e4 100644 --- a/docs/Learn/core-concepts/satoshi-plus-consensus/validator-election.md +++ b/docs/Learn/core-concepts/satoshi-plus-consensus/validator-election.md @@ -2,108 +2,101 @@ sidebar_label: Validator Election hide_table_of_contents: false sidebar_position: 2 -description: Learn about Validator Election Process +description: Learn about the Satoshi Plus Validator Election Process --- -# Validator Election Process on the Core Chain Network +# Validator Election --- ## Overview -Validators are a crucial part of the Core blockchain. In addition to the fact that they handle transaction validation and block production, the validator election process is where all the components, i.e., DPoW, DPoS and Non-custodial Bitcoin Staking, of Satoshi Plus consensus come together. The Validator election process is a central feature of the Satoshi Plus consensus mechanism employed by Core Chain. This process ensures the integrity, security, and efficiency of the blockchain by electing Validators responsible for validating transactions and creating new blocks. +The Validator Election Process in Core's Satoshi Plus consensus mechanism is where Delegated Proof of Work, Delegated Proof of Stake, and Non-Custodial Bitcoin Staking are synthesized. Bitcoin miners/mining pools, CORE stakers, and Bitcoin stakers contribute to the election of validators via a hybrid scoring system. -## Importance of Validator Election +Validators play a vital role in producing blocks and validating transactions on the Core network. The election process determines which validators will be part of the active validator set for each round, ensuring that the most trusted and well-supported validators are chosen to maintain the network’s integrity. -* **Security and Integrity**: Validators maintain the blockchain's integrity, making a robust election process crucial for ensuring that only the most reliable nodes manage the blockchain ledger. +## Step by Step Process -* **Decentralization**: The election process allows miners and stakers to participate in Validator selection, promoting decentralization and preventing the concentration of control. +1. **Delegation of Resources:** + * **Bitcoin Miners:** Bitcoin miners delegate their hash power to Core Validators by including specific information in the op_return field of the coinbase transaction. + * **CORE Token Stakers:** Holders of CORE tokens delegate their staked tokens to their preferred validators. + * **Bitcoin Stakers:** Bitcoin holders lock their Bitcoin in absolute time locks and delegate their Bitcoin to their chosen validators. -* **Incentive Alignment**: Stakeholders are incentivized to support effective Validators, aligning interests across the network. Validators and their supporters (miners and stakers) receive rewards, ensuring accountability and continued participation. +2. **Hybrid Score Calculation:** + * The hybrid score for each validator is calculated based on the amount of delegated hash power from Bitcoin miners, the amount of staked CORE tokens, and the amount of staked Bitcoin. + * The formula balances these three components to produce a score that reflects the validator’s overall support and reliability. -* **Efficiency and Scalability**: Competent Validators enhance the network's transaction handling capacity, crucial for performance and scalability. +3. **Election of Validators:** + * Every round, which lasts one day, the validators with the highest hybrid scores are elected to the validator set. + * The top 27 validators with the highest scores are chosen to be part of the active validator set for that round. -## Workflow of the Validator Election Process +4. **Validator Responsibilities:** + * Elected validators are responsible for producing blocks and validating transactions throughout the round. + * They work in a round-robin manner, taking turns to produce blocks during each slot, with each slot lasting three seconds. -The Validator election process in Satoshi Plus involves key steps, supported by specific equations to quantify stake and hash power contributions: - -1. **Stake Delegation**: - - CORE and BTC token holders stake and delegate their tokens to Validator candidates. This delegation is a form of voting, where the weight of each vote corresponds to the number of staked tokens. +5. **Updating the Validator Set:** + * The validator set is updated every 200 blocks to ensure stability and performance. If any validator is jailed or slashed, others continue to produce blocks without interruption. + * At the end of each round, the accumulated rewards are calculated and distributed, and a new validator set is determined based on the updated hybrid scores. -2. **Hash Power Delegation**: - - Bitcoin miners delegate a portion of their hash power by specifying their preferred Validators in the Bitcoin blocks they mine. This process integrates Bitcoin's mining power into Core Chain's security mechanism. +6. **Rewards Distribution:** + * Validators and their delegators earn CORE token rewards based on their performance and the amount of resources delegated to them. + * These rewards incentivize continuous participation and diligent performance by validators. -3. **Validator Selection**: - - Validators are selected based on the total support they receive, calculated by combining staked tokens and delegated hash power. The selection equation is: - -$$ - Validator Score = \alpha * {Staked Tokens} + \beta * {Delegated Hash Power} -$$ - - - In this equation, $\alpha$ and $\beta$ are weights assigned to staked tokens and delegated hash power, respectively, balancing their contributions to the election process. +## Workflow of the Validator Election Process​ -4. **Validator Set Formation**: -A set of Validators is formed from those with the highest scores. This set is dynamically updated to reflect ongoing changes in stake delegations and hash power allocations. There are two steps involved in validator election. - -1. Hybrid scores are calculated for all validators in the network with the following equation. Before we added bitcoin staking, we calculated hybrid score for each validator with the following equation: - -$$ - S = \frac{rHp}{tHp} * m + \frac{rSp}{tSp} * (1 - m) -$$ +The Validator election process in Satoshi Plus involves key steps, supported by specific equations to quantify stake and hash power contributions: -Where: +1. **Stake Delegation:** + * CORE and Bitcoin holders stake and delegate their tokens to validator candidates. This delegation is a form of voting, where the weight of each vote corresponds to the number of staked tokens. -* $rHp$ is the Bitcoin hash power delegated to a validator, measured as the total number of Bitcoin blocks with that validator’s information written into their coinbase transactions; -* $tHp$ is the total hash power on Core Chain; -* $rSp$ is the amount of CORE tokens delegated by CORE holders to that validator; -* $tSp$ is the total stake on Core Chain; -* $m$ is a dynamic weighting that adjusts over time to ensure a smooth transition during ramp up; +2. **Hash Power Delegation:** + * Bitcoin miners delegate a portion of their hash power by specifying their preferred validators in the Bitcoin blocks they mine. This process integrates Bitcoin's mining power into Core's security mechanism. -With the implementation of staking, the new hybrid score is calculated with this equation: +3. **Validator Selection:** + * Validators are selected based on the total support they receive, calculated by combining staked tokens (CORE and Bitcoin) and delegated hash power. The equation behind the hybrid score is: $$ - S = \frac{rHp}{tHp} * m + \frac{rSp + rBp * n}{tSp + tBp * n} * (1 - m) + S = (\frac{rHp}{tHp})* m + (\frac{rSp}{tSp})*k + (\frac{rBp}{tBp})*l $$ -Where: - -* $rHp$ is the Bitcoin hash power delegated to a validator, measured as the total number of Bitcoin blocks with that validator’s information written into their coinbase transactions; -* $tHp$ is the total hash power on Core Chain -* $rSp$ is the amount of CORE tokens delegated by CORE token holders to that validator -* $tSp$ is the total amount of CORE tokens stake on Core Chain -* $rBp$ is the amount of BTC tokens delegated by BTC holders to that validator -* $tBp$ is the total amount of BTC staked on Core Chain -* $m$ is a dynamic factor that controls the overall weights of hash power $(0 < m <1)$ -* $n$ is a dynamic factor that controls the voting power of each BTC vs. each CORE token. - -2. At the end of each round validators are ranked in order of their hybrid score, and the **23** validators with the highest hybrid scores are selected for the validator set in the next round. +Where, $$ m + k + l = 1 $$ -Leaving aside the mathematical details, this is essentially a weighted, bicameral voting procedure. Bitcoin miners can vote for validators through their PoW (by writing validator information into the coinbase transaction on blocks they’ve already mined), CORE token holders can vote for a validator with their PoS (by delegating their tokens to it), and non-custodial bitcoin stakers can vote for a validator through the same mechanism. This delegated PoW and delegated PoS are weighted to determine the hybrid score. +* $$rHp$$: Bitcoin hash power delegated to a validator. +* $$tHp$$: Total hash power on Core. +* $$rSp$$: Amount of CORE tokens staked to a validator. +* $$tSp$$: Total CORE tokens staked on Core. +* $$rBp$$: Amount of BTC tokens staked to a validator. +* $$tBp$$: Total BTC tokens staked on Core. +* $$m$$: Ratio assigned to hash power. +* $$k$$: Ratio assigned to CORE staking. +* $$l$$: Ratio assigned to BTC staking. -This is the “core” of the Core blockchain, the mechanism by which the network leverages the security and decentralization of the Bitcoin network and the scalability and composability of Ethereum. Letting Bitcoin miners and bitcoin stakers vote on validators allows Core Chain to avail itself of Bitcoin’s legendary robustness; and because Core Chain is EVM compatible, it’s possible to build smart contracts, dApps, and other applications on Core Chain that couldn’t be done without changes to the underlying Bitcoin protocol. +4. **Block Production:** + * After election, all validators are sorted roughly in order of their hybrid score, and take turns producing blocks in a **round-robin manner** before the process starts over again from the beginning. The present number of validators is **27**_, with the number of validators expected to increase over time as the network grows. What’s more, this mechanism provides additional security through improved efficiency and a tolerance for a large number of Byzantine players. Core is secure as long as no more than $1 \over 3$ of the validators are malicious. -5. **Block Production**: - - After election, all validators are sorted roughly in order of their hybrid score, and they take turns producing blocks in a **round-robin manner** before the process starts over again from the beginning. By _initially limiting the number of validators to **23**_, Satoshi Plus offers a higher transaction rate and increased scalability, but the number of validators is expected to increase over time as the network grows. What’s more, this mechanism provides additional security through improved efficiency and a tolerance for a large number of Byzantine players. Core Chain is secure as long as no more than $1 \over 3$ of the validators are malicious. - -6. **Reward Distribution**: - - Rewards are distributed based on contributions to network security, using the following formula: +5. **Reward Distribution:** + * Rewards are distributed based on contributions to network security, using the following formula: $$ - rH = \frac{rHp}{tHp} * \frac{m}{S} * R + rH = \frac{\frac{rHp}{tHp} * m} {S} * R $$ $$ - rS = \frac{rSp}{tSp + tBp * n} * \frac{(1-m)}{S} * R + rS = \frac{\frac{rSp}{tSp} * k} {S} * R $$ $$ - rB = \frac{(rBp * n)}{(tSp + tBp * n)} * \frac{(1-m)}{S * R} + rB = \frac{\frac{rBp}{tBp} * l} {S} * R $$ Where: * $rH$ is the rewards received by the validator because of the hash power delegated to it (DPoW) * $rS$ is the rewards received by the validator because of the CORE delegated to it (DPoS) - * $rB$ is validator rewards attributed to BTC staking - * $R$ is the overall rewards attributed to all delegators + * $rB$ is validator rewards attributed to Bitcoin staking + * $$R$$: Total rewards allocated to all delegators of the validaotr. + * $$m$$: Proportion of rewards allocated to hash power. + * $$k$$: Proportion of rewards allocated to CORE staking. + * $$l$$: Proportion of rewards allocated to BTC staking. + * $$S$$: Hybrid score of the validator. For completeness, here are three other ratios of interest: @@ -115,21 +108,29 @@ This is the “core” of the Core blockchain, the mechanism by which the networ rSu = \frac{rS}{rSp} $$ - $$ - rBu = \frac{rB}{rBp} - $$ + As for BTC staking, the rewards per unit are further subdivided based on the delegators’ dual staking yield tiers. Assuming that there are 4 boosted yield levels (PBASE, P1, P2, and PMAX) with dual staking yield multipliers (e, f, g, and h). The reward per unit for BTC staking will be calculated as follows + * Per unit BTC reward: $$rBu$$ of **Pn** = $$\frac{rB}{rBp} * $$ Yield Multiplier for Leveln + * $$rBu$$ of PBASE = $$ \frac{rB}{rBp} * e $$ + * $$rBu$$ of P1 = $$ \frac{rB}{rBp} * f $$ + * $$rBu$$ of P2 = $$ \frac{rB}{rBp} * g $$ + * $$rBu$$ of PMax = $$ \frac{rB}{rBp} * h $$ - Where: + Where: * $rHu$ is the validator hash power rewards per unit; * $rSu$ is the CORE token staking rewards per unit; - * $rBu$ is the BTC staking rewards per unit; + * $rBu$ is the Bitcoin staking rewards per unit; + * $rBu$ of PBASE is the BTC staking rewards per unit for PBASE delegator + * $rBu$ of PLevel1 is the BTC staking rewards per unit for PLevel1 delegator + * $rBu$ of PLevel2 is the BTC staking rewards per unit for PLevel2 delegator + * $rBu$ of PMAX is the BTC staking rewards per unit for PMAX delegator; + * **Yield Multipliers:** Each reward tier has a specific multiplier (e,f,g,h, ..., etc) that is multiplied to rewards earned per unit of BTC staked. - These reward-splitting functions are designed to create an active market for rewards while encouraging competition amongst the validator set for both delegated hash power and delegated stake (BTC and CORE). +These reward-splitting functions are designed to create an active market for rewards while encouraging competition amongst the validator set for both delegated hash power and delegated stake (Bitcoin and CORE). -### Flow Diagram of the Validator Election Process +## Flow Diagram of the Validator Election Process The following diagram visually represents the Validator election process in Satoshi Plus: ![validator-election-flow](../../../../static/img/staoshi-plus/validator-election-flow.png) -This flowchart illustrates the cyclical nature of the validator election and their ongoing responsibilities within the Satoshi Plus consensus mechanism. It emphasizes how stake and hash power delegation directly influence validator selection, block production, and reward distribution, driving a secure, decentralized, and efficiently managed network. \ No newline at end of file +This flowchart illustrates the cyclical process of the validator election and their ongoing responsibilities within Satoshi Plus. It emphasizes how stake and hash power delegations directly influence validator selection, block production, and reward distribution, driving a secure, decentralized, and efficiently managed network. diff --git a/docs/Learn/economics/core-token/tokenomics-and-utility.md b/docs/Learn/economics/core-token/tokenomics-and-utility.md index 1afa3960d2..f67387ab26 100644 --- a/docs/Learn/economics/core-token/tokenomics-and-utility.md +++ b/docs/Learn/economics/core-token/tokenomics-and-utility.md @@ -4,16 +4,16 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Core Chain Tokenomics and Utility +# CORE Tokenomics and Utility --- ## Overview -The tokenomics of CORE, the native utility and governance token of Core Chain, is structured to reflect a philosophy deeply rooted in decentralization, sustainability, and long-term alignment of incentives. With a capped supply mirroring Bitcoin's scarcity model and a distribution strategy focusing on decentralization, Core Chain aims to be among the most equitably launched blockchains in history. +The tokenomics of CORE, the native utility and governance token of the Core blockchain, is structured to reflect a philosophy deeply rooted in decentralization, sustainability, and long-term alignment of incentives. With a capped supply mirroring Bitcoin's scarcity model and a distribution strategy focusing on decentralization, Core is among the most equitably launched blockchains in history. ## Token Distribution -CORE tokenomics is designed with a focus on long-term sustainability and decentralization. Inspired by the sound monetary policy of Bitcoin and the need for a fair distribution of governance power, CORE tokens serve as the backbone of the Core Chain ecosystem. +CORE tokenomics is designed with a focus on long-term sustainability and decentralization. Inspired by the sound monetary policy of Bitcoin and the need for a fair distribution of governance power, CORE tokens serve as the backbone of the Core ecosystem. -![tokenomics](../../../../static/img/tokenomics-distribution.png) +![tokenomics](https://github.com/user-attachments/assets/b30cf0e6-2282-4355-ab96-4f9579099122) CORE tokens are allocated across several channels to balance the ecosystem. The following diagram illustrates the distribution of CORE tokens.The distribution of the total **2.1 billion** CORE tokens is as follows: @@ -26,7 +26,7 @@ To bootstrap the network, nodes are rewarded for securing the chain. These rewar 4. **Reserves (10% - 210,000,000 CORE tokens):** A strategic reserve is maintained to capitalize the foundation progressively without centralizing the token supply. -5. **Treasury (9.5% - 199,500,000 CORE tokens):** The Treasury funds are allocated to foster the ecosystem's development and ensure the DAO has the necessary resources. +5. **Treasury (9.5% - 199,500,000 CORE tokens):** The Treasury funds are allocated to foster the ecosystem's development and supply the DAO with sufficient resources for growth. 6. **Relayer Rewards (0.476% - 10,000,000 CORE tokens):** Relayers, like nodes, play a vital role in maintaining the network's security and are compensated with rewards and transaction fees. @@ -35,7 +35,7 @@ To bootstrap the network, nodes are rewarded for securing the chain. These rewar CORE tokens serve multiple critical functions within the Core network: - **Transaction Fees:** Users pay for transactions and smart contract executions using CORE tokens. -- **Staking:** Core allows to stake both BTC and CORE tokens on the Core network, securing it further and enabling stakers to earn rewards. +- **Staking:** Core allows to stake both Bitcoin and CORE tokens on the Core network, securing it further and enabling stakers to earn rewards. - **Governance Participation:** Token holders can participate in on-chain governance, shaping the future of the Core network. ## Sound Supply and Emissions @@ -44,28 +44,39 @@ Following a strict hard cap of **2.1 billion** tokens, CORE adopts Bitcoin's abs - **Annual Reward Adjustment:** Each year, block rewards decrease by **3.6%**, extending the emissions schedule and maintaining a deflationary pressure. +### Cumulative CORE Emissions Monthly (First 6 Years) +![6-years-emissions](https://github.com/user-attachments/assets/e6903e1d-b146-4b6f-982d-dd06e6a56cb8) + +### Cumulative CORE Emissions Yearly (81 Years) + +![81-years-emissions](https://github.com/user-attachments/assets/8caa5c7a-33ae-4c12-bc71-0512d490eb48) + +### Breakdown of Allocations + +![break-down-of-emissions](https://github.com/user-attachments/assets/12c25190-ae6e-4039-aed6-01c81ea6542f) + ## Decentralization and Direction -- Core Chain's strategy focuses on a stable and deliberate path toward decentralization and antifragility. The token launch aims to place CORE tokens in the hands of those committed to building and sustaining the network. +- The Core strategy focuses on a stable and deliberate path toward decentralization and antifragility. The token launch aims to place CORE tokens in the hands of those committed to building and sustaining the network. -- The direction and pace of the project prioritize robustness over rapid expansion. The token distribution and economic policies reflect Core Chain's commitment to a sturdy foundation that values antifragility and is capable of weathering the volatility of the crypto markets. +- The direction and pace of the project prioritize robustness over rapid expansion. The token distribution and economic policies reflect Core's design targeting a sturdy foundation that values antifragility and is capable of weathering the volatility of the crypto markets. - By targeting a diverse group of stakeholders, including builders, users, and believers, CORE tokenomics lays the groundwork for a decentralized governance model that can evolve and adapt as the network matures. -- The distribution is targeted towards builders, users, and long-term supporters, fostering a community aligned with Core Chain's vision of decentralization. +- The distribution is targeted towards builders, users, and long-term supporters, fostering a decentralized, yet fully aligned community. ## Sound Monetary Policy -In addition to the hard cap, Core Chain introduces a deflationary mechanism: +In addition to the hard cap, Core also has a deflationary mechanism: -- **Transaction Fee Burns:** A portion of transaction fees and block rewards will be burned, as determined by the DAO, ensuring the supply of CORE tokens asymptotically approaches the hard cap without exceeding it. +- **Transaction Fee Burns:** A portion of transaction fees and block rewards will be burned, as determined by the DAO, so the supply of CORE tokens asymptotically approaches the hard cap without exceeding it. ## Incentive for Bitcoin Network Participants -- **Supplemental Income for Miners:** With the eventual end of Bitcoin block rewards, CORE tokens offer an alternative revenue stream for miners who become validators on the Core network. By delegating their existing hash power, they receive rewards from both Bitcoin transactions and CORE token rewards, ensuring the continued security and viability of the Bitcoin mining ecosystem. +- **Supplemental Income for Miners:** With the eventual end of Bitcoin block rewards, CORE tokens offer an alternative revenue stream for miners who become validators on the Core network. By delegating their existing hash power, they receive rewards from both Bitcoin transactions and CORE token rewards, upholding the continued security and viability of the Bitcoin mining ecosystem. -- **Reward for HODLing BTC:** Core offer non-custodial BTC staking which is designed specifically for the kind of long-term holders and institutions who have shown a clear preference for keeping their assets on the Bitcoin blockchain. Recognizing that such entities are accustomed to holding their bitcoin without frequent transactions, native bitcoin staking offers them the opportunity to earn rewards during a specified holding period. Users can stake their bitcoin without moving it off the Bitcoin blockchain, thereby maintaining the high security and trust that comes with Bitcoin's robust infrastructure. +- **Reward for HODLing Bitcoin:** Core offer non-custodial Bitcoin staking which is designed specifically for the kind of long-term holders and institutions who have shown a clear preference for keeping their assets on the Bitcoin blockchain. Recognizing that such entities are accustomed to holding their bitcoin without frequent transactions, native bitcoin staking offers them the opportunity to earn rewards during a specified holding period. Users can stake their bitcoin without moving it off the Bitcoin blockchain, thereby maintaining the high security and trust that comes with Bitcoin's robust infrastructure. ## Conclusion -The tokenomics of CORE is crafted to support a robust and decentralized economy within the Core network. With a clear utility, a hard cap on supply, and a long-term reward distribution plan, Core Chain stands out as a platform that balances the principles of sound money with the necessities of a growing and evolving blockchain ecosystem. This financial model is designed to attract dedicated participants who will contribute to the network's strength and resiliency for decades to come. \ No newline at end of file +The tokenomics of CORE is crafted to support a robust and decentralized economy within the Core network. With a clear utility, a hard cap on supply, and a long-term reward distribution plan, Core stands out as a platform that balances the principles of sound money with the necessities of a growing and evolving blockchain ecosystem. This financial model is designed to attract dedicated participants who will contribute to the network's strength and resiliency for decades to come. diff --git a/docs/Learn/governance.md b/docs/Learn/governance.md index b34dfb0bef..0ad437f5f6 100644 --- a/docs/Learn/governance.md +++ b/docs/Learn/governance.md @@ -4,19 +4,19 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Governance on the Core Chain +# Governance on the Core Blockchain --- -Core Chain's governance system is designed to ensure a decentralized and democratic management of the Core Chain network. It empowers the community to actively participate in decision-making processes that shape the ecosystem's future, from protocol changes to feature implementations and more. This section outlines the governance structure of the Core Chain ecosystem. +Core's governance system is designed to uphold the decentralization and reliability of the Core network. It empowers the community to actively participate in decision-making processes that shape the ecosystem's future, from protocol changes to feature implementations and more. This section outlines the governance structure underlying Core. ## Progressive Decentralization Strategy -The Core Chain's governance is designed to evolve over time, with a phased approach that begins with necessary centralization for network establishment and progressively hands over control to the community as it grows and stabilizes. +The Core blockchain's governance is designed to evolve over time, with a phased approach that begins with necessary centralization for network establishment and progressively hands over control to the community as it grows and stabilizes. * **Stage 1: Offchain Governance** - Proposals and decisions are conducted offchain through Core Improvement Proposals (CIPs). - Community members, regardless of their stake size, can submit proposals for consideration. - - A majority vote determines the outcome of each proposal, with a voting period of seven days to ensure community participation. + - A majority vote determines the outcome of each proposal, with a voting period of seven days to enable community participation. * **Stage 1.5: Current Hybrid Model** - Represents a midpoint between offchain governance and the goal of partial onchain governance. @@ -30,17 +30,17 @@ The Core Chain's governance is designed to evolve over time, with a phased appro * **Stage 3: Full Onchain Governance (Goal)** - Details for this stage are currently being developed with active community participation. - - Plans include mechanisms such as requiring collateral to post proposals, ensuring that proposers have a vested interest in the network's health and longevity. + - Plans include mechanisms such as requiring collateral to post proposals, so that proposers have a vested interest in the network's health and longevity. ## Current State of Governance -Core Chain's governance is currently in transition, situated at Stage 1.5, with the objective of reaching Stage 3, which represents full decentralization. Governance is facilitated through the CORE token, empowering the community to guide the development and direction of the Core Chain. +Core's governance is currently in transition, situated at Stage 1.5, with the objective of reaching Stage 3, which represents full decentralization. Governance is facilitated through the CORE token, empowering the community to guide the development and direction of Core. ## Governance Oversight -In the current governance model of Core Chain, The Core team, together with the Core community, is tasked with overseeing the network. Responsibilities include, but are not limited to, expanding the validator set, adjusting governance parameters, and determining the percentage of block rewards and transaction fees that are burned. For more details on proposed and implemented improvements related to governance of Core Chain, visit the [official Core Chain Governance Website](https://gov.coredao.org/). +In Core's current governance model of Core, Core contributors and community members are tasked with overseeing the early development of the network. Responsibilities include, but are not limited to expanding the validator set, adjusting governance parameters, and determining the percentage of block rewards and transaction fees that are burned. For more details on proposed and implemented improvements related to governance of Core, visit the [official Core Governance Website](https://gov.coredao.org/). ## Conclusion -The governance framework of Core Chain embodies a phased approach, beginning with offchain governance and advancing through stages towards full onchain governance. By adapting to the evolving needs and maturity of the network, Core Chain aims to foster a strong, decentralized, and active community governance model. This gradual transition ensures that Core Chain can maintain security, stability, and user trust, while progressively enhancing community control and participation in its governance processes. +Core's governance framework embodies a phased approach, beginning with offchain governance and advancing through stages towards full onchain governance. By adapting to the evolving needs and maturity of the network, Core aims to host a strong, decentralized, and active community governance model. This gradual transition is designed to maintain Core's security, stability, and user trust, while progressively enhancing community control and participation in its governance processes. diff --git a/docs/Learn/introduction/quickstart.md b/docs/Learn/introduction/quickstart.md index 1ca6c75e0e..38398c5e1d 100644 --- a/docs/Learn/introduction/quickstart.md +++ b/docs/Learn/introduction/quickstart.md @@ -11,34 +11,38 @@ sidebar_position: 2 ### Core Testnet Resources -* **[Block Explorer](https://scan.test.btcs.network/):** search and review transactions, accounts, blocks, and more. +* **[Block Explorer](https://scan.test.btcs.network/):** Search and review transactions, accounts, blocks, and more. * **[RPC Endpoints](https://chainlist.org/chain/1115):** RPC endpoints for Core Testnet's RPC service. -* **[Core Faucet](https://scan.test.btcs.network/faucet):** fund your testnet address with tCORE. +* **Core Faucet:** Fund your testnet address with tCORE or tCORE2. + * **For Latest Core Testnet (1114):** https://scan.test2.btcs.network/faucet + * **For Core Testnet (1115):** https://scan.test.btcs.network/faucet -* **[Staking](https://stake.test.btcs.network/):** tCORE staking website. +* **Staking:** tCORE or tCORE2 staking website. + * **For Latest Core Testnet (1114) i.e. tCORE2:** https://stake.test2.btcs.network/ + * **For Core Testnet (1115) i.e. tCORE:** https://stake.test.btcs.network/ -* **[Gnosis Safe](https://safe.test.btcs.network/welcome):** secure multi-sig management of digital assets. +* **[Gnosis Safe](https://safe.test.btcs.network/welcome):** Secure multi-sig management of digital assets. ### General Resources -* **[Core DAO GitHub](https://github.com/coredao-org):** the official Core GitHub, including our blockchain codebase and more. +* **[Core DAO GitHub](https://github.com/coredao-org):** The official Core GitHub, including the blockchain codebase and more. ### Core Mainnet Resources -* **[Block Explorer](https://scan.coredao.org/):** search and review transactions, accounts, blocks, and more. +* **[Block Explorer](https://scan.coredao.org/):** Search and review transactions, accounts, blocks, and more. * **[RPC Endpoints](https://chainlist.org/chain/1116):** RPC endpoints for Core Mainnet's RPC service. -* **[Core Bridge](https://bridge.coredao.org/):** official bridge for the Core ecosystem (more details in Core Bridge Resources) +* **[Core Bridge](https://bridge.coredao.org/):** Official bridge for the Core ecosystem (more details in Core Bridge Resources). * **[Core Staking](https://stake.coredao.org/):** Core's official website for staking CORE and BTC. -* **[Web3 Provider](https://cloud.infstones.com/login):** scalable API infrastructure provided by InfStones. +* **[Web3 Provider](https://cloud.infstones.com/login):** Scalable API infrastructure provided by InfStones. -* **[Core Scan Contract Verifier](https://scan.coredao.org/verifyContract):** web tool for contract verification (guide here). +* **[Core Scan Contract Verifier](https://scan.coredao.org/verifyContract):** Web tool for contract verification (guide here). -* **[Gnosis Safe](https://safe.coredao.org/welcome):** secure multi-sig management of digital assets. +* **[Gnosis Safe](https://safe.coredao.org/welcome):** Secure multi-sig management of digital assets. -* **[wCORE](https://scan.coredao.org/address/0x191e94fa59739e188dce837f7f6978d84727ad01):** official wrapped CORE token smart contract. \ No newline at end of file +* **[wCORE](https://scan.coredao.org/address/0x191e94fa59739e188dce837f7f6978d84727ad01):** Official wrapped CORE token smart contract. diff --git a/docs/Learn/introduction/what-is-core-chain.md b/docs/Learn/introduction/what-is-core-chain.md index f509176667..d2f114a35c 100644 --- a/docs/Learn/introduction/what-is-core-chain.md +++ b/docs/Learn/introduction/what-is-core-chain.md @@ -4,41 +4,42 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Core Chain: Unlocking Bitcoin DeFi +# Core: Unlocking Bitcoin DeFi --- -Core Chain is the first Bitcoin-aligned EVM-compatible Layer-1 blockchain, designed to be Bitcoin's complementary and hyper-scalable smart contract platform. With over **50%** of Bitcoin mining hash already contributing to its security model and over **4,800** in count and more than **$313 Million** worth Bitcoin staked through the ground-breaking innovation of Non-Custodial Bitcoin staking, Core Chain is unlocking Bitcoin both as the prime protector and central asset of the future of DeFi. +Core is the first Bitcoin-aligned, EVM-compatible Layer-1 blockchain, designed to be Bitcoin's complementary and hyper-scalable smart contract platform. With over **75%** of Bitcoin mining hash power and more than **8,200** BTC staked and contributing to its security model, Core is unlocking Bitcoin as both the prime protector and central asset of the future of DeFi through the groundbreaking innovation of non-custodial Bitcoin staking. -Core Chain's major innovation is it's novel consensus mechanism, **Satoshi Plus**, that unites Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS), and Non-custodial Bitcoin Staking. Through this combination, Core Chain incorporates Bitcoin miners in the security of Turing-complete smart contracts, unlocks the functionality and utility of those miners beyond the simple maintenance of the Bitcoin ledger, and provides them with purely additive supplemental income in the form of CORE token rewards. This symbiotic relationship works to strengthen Bitcoin without consuming Bitcoin block space or detracting from the miners' primary role as defenders of the Bitcoin network. While DPoW leverages Bitcoin miners, through the DPoS, Core Chain leverages both the CORE and BTC holders that stake their assets onto the Core blockchain and influence the network’s consensus by delegating their staked assets to the validators on the Core Chain network. +Core's major innovation is it's novel consensus mechanism, **Satoshi Plus**, that unites Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS), and Non-custodial Bitcoin Staking. Through this combination, Core blockchain incorporates Bitcoin miners in the security of Turing-complete smart contracts, unlocks the functionality and utility of those miners beyond the simple maintenance of the Bitcoin ledger, and provides them with purely additive supplemental income in the form of CORE token rewards. This symbiotic relationship works to strengthen Bitcoin without consuming Bitcoin block space or detracting from the miners' primary role as defenders of the Bitcoin network. While DPoW leverages Bitcoin miners, through the DPoS, Core leverages both the CORE and BTC holders that stake their assets onto the Core blockchain and influence the network’s consensus by delegating their staked assets to the validators on the Core network. ![core-products](../../../static/img/Core_Products.png) -## Key Features of Core Chain +## Key Features of Core Blockchain -Some of the key features of Core Chain that distinguishes it from its competitors: +Some of the key features of Core that distinguishes it from its competitors: * **Satoshi Plus Consensus Mechanism:** the novel consensus mechanism, which is a hybrid of Delegated Proof of Work (DPoW), Delegated Proof of Stake (DPoS), and Non-Custodial Bitcoin Staking. * **Core DAO:** the DAO that manages on-chain governance. -* **EVM Execution Layer:** Core Chain adaptes Ethereum Virtual Machine (EVM) for smart contract execution making it EVM-compatible, similar to [BNB Smart Chain's implementation](https://github.com/bnb-chain/bsc) of Geth. -* **coreBTC:** the enshrined Core-native bridged BTC. -* **Non-custodial BTC Staking:** Core offers BTC holders to stake their assets onto the Core blockchain in a trustless and secure manner without having to give up custody of their assets. This innovative feature integrates Bitcoin into Core Chain's DeFi activities, enhancing liquidity and enabling Bitcoin users to earn staking rewards in the form of CORE tokens within the Core ecosystem. -* **stCORE:** Core Chain offers Liquid Staking in the form of stCORE which is designed to enhance the utility of the CORE token and simplify the staking process. This initiative allows token holders to maximize their asset potential with greater flexibility and efficiency. -* **HTLC Atomic Swaps _(Coming Soon)_:** enables trustless, peer-to-peer exchange of tokens between Core Chain and other blockchains, including (and especially) Bitcoin, through Hashed TimeLock Contracts (HTLCs). +* **EVM Execution Layer:** Core adaptes Ethereum Virtual Machine (EVM) for smart contract execution making it EVM-compatible, similar to [BNB Smart Chain's implementation](https://github.com/bnb-chain/bsc) of Geth. +* **coreBTC:** now sunsetted, is the enshrined Core-native bridged BTC. +* **Non-custodial BTC Staking:** Core offers BTC holders to stake their assets onto the Core blockchain in a trustless and secure manner without having to give up custody of their assets. This innovative feature integrates Bitcoin into Core's DeFi activities, enhancing liquidity and enabling Bitcoin users to earn staking rewards in the form of CORE tokens within the Core ecosystem. +* **stCORE:** Core offers Liquid Staking in the form of stCORE which is designed to enhance the utility of the CORE token and simplify the staking process. This initiative allows token holders to maximize their asset potential with greater flexibility and efficiency. +* **HTLC Atomic Swaps _(Coming Soon)_:** enables trustless, peer-to-peer exchange of tokens between Core and other blockchains, including (and especially) Bitcoin, through Hashed TimeLock Contracts (HTLCs). -## Problems Addressed by Core Chain -Core Chain addresses several key problems and issues in the blockchain space through its unique approach and technology. Here's a summary of the issues that Core Chain attempts to overcome: +## Problems Addressed by Core blockchain -* **Scalability and Security:** Core Chain utilizes a novel consensus mechanism called "Satoshi Plus" which aims to balance the trade-offs between scalability, security, and decentralization. This mechanism combines Bitcoin's Proof-of-Work (PoW) and Delegated Proof-of-Stake (DPoS) consensus mechanisms into one hybrid system, seeking to leverage the security provided by Bitcoin's mining power while enhancing scalability through DPoS​. +Core blockchain addresses several key problems and issues in the blockchain space through its unique approach and technology. Here's a summary of the issues that Core attempts to overcome: -* **Blockchain Trilemma:** The blockchain trilemma asserts that it is challenging to achieve decentralization, security, and scalability simultaneously. Core Chain's solution, the Satoshi Plus consensus, attempts to tackle this trilemma by integrating Bitcoin's computing power for security and the DPoS mechanism for scalability, aiming for a decentralized system that does not compromise on these critical aspects​. +* **Scalability and Security:** Core utilizes a novel consensus mechanism called "Satoshi Plus" which aims to balance the trade-offs between scalability, security, and decentralization. This mechanism combines Bitcoin's Proof-of-Work (PoW) and Delegated Proof-of-Stake (DPoS) consensus mechanisms into one hybrid system, seeking to leverage the security provided by Bitcoin's mining power while enhancing scalability through DPoS​. -* **Ecosystem Roles and Participation:** Core Chain is designed to have an ecosystem where various participants play significant roles, including validators, relayers, BTC miners, CORE holders, and verifiers. This ecosystem aims to ensure network security, promote decentralization, and encourage community participation in governance and network activities​. +* **Blockchain Trilemma:** The blockchain trilemma asserts that it is challenging to achieve decentralization, security, and scalability simultaneously. Core's solution, the Satoshi Plus consensus, attempts to tackle this trilemma by integrating Bitcoin's computing power for security and the DPoS mechanism for scalability, aiming for a decentralized system that does not compromise on these critical aspects​. + +* **Ecosystem Roles and Participation:** Core is designed to have an ecosystem where various participants play significant roles, including validators, relayers, BTC miners, CORE holders, and verifiers. This ecosystem aims to ensure network security, promote decentralization, and encourage community participation in governance and network activities​. * **Tokenomics and Incentive Structure:** CORE, the native utility token, is used for staking and paying gas fees. With a total supply of **2.1 billion** tokens, Core Chain plans to distribute these over **81 years**, aligning with its long-term vision. The project also includes mechanisms for burning a percentage of block rewards and gas fees to manage token supply dynamically​. -* **Passive Income:** Core furnishes an opportunity for BTC holders to earn passive income in the form of CORE tokens earned as rewards in exchange for staking their BTC onto Core chain and delegating these to valdiators on the Core network, indirectly contributing to Core Chain’s consensus mechanism and security. +* **Passive Income:** Core furnishes an opportunity for BTC holders to earn passive income in the form of CORE tokens earned as rewards in exchange for staking their BTC onto Core and delegating these to valdiators on the Core network, indirectly contributing to Core Chain’s consensus mechanism and security. -* **Comparison with Other Blockchains:** Core Chain positions itself as an improvement over existing blockchains like Bitcoin, Ethereum, Solana, Polygon, and BNB Chain. By addressing issues such as low transaction throughput, centralization risks, and network stability, Core Chain aims to offer a more scalable, decentralized, and secure alternative​. \ No newline at end of file +* **Comparison with Other Blockchains:** Core positions itself as an improvement over existing blockchains like Bitcoin, Ethereum, Solana, Polygon, and BNB Chain. By addressing issues such as low transaction throughput, centralization risks, and network stability, Core offers a more scalable, decentralized, and secure alternative​. diff --git a/docs/Learn/introduction/why-core-chain.md b/docs/Learn/introduction/why-core-chain.md index ec124e637e..87a9c7ce67 100644 --- a/docs/Learn/introduction/why-core-chain.md +++ b/docs/Learn/introduction/why-core-chain.md @@ -4,28 +4,48 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Why Core DAO +# Why Core --- -Core Chain represents a groundbreaking shift in decentralized governance, merging together the decentralization and security of Bitcoin with the flexibility of EVM smart contracts to create a truly democratic and scalable ecosystem. Its innovative Satoshi Plus consensus mechanism offers a unique blend of security and participatory governance, inviting a broad spectrum of stakeholders to shape its future. By enabling on-chain and off-chain governance mechanisms, Core Chain is paving a progressive path towards a fully decentralized network. This approach not only safeguards the network but also aligns with the ethos of blockchain technology—decentralization, transparency, and community empowerment. +Core is Bitcoin’s complementary and symbiotic smart contract platform. It unlocks Bitcoin-native yield, Bitcoin-powered smart contracts, a second block reward for miners, and an end-to-end BTCfi ecosystem. Overall, Core represents a paradigm shift in how we use Bitcoin. It amplifies its role as a Store of Value through the Bitcoin Risk-Free Rate and facilitates its transition to Medium of Exchange by providing Bitcoin-secured, yet hyper-scalable blockchain rails for more efficient transactions and a variety of other use-cases. Core’s approach not only aligns with Bitcoin’s ethos of decentralization, transparency, and permissionlessness, but also safeguards and enhances the base Bitcoin network. ![why-core-dao-infrographics](../../../static/img/Infographic.png) -Core Chain is a decentralized, secure, and scalable blockchain network backed by Bitcoin’s PoW. Some of the major characteristics that sets it apart from its competitors are as follows: -* **Bitcoin-aligned:** Core Chain is designed to unlock Bitcoin's protection by enabling Bitcoin miners to delegate their security to an EVM-compatible smart contract platform and subsidize Bitcoin mining by providing CORE token rewards to Bitcoin miners that require no added expense or opportunity cost. While Bitcoin serves as the defender of a perfectly scarce, passive monetary asset, Core Chain is designed to be the decentralized rails upon which digital assets, like Bitcoin, gain substantial utility. Furthermore, Core Chain offers a risk-free rate to BTC Stakers who are rewarded financially in the Core Chain ecosystem in return for staking their BTC. These rewards can be in the form of block rewards through delegations or staking awards through staking BTC onto Core Chain. Currently, more than **50%** of Bitcoin mining hash power and more than **4,800** BTC in count through the ground-breaking innovation of Non-Custodial Bitcoin staking are already contributing to Core Chain's security model. +## Key Distinguishing Features of Core +Core is a decentralized, secure, and scalable blockchain network backed by Bitcoin’s PoW. Some of the major characteristics that sets it apart from its competitors are as follows: -* **Decentralized:** Core Chain’s decentralization is facilitated through the three-part system by which validators are elected under Satoshi Plus consensus. On the one hand, Bitcoin miners can vote for validators by writing data into the coinbase transactions of newly-mined Bitcoin blocks (DPoW). On the other, CORE token holders can vote for validators by delegating CORE tokens to them (DPoS). Because Bitcoin hash power and CORE tokens are highly distributed, both the DPoW and DPoS aspects of Satoshi Plus consensus work together to uphold Core Chain’s decentralization. BTC Stakers also play an important role in decentralziation of the Core network as well. They aid in validator elections alongside with CORE token holders in DPoS, leveraging Bitcoin's distributed hash power. +* **Bitcoin-aligned:** Core is designed to unlock Bitcoin's protection by enabling Bitcoin miners to delegate their security to an EVM-compatible smart contract platform and subsidize Bitcoin mining by providing CORE token rewards to Bitcoin miners that require no added expense or opportunity cost. While Bitcoin serves as the defender of a perfectly scarce, passive monetary asset, Core is designed to be the decentralized rails upon which digital assets, like Bitcoin, gain substantial utility. Furthermore, Core offers a risk-free rate to Bitcoin Stakers who are rewarded financially in the Core ecosystem in return for staking their Bitcoin. These rewards can be in the form of block rewards through delegations or staking awards through staking Bitcoin onto Core. Currently, over **75%** of Bitcoin mining hash power and through the ground-breaking innovation of Non-Custodial Bitcoin staking more than **8,200** Bitcoins are already contributing to Core's security model. -* **Secure:** Core Chain’s security rests on several pillars. The most important of these is the Satoshi Plus Consensus Mechanism, which achieves decentralization through a combination of DPoW, DPoS, and Non-Custodial BTC Staking. The combination of these leverages Bitcoin miners, BTC Stakers and Core Stakers to maintain the security of the network. Through the Core Chain’s security model, the network can thwart consensus attacks through its incentive structures, which feature rewards for participants that identify malicious nodes and mechanisms for punishing those nodes, and it incorporates checkpointing and similar safeguards for preventing other kinds of long-range attacks. To further strengthen its network and avoid any attacks that may rise due to loopholes in the codebase, Core Chain’s codebase is audited from several top-tier blockchain security firms. +* **Decentralized:** Core's decentralization is facilitated through the three-part system by which validators are elected under Satoshi Plus consensus. On the one hand, Bitcoin miners can vote for validators by writing data into the coinbase transactions of newly-mined Bitcoin blocks (DPoW). On the other, CORE token holders can vote for validators by delegating CORE tokens to them (DPoS). Because Bitcoin hash power and CORE tokens are highly distributed, both the DPoW and DPoS aspects of Satoshi Plus consensus work together to uphold Core Chain’s decentralization. Bitcoin Stakers also play an important role in decentralziation of the Core network as well. They aid in validator elections alongside with CORE token holders in DPoS, leveraging Bitcoin's distributed hash power. -* **Scalable:** Core Chain is highly scalable, capable of eventually a large user base of participants, with high transaction throughput and low latency. This is due in part to the fact that DPoS is inherently more scalable than either standard PoS or PoW, and in part to the fact that the network can increase the rate at which blocks are mined by adding many more validators. What’s more, there will be additional scaling solutions developed on top of the network in the future. +* **Secure:** Core Chain’s security rests on several pillars. The most important of these is the Satoshi Plus Consensus Mechanism, which achieves decentralization through a combination of DPoW, DPoS, and Non-Custodial Bitcoin Staking. The combination of these leverages Bitcoin miners, Bitcoin Stakers and Core Stakers to maintain the security of the network. Through the Core Chain’s security model, the network can thwart consensus attacks through its incentive structures, which feature rewards for participants that identify malicious nodes and mechanisms for punishing those nodes, and it incorporates checkpointing and similar safeguards for preventing other kinds of long-range attacks. To further strengthen its network and avoid any attacks that may rise due to loopholes in the codebase, Core Chain’s codebase is audited from several top-tier blockchain security firms. -* **Permissionless:** Core Chain’s permissionlessness means anyone can participate in and build on Core Chain, without approval or authorization from any gatekeeping entity. The network’s decentralization, open-source software, and consensus model are designed to maintain this permissionlessness in perpetuity. +* **Scalable:** Core is highly scalable, capable of eventually a large user base of participants, with high transaction throughput and low latency. This is due in part to the fact that DPoS is inherently more scalable than either standard PoS or PoW, and in part to the fact that the network can increase the rate at which blocks are mined by adding many more validators. What’s more, there will be additional scaling solutions developed on top of the network in the future. -* **Community Governed:** Core Chain’s governance is a blend of immutable and mutable components. The immutable aspects are those that must be kept in place, like the total supply of CORE. Nonetheless, other aspects of on-chain governance would benefit from adaptability. For those, the decentralized autonomous organization responsible for network development, Core Chain, is designed to become progressively more decentralized as on-chain participation grows. All CORE token holders will be able to vote on the adaptations of certain protocol parameters. As stakeholders in the network, BTC Stakers potentially influence Core Chain’s governance through their economic stake and participation in consensus activities. Their involvement ensures that a broad base of the community, including those invested in Bitcoin, has a say in the evolutionary path of the network's protocols and policies. +* **Permissionless:** Core Chain’s permissionlessness means anyone can participate in and build on Core, without approval or authorization from any gatekeeping entity. The network’s decentralization, open-source software, and consensus model are designed to maintain this permissionlessness in perpetuity. -* **Interoperable:** Core Chain can interface with a wide variety of blockchain projects. Because it is EVM compatible all protocols on Core Chain can interact with one another, Ethereum-based protocols can be ported to Core Chain with relative ease, and cross-chain solutions allow communication across other blockchains. Other than EVM compatibility, Core Chain also offers interoperability with BTC in the form of Non-custodial BTC Staking, where users can stake their BTC onto the Core Chain without having to give up the custody of their assets maintained on the Bitcoin network. +* **Community Governed:** Core Chain’s governance is a blend of immutable and mutable components. The immutable aspects are those that must be kept in place, like the total supply of CORE. Nonetheless, other aspects of on-chain governance would benefit from adaptability. For those, the decentralized autonomous organization responsible for network development, Core DAO, is designed to become progressively more decentralized as on-chain participation grows. All CORE token holders will be able to vote on the adaptations of certain protocol parameters. As stakeholders in the network, Bitcoin Stakers potentially influence Core Chain’s governance through their economic stake and participation in consensus activities. Their involvement ensures that a broad base of the community, including those invested in Bitcoin, has a say in the evolutionary path of the network's protocols and policies. -* **Composable:** For Core Chain, composability is achieved through support of the popular Solidity smart contract language. Solidity allows developers to create smart contracts that can call functions within other contracts, send CORE tokens to them, and even create new contract instances. This allows for the building of complex interlocking systems of contracts able to facilitate peer-to-peer borrowing and lending, open liquidity pools, trading platforms, live, accurate on-chain data, and much more. +* **Interoperable:** Core can interface with a wide variety of blockchain projects. Because it is EVM compatible all protocols on Core can interact with one another, Ethereum-based protocols can be ported to Core with relative ease, and cross-chain solutions allow communication across other blockchains. Other than EVM compatibility, Core also offers interoperability with Bitcoin in the form of Non-custodial Bitcoin Staking, where users can stake their Bitcoin onto the Core without having to give up the custody of their assets maintained on the Bitcoin network. Further, coreBTC offers Bitcoin the interoperability to be bridged onto the Core blockchain and be used in the DeFi landscape. +* **Composable:** For Core, composability is achieved through support of the popular Solidity smart contract language. Solidity allows developers to create smart contracts that can call functions within other contracts, send CORE tokens to them, and even create new contract instances. This allows for the building of complex interlocking systems of contracts able to facilitate peer-to-peer borrowing and lending, open liquidity pools, trading platforms, live, accurate on-chain data, and much more. + +## Core Offers Something for Everybody +Core is a blockchain synthesis that unlocks something for everybody. Here are some of the many interested groups and how Core supports them: + +* **Bitcoin Holders:** Core puts your Bitcoin to work without requiring you to give up custody. Bitcoin holders can earn the Bitcoin Risk-Free Rate through Core’s Non-Custodial Bitcoin Staking. Without bridging your Bitcoin or even necessarily engaging in Core DeFi, Bitcoin holders can earn more by simply continuing to hold. + +* **Bitcoin Users:** For those interested in using Bitcoin as a Medium of Exchange, Core makes Bitcoin transactions and financial activity practical with its fast, efficient, and Bitcoin-protected blockchain rails. On Core, the Bitcoin asset gains a tailor-made financial ecosystem its users can enjoy permissionlessly. + +* **DeFi Users:** DeFi experts can find many familiar use-cases in Core’s dapp ecosystem, given that Core is fully EVM-compatible and supports a variety of smart contract use-cases. Many opportunities for lending, borrowing, swapping, and other activities are available. This young and growing ecosystem is a great opportunity for DeFi veterans to mount their BTCfi journey. + +* **Web3 Enthusiasts:** Beyond DeFi, Core’s Turing completeness opens the door to a variety of blockchain-enabled use-cases. NFTs, gaming, and other features are an open canvas for believers in an open and user-owned internet. + +* **Builders:** Core is fully permissionless and EVM-compatible, meaning any developer with Solidity experience can create a dapp and launch it with familiarity. Core is also home to a robust ecosystem of dev tools and infrastructure providers, making building a seamless experience. Core also has a vibrant ecosystem of users ready for the emergence of next-gen Bitcoin-powered dapps. + +* **Bitcoin Miners:** Core’s Delegated Proof of Work unlocks a second block reward for Bitcoin miners who are always searching for critical rewards. Furthermore, Core extends the protection of Bitcoin miners beyond the mere Bitcoin asset, and onto an ecosystem that can fully tap into the potential of that asset. + +* **Bitcoin Supporters:** Even without personally engaging with the Core blockchain, Bitcoin supporters can appreciate how Core aligns itself with Bitcoin for the betterment of both the Bitcoin network and asset. With better rewarded, and therefore more highly incentivized miners, the Bitcoin network grows stronger, while the Bitcoin asset gains a sophisticated smart contract environment. + +* **Freedom Believers:** Core is a fully permissionless blockchain, enabling anyone across the world to participate. This ethos promotes financial opportunity for communities that can most benefit from the emergence and popularity of Bitcoin and blockchain technology. \ No newline at end of file diff --git a/docs/Learn/products/btc-staking/Redeeming-Guide.md b/docs/Learn/products/btc-staking/Redeeming-Guide.md index 03c50de9ce..40c6ced9c8 100644 --- a/docs/Learn/products/btc-staking/Redeeming-Guide.md +++ b/docs/Learn/products/btc-staking/Redeeming-Guide.md @@ -1,21 +1,21 @@ --- -sidebar_label: Redeem BTC / Claim CORE +sidebar_label: Redeem Bitcoin / Claim CORE hide_table_of_contents: false sidebar_position: 2 --- -# Redeem Staked BTC or Claim CORE Rewards +# Redeem Staked Bitcoin or Claim CORE Rewards -Core offers BTC holders to stake their assets onto the Core blockchain to ear passive income in the form of CORE tokens. To learn how to stake your BTC assets onto the Core Chain and earn rewards, follow our detailed [guide](./stake-btc-guide.md). After you have succesfully staked your BTC on the Core blockchain, next up is to learn to claim your CORE rewards or redeem your staked BTC. This detailed guide will be utilized when you see ‘**Redeem**’ appear under ‘**Action**’ on the delegated validator you chose previously or ‘**Claim**’ next to ‘**Delegated Hash & Core Rewards**’ and or ‘**BTC Staking Rewards’**. +Core offers Bitcoin holders to stake their assets onto the Core blockchain to ear passive income in the form of CORE tokens. To learn how to stake your Bitcoin assets onto Core and earn rewards, follow our detailed [guide](./stake-btc-guide.md). After you have succesfully staked your Bitcoin on the Core blockchain, next up is to learn to claim your CORE rewards or redeem your staked Bitcoin. This detailed guide will be utilized when you see ‘**Redeem**’ appear under ‘**Action**’ on the delegated validator you chose previously or ‘**Claim**’ next to ‘**Delegated Hash & Core Rewards**’ and or ‘**Bitcoin Staking Rewards’**. ## Reward Distribution Information -* **Distribution of Rewards:** Core token rewards are distributed to stakers as incentives for their contribution to network security and governance. -* **Reward Source:** Rewards are sourced from the consensus reward pool shared between participants of Core's dual mechanisms: dPoW (Bitcoin miners) and dPoS (BTC and CORE stakers). +* **Distribution of Rewards:** CORE token rewards are distributed to stakers as incentives for their contribution to network security and governance. +* **Reward Source:** Rewards are sourced from the consensus reward pool shared between participants of Core's dual mechanisms: dPoW (Bitcoin miners) and dPoS (Bitcoin and CORE stakers). -## Redeem an Expired Staked BTC +## Redeem an Expired Staked Bitcoin -If your staking period has expired, redeem your staked BTC assets from either Unisat or Xverse wallet(s). You must use the same wallet address during the staking process to redeem your expired staked BTC. +If your staking period has expired, redeem your staked Bitcoin assets from either Unisat or Xverse wallet(s). You must use the same wallet address during the staking process to redeem your expired staked Bitcoin. 1. From any CORE screen, hover over your connected wallet in the top right corner → click **‘My Staking’**. @@ -25,23 +25,23 @@ If your staking period has expired, redeem your staked BTC assets from either Un ![native-staking-guide](../../../../static/img/native-staking/native-staking-19.avif) -3. You are now viewing the validators that you have previously delegated your staked BTC to. Look for any validators that say ‘**Expired**’ under ‘**Redeem Time**’ and proceed to clicking ‘**Redeem**’ under ‘**Action**’. +3. You are now viewing the validators that you have previously delegated your staked Bitcoin to. Look for any validators that say ‘**Expired**’ under ‘**Redeem Time**’ and proceed to clicking ‘**Redeem**’ under ‘**Action**’. ![native-staking-guide](../../../../static/img/native-staking/native-staking-20.avif) -4. You will be met with a popup window to redeem your BTC. In order to redeem the BTC, you must connect to the same Bitcoin wallet address as the one initiating the BTC staking transaction. +4. You will be met with a popup window to redeem your Bitcoin. In order to redeem the Bitcoin, you must connect to the same Bitcoin wallet address as the one initiating the Bitcoin staking transaction. ![native-staking-guide](../../../../static/img/native-staking/native-staking-21.avif) -* Set your receiving Bitcoin Address to receive the unlocked BTC. This does not need to be the same as the address that initiated the BTC staking transaction. +* Set your receiving Bitcoin Address to receive the unlocked Bitcoin. This does not need to be the same as the address that initiated the Bitcoin staking transaction. * Set your transaction speed priority * Click ‘**Create Transaction**’ ![native-staking-guide](../../../../static/img/native-staking/native-staking-22.avif) -5. Sign the transaction with your Bitcoin wallet that you connected previously, and verify the BTC has returned to your receiving address. (_This may take a few minutes_). +5. Sign the transaction with your Bitcoin wallet that you connected previously, and verify the Bitcoin has returned to your receiving address. (_This may take a few minutes_). -## Claim CORE token rewards earned from BTC Staking delegation +## Claim CORE token rewards earned from Bitcoin Staking delegation 1\. From any CORE screen, hover over your connected wallet in the top right corner, click ‘**My Staking**’. @@ -65,4 +65,4 @@ If your staking period has expired, redeem your staked BTC assets from either Un #### Conclusion -By following this guide, you have sucecesfulyl learned how to redeem your staked BTC from the Core blockchain, as well as, how to redeem your rewards earned as CORE token from delegating your staked BTC. We’re happy you’ve chosen to journey into BTCfi with Non-Custodial BTC Staking on Core! \ No newline at end of file +By following this guide, you have sucecesfulyl learned how to redeem your staked Bitcoin from the Core blockchain, as well as, how to redeem your rewards earned as CORE token from delegating your staked Bitcoin. We’re happy you’ve chosen to journey into BTCfi with Non-Custodial Bitcoin Staking on Core! diff --git a/docs/Learn/products/btc-staking/design.md b/docs/Learn/products/btc-staking/design.md index f98b8604a9..15ec04eeda 100644 --- a/docs/Learn/products/btc-staking/design.md +++ b/docs/Learn/products/btc-staking/design.md @@ -4,40 +4,61 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Design of Non-Custodial BTC Staking +# Non-Custodial Bitcoin Staking Design --- ## Background -Core Chain’s methodology for integrating bitcoin staking centers on [CLTV timelock](https://en.bitcoin.it/wiki/Timelock#CheckLockTimeVerify). The `OP_CHECKLOCKTIMEVERIFY` (CLTV) timelock is a specific opcode used in Bitcoin's scripting language that allows for creating conditions based on time or block height before bitcoins can be spent from a transaction output. This provides a way to create outputs that are time-locked, meaning they cannot be spent until a certain condition related to time or block height is met. +The methodology for integrating Bitcoin staking centers on [CLTV timelock](https://en.bitcoin.it/wiki/Timelock#CheckLockTimeVerify). The `OP_CHECKLOCKTIMEVERIFY` (CLTV) timelock is a specific opcode used in Bitcoin's scripting language that allows for creating conditions based on time or block height before bitcoins can be spent from a transaction output. This provides a way to create outputs that are time-locked, meaning they cannot be spent until a certain condition related to time or block height is met. ![btc-staking-tx-design](../../../../static/img/btc-staking/tx-design/staking-tx-design%20(5).png) +### Requirements for Transaction Validity {#requirements-for-transaction-validity} + +* For a Bitcoin transaction to be considered valid and picked up by the Relayers, users must ensure that the transaction is sent to their address and, using the Bitcoin native timelock feature, specify the lock-up amount intended to be delegated to the validator on the Core blockchain, as the transaction output. +* The transaction should also contain an `op_return` output specifying + * The address of the Core Validator the staker wants to delegate their Bitcoin to. + * The address to which the staker would like their CORE token rewards to be sent. +* To make staking eligible on Core, *minimal requirements exist* for the **amount** of BTC that can be staked. Users should stake at least **0.01 Bitcoin** (less transaction fees). + +### Transaction Workflow + +Non-Custodial Bitcoin Staking operations are conducted on two separate blockchains: Bitcoin and Core. The following flowchart illustrates the workflow for Bitcoin holders to earn staking rewards through Core’s Non-Custodial Bitcoin Staking. + +

+![btc-staking-flow](../../../../static/img/btc-staking/NCBS%20Workflow.png) +

+ + ## Transaction Structure ### Staking transaction -A BTC staking transaction should have two/three outputs, which are +A Bitcoin staking transaction should have two/three outputs, which are - `P2SH/P2WSH` type output, with time-lock enabled redeem script -- `OP_RETURN` type output, with Core chain staking information +- `OP_RETURN` type output, with Core staking information - (_Optional_) Change address Note that there are **no** restrictions on inputs. +

![btc-staking-tx-output](../../../../static/img/btc-staking/tx-design/staking-tx-design%20(1).png) +

### Withdrawal transaction -When the time-lock ends, the locked UTXO can be spent using the redeem script +The locked UTXO (Bitcoins) can be spent using the redeem script when the time-lock ends. +

![btc-staking-withdrawal-tx](../../../../static/img/btc-staking/tx-design/staking-tx-design%20(2).png) +

## Script Design ### P2SH/P2WSH Output -* Core supports both `P2SH` and `P2WSH` outputs for BTC staking. +* Core supports both `P2SH` and `P2WSH` outputs for Bitcoin staking. * The construction of `P2SH` type output is as follows @@ -53,16 +74,17 @@ The `RedeemScript` should start with a CLTV time lock. Here are a few common ty * When using a public key ` OP_CLTV OP_DROP OP_CHECKSIG` and the corresponding unlocking script in the withdrawal transaction is ` ` -* When using a public key hash (most recommended) ` OP_CLTV OP_DROP OP_DUP OP_HASH160 OP_EQUALVERIFY OP_CHECKSIG` and the corresponding unlocking script in the withdrawal transaction is ` ` +* When using a public key hash (most recommended) ` OP_CLTV OP_DROP OP_DUP OP_HASH160 OP_EQUALVERIFY OP_CHECKSIG` and the corresponding unlocking script in the withdrawal transaction is ` ` -* When using multi signature address ` OP_CLTV OP_DROP M ... N OP_CHECKMULTISIG` and the corresponding unlocking script in the withdrawal transaction is `OP_0 ... ` The amount and duration of BTC locked in this output will be used for the calculation of validator election and reward distribution on the Core chain. +* When using multi-signature address ` OP_CLTV OP_DROP M ... N OP_CHECKMULTISIG` and the corresponding unlocking script in the withdrawal transaction is `OP_0 ... ` The amount and duration of Bitcoin locked in this output will be used for the calculation of validator election and reward distribution on Core. -> **Note** -> There are _minimal requirements_ on both **amount** and **duration** to make the staking eligible on Core. A user should at least stake **0.01 BTC** (less transaction fees) for at least **10 days** (`CLTV timestamp - transaction confirmation timestamp > 10 days`). +:::note +Minimum requirements exist on the amount of BTC that can be staked to be eligible for Non-Csutodial BTC Staking on Core. A user should stake at least **0.01 Bitcoin** (exclusive of transaction fees). +::: ## OP_RETURN Output -The `OP_RETURN` output should contain all staking information in order, and be composed in the following format: +The `OP_RETURN` output should contain all staking information in order and be composed in the following format: - **`OP_RETURN`:** identifier `0x6a` - **`LENGTH`:** which represents the total byte length after the `OP_RETURN` opcode. _Note that all data has to be pushed with its appropriate size byte(s)_. @@ -72,17 +94,34 @@ The `OP_RETURN` output should contain all staking information in order, and be c - **`Delegator`:** The Core address to receive rewards, 20 bytes - **`Validator`:** The Core validator address to stake to, 20 bytes - **`Fee`:** Fee for relayer, 1 byte, range [0,255], measured in CORE -- (_Optional_) **`RedeemScript`** +- **`RedeemScript`:** used for redeeming staked BTC after timelock expires. - (_Optional_) **`Timelock`:** 4 bytes -#### Key Points to Ensure +> **Note:** RedeemScript should be included. Also, if the Timelock is included, Little Endian is required first. + + +#### Key Points - Any bytes that can translate to a number should use `OP_number` (`{0}` should use `OP_0` instead of `0x0100`, `{16}` should use `OP_16` instead of `0x0110`) -- Any bytes with lengths smaller than `0x4c (76)` is pushed with 1 byte equal to the size `(byte[10] -> 10 + byte[10]; byte[70] -> 70 + byte[70])` +- Any bytes with lengths smaller than `0x4c (76)` are pushed with 1 byte equal to the size `(byte[10] -> 10 + byte[10]; byte[70] -> 70 + byte[70])` - Any bytes bigger than or equal to `0x4c` is pushed by using `0x4c` (ie. `OP_PUSHDATA`) followed by the length followed by the data `(byte[80] -> OP_PUSHDATA + 80 + byte[80])` - Any bytes with length bigger than `255` uses `0x4d` (`OP_PUSHDATA2`) - Any bytes with length bigger than `65535` (`0xffff`) uses `0x4e` (`OP_PUSHDATA4`) -Either `RedeemScript` or `Timelock` must be available, the purpose is to allow relayer to obtain the `RedeemScript` and submit transactions on the Core chain. If a `RedeemScript` is provided, relayer will use it directly. Otherwise, relayer will construct the redeem script based on the timelock and the information in the transaction inputs. You can find more information about the relayer role in the [below section](#role-of-relayers). +Either RedeemScript or Timelock must be available. This allows relayers to obtain the `RedeemScript` and submit transactions on Core. If a `RedeemScript` is provided, relayer will use it directly. Otherwise, relayer will construct the redeem script based on the timelock and the information in the transaction inputs. You can find more information about the relayer role in the [below section](#role-of-relayers). + +## Role of Relayers + +In a strict sense, the Non-Custodial Bitcoin Staking process consists of two steps + +1. Stake on the Bitcoin network +2. Submit the confirmed Bitcoin staking transaction to Core + +To make the entire process more convenient, Core introduces the role of relayers. Relayers can help users submit transactions to the Core network after confirmation of the staking transaction on the Bitcoin network. Since verifying the transaction on the Core network with the embedded Bitcoin light client is necessary, relayers need to obtain the corresponding RedeemScript of the `P2SH/P2WSH` output. To meet this requirement, we suggest users to either + +- If the `RedeemScript` is short, put the entire RedeemScript at the end of the `OP_RETURN` output. For example, a `RedeemScript` is constructed using a public key hash, as shown in the sample below. +- Set the receiving address of the staking transaction as their own so relayers can extract useful information from the transaction input and compose the `RedeemScript` by themselves. E.g. + - If it's a normal address, the `pubkey` or `pubkey hash` should be set as the input's corresponding public key when constructing the `RedeemScript`. + - If it is a multi-signature address, the corresponding multi-signature address's public key should be set when constructing the `RedeemScript`. ## Transaction Examples @@ -90,7 +129,9 @@ Either `RedeemScript` or `Timelock` must be available, the purpose is to allow r [https://mempool.space/tx/9f5c66d5f90badafd537df44326f270aa64b7cc877ef68c3b69ed436870a3512](https://mempool.space/tx/9f5c66d5f90badafd537df44326f270aa64b7cc877ef68c3b69ed436870a3512) +

![btc-staking-tx-example](../../../../static/img/btc-staking/tx-design/staking-tx-design%20(3).png) +

#### P2WSH output @@ -135,23 +176,11 @@ The full hex of this output is `6a4c505341542b01045bde60b7d0e6b758ca5dd8c61d377a This transaction spent the P2WSH time-lock output from the above staking transaction +

![btc-staking-withdrawal-tx-example](../../../../static/img/btc-staking/tx-design/staking-tx-design%20(4).png) +

In the input, the redeem script `041f5e0e66b17576a914c4b8ae927ff2b9ce218e20bf06d425d6b68424fd88ac` is provided to spend it. Since the time lock `1f5e0e66` (660e5e1f after reverting bytes, which is 1712217631 unix timestamp) has already expired, the UTXO was spent successfully. > **Note** - > Code samples of constructing the staking and withdrawal transactions on Bitcoin network will be provided soon. - -## Role of Relayers - -In a strict sense, the Non-Custodial BTC Staking process consists of two steps - -1. Stake on the Bitcoin network -2. Submit the confirmed BTC staking transaction to the Core chain - -To make the entire process more convenient, Core Chain introduces the role of relayers. Relayers can help users submit transactions to the Core network after the staking transaction is confirmed on the Bitcoin network. Since it is necessary to verify the transaction on the Core network with the embedded Bitcoin light client, relayers needs to obtain the corresponding `RedeemScript` of the `P2SH/P2WSH` output. To meet this requirement, we suggest users to either - -- Put the entire `RedeemScript` at the end of the `OP_RETURN` output, if the script is short. e.g. a `RedeemScript` constructed using public key hash as shown in the sample above. -- Set the receiving address of the staking transaction as their own so relayers can extract useful information from the transaction input and compose the `RedeemScript` by themselves. E.g. - - If it's a normal address, the `pubkey` or `pubkey hash` should be set as the input's corresponding public key when constructing the `RedeemScript`. - - If it is a multi-signature address, the corresponding multi-signature address's public key should be set when constructing the `RedeemScript`. \ No newline at end of file + > Code samples of constructing the staking and withdrawal transactions on Bitcoin network will be provided soon. \ No newline at end of file diff --git a/docs/Learn/products/btc-staking/dual-staking-guide.md b/docs/Learn/products/btc-staking/dual-staking-guide.md new file mode 100644 index 0000000000..63bf8f1969 --- /dev/null +++ b/docs/Learn/products/btc-staking/dual-staking-guide.md @@ -0,0 +1,186 @@ +--- +sidebar_label: Dual Staking Guide +hide_table_of_contents: false +sidebar_position: 2 +--- + +# Dual Staking on Core + +This user guide is designed to walk you through the Dual Staking process on Core. Core’s Non-Custodial Bitcoin Staking allows users to earn yield in CORE by staking their Bitcoins and delegating them to validators on Core. Dual Staking unlocks higher yield tiers by staking Bitcoin and CORE to enhance yield generation from Non-Custodial Bitcoin staking further. Let's dive into how it works and how you can start staking today. + +## Prerequisites + +To be able to stake, you must have the following prerequisites: + +1. **Supported Bitcoin Wallet Browser Extension:** To participate in the BTC staking process, you must install browser extensions of any supported Bitcoin wallets, like [Xverse](https://chromewebstore.google.com/detail/xverse-wallet/idnnbdplmphpflfnlkomgpfbpcgelopg?hl=en-GB&authuser=1), [Unisat](https://chromewebstore.google.com/detail/unisat-wallet/ppbibelpcjmhbdihakflkdcoccbgbkpo), and/or [OKX Wallet](https://chromewebstore.google.com/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge) (visit stake.coredao.org for the latest supported wallets). You must use a desktop version, as mobile and hardware wallets are not currently supported. You can also stake directly using the Element wallet mobile application as well. +2. **Core Wallet Address for Rewards:** Prepare your Core wallet address to stake CORE and receive [CORE token rewards for staking Bitcoin](https://docs.coredao.org/docs/Learn/products/btc-staking/stake-btc-guide#prerequisites) and CORE. If you do not have a Core wallet address, you can quickly create one by connecting to MetaMask. For more information on configuring MetaMask to work with the Core network, follow the detailed guide [here](https://docs.coredao.org/docs/Dev-Guide/core-mainnet-wallet-config). + +## Key Considerations For Dual Staking + +The following are some key points that users should be careful about when staking their Bitcoin on Core. + +1. **Minimum of 0.01 Bitcoin \+ Gas Fee:** To successfully stake your Bitcoin on Core, you need a minimum of 0.01 Bitcoin. In addition to the staking amount, users should consider the necessary gas fees in Bitcoin for executing transactions on the Bitcoin network. If you plan to stake for less than a month, having at least 0.05 Bitcoin is advisable. This extra amount helps cover potential network congestion, which can lead to higher gas prices than the rewards earned from staking. + +2. **Minimum of 1 CORE \+ Gas Fee:** To stake, you must have at least 1 CORE. In addition to the staking amount, users should also account for the gas fees in CORE tokens for transaction processing. +3. **Understanding the Differences in Bitcoin Staking Addresses:** + * The staking address in your Bitcoin wallet's transaction prompt may differ from your original Bitcoin address. This is because the Bitcoin staking address is derived from your Bitcoin wallet's master private key, ensuring control and security over your assets. Your Bitcoin remains safe in the Bitcoin staking address, unaffected by staking. +4. **Delays in Locked Assets to Appear in your Bitcoin Wallet:** + * You may face some delays before your locked Bitcoin is displayed in your Bitcoin wallets. This delay primarily results from delays in transaction confirmation on the Bitcoin network, which can take several hours due to block time, the number of block confirmations required, and network congestion. + * While we are actively working with wallet partners to support the timely display of your assets in your wallets, you can check your locked assets on the **MyStaking** page on Core’s staking website. + * You can also view your staked funds by searching the staking address on a Bitcoin explorer, [Mempool.space](https://mempool.space/). +5. **Considerations for Locking Periods** + * Once you lock your Bitcoin for staking, it's inaccessible until the staking period concludes. Considering your investment objectives and risk tolerance, you are advised to select your locking period thoughtfully. Starting with shorter locking periods can help you become familiar with the process before committing to longer durations. + +## Step-By-Step Walkthrough of Dual Staking + +Core’s Non-Custodial Bitcoin staking introduces a secure and decentralized method for Bitcoin holders to earn yield through Bitcoin staking. Users can stake their Bitcoin natively on the Bitcoin network through a time-bound mechanism and actively participate in the Core blockchain's Consensus mechanism while staking. + +Dual staking is an enhancement to Core’s Non-custodial BTC staking, allowing users to unlock higher yield tiers by staking Bitcoin and CORE simultaneously. Higher CORE:BTC staking ratios unlock higher yield tiers for Bitcoins staking. To take advantage of Dual Staking and earn higher reward rates for BTC staking, follow the steps detailed below. + +### Connecting Bitcoin and Core Wallets + +1. Visit [https://stake.coredao.org](https://stake.coredao.org/) and click **Stake Now** on the top right of the header. +2. Once on the **Staking** tab, click the **Connect** option next to “BTC Staking Amount” to connect your Bitcoin wallet. This should be the wallet with the Bitcoin assets you want to stake. Click on the supported wallet of your choice to connect your Bitcoin wallet. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-1.png) +

+ +3. Likewise, click the **Connect** option next to **CORE Staking Amount** and select the Core wallet to stake CORE and receive staking rewards. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-2.png) +

+ +## Specifying the BTC Amount to Stake + +4. Enter the amount of Bitcoin you want to stake. The minimum amount is 0.01 BTC. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-3.png) +

+ +### Selecting a Core Validator for Bitcoin Delegation + +5. Under **Delegate to Validator**, from the drop-down menu, select an ***active validator*** to whom you want to delegate your Bitcoin. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-4.png) +

+ +### Specifying the CORE Amount to Stake + +6. Enter the amount of CORE you want to stake. The minimum amount is 1 CORE. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-5.png) +

+ +### Selecting a Core Validator for CORE Delegation + +7. After specifying the amount of CORE to stake, choose the validator to whom you will delegate your CORE. Make sure to select an active validator from the drop-down. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-6.png) +

+ +### Adjusting CORE:BTC Ratios for Higher Yields + +8. On the right side of the Staking Calculator, there is a **Summary** tab that calculates the Total Staking Reward Rate and Projected Annual Rewards. These are estimated annual return numbers for staked Bitcoin and CORE. The reward rate may fluctuate daily based on the total and weighted amounts of delegations that validators receive. When set to the **Current** button, it displays only the real-time estimated staking reward rate. When set to the **Overall** button, it represents the average of two components: the rates from all validators based on previous staking records and the real-time estimated staking reward rate. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-7.png) +

+ +9. You can also use the sliders in the below section to see the effect of CORE:BTC staking ratio on your Total Staking Reward Rate. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-8.png) +

+ +10. To get the maximum reward boost on your staked amount, under the Dual Staking Tiers section, adjust the **BTC Staked** slider to the amount of BTC you want to stake and click the **Max Boost** button. This will automatically set the corresponding CORE amount in the “CORE Staked” slider to unlock maximum boost. You can also manually adjust the CORE staked and then click the “Max Boost” button again to update the recommended BTC amount in the “BTC Staked” bar. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-9.png) +

+ +11\. Next to the **Summary** tab, you can find **Details** page, which shows staking details, including: + +* **New Staked BTC:** The amount of BTC you plan to stake and the current reward rate. +* **New Staked CORE:** The amount of CORE you plan to stake and the current reward rate. +* **Active Staked BTC:** The amount of BTC currently staked and average earning reward rate across validators. +* **Active Staked CORE:** The amount of CORE currently staked and average earning reward rate across validators. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-10.png) +

+ + +### Finalizing Dual Staking Transactions + +11. Once you have specified the amount of BTC/CORE to stake and the validators for delegation respectively, you can click on the **Proceed to Stake** button. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-11.png) +

+ +12. On the Stake CORE page, confirm the amount of CORE to stake along with BTC, and click the **Confirm** button. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-12.png) +

+ +13. By clicking **Confirm**, you will get a notification from your connected Core wallet to complete the transaction. +14. Once you confirm the transition, you will receive a **Transaction Submitted** notification on the top right of your screen. You could click **My Staking** to see your staking records or **View on CoreScan** to review this transaction. + + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-13.png) +

+ +15. On the “Stake BTC” page, confirm the amount of Bitcoin to stake. Before finalizing the Bitcoin staking process, it's important to understand and specify several key parameters: +* Specifying the amount of Bitcoin you’d like to delegate + * The minimum amount to delegate is 0.01 Bitcoin + * In our example, we will be delegating 0.05 Bitcoin, which satisfies this requirement +* Setting the lock time determines when your staked Bitcoin will be unlocked and available again for redemption or re-delegation. + * Select inside the lock time box to input values, or click on the calendar icon to select the date and click ‘OK’ to proceed. + * The default lock time is set to a month in advance. +* Specify the network priority speed for your transaction + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-14.png) +

+ +16. Finally, click ‘Confirm’ to complete the transaction. + +**Confirm OP\_Return Output** + +17. Before Signing the transaction in your wallet, verify the transaction outputs to ensure they include an `OP_Return` output. The `OP_Return` output is where your `redeem_script` is saved and is essentially used to redeem your staked Bitcoin. There may be two or three outputs, but at least one should always be **OP_Return**. Abort the transaction if it doesn't include the OP\_Return output. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-15.png) +

+ + +18. Once you confirm the transition, you will receive a **Transaction Submitted** notification on the top right of your screen. You could click on **My Staking** to see your staking records or **View on BTC Explorer** to review this transaction. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-16.png) +

+ +**Verify Transaction Submission and Staking Records** + +19. In the top right corner of the staking website, hover over your connected wallet and click **My Staking**. + +

+![btc-staking-on-core](../../../../static/img/native-staking/updated-ui/staking-guide-8.png) +

+ + +20. The **My Staking** page displays records of all your staking activities (CORE, BTC, hash). Click on the respective CORE, BTC, and Hash tabs to view details on your staking and delegations. + +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-16.png) +

+ +**Congratulations**\! You have successfully staked your Bitcoin and CORE on the Core blockchain and will now actively earn CORE tokens as rewards. By staking Bitcoin and voting for validators, you actively contribute to the governance and security of the Core network, supporting its decentralization and stability. In addition, through Dual Staking, you help strengthen the connection between the Bitcoin and Core blockchain, aligning incentives and creating value across both ecosystems. \ No newline at end of file diff --git a/docs/Learn/products/btc-staking/faqs-btc-staking.md b/docs/Learn/products/btc-staking/faqs-btc-staking.md index 2db40c1dd0..78cbe81cc2 100644 --- a/docs/Learn/products/btc-staking/faqs-btc-staking.md +++ b/docs/Learn/products/btc-staking/faqs-btc-staking.md @@ -12,7 +12,7 @@ The staking address is derived from your wallet's master private key, ensuring y You can view your staked funds by searching the staking address on the any BTC explorer like (Mempool)[https://mempool.space/]. We're actively working to make staked assets visible in all supported wallets especially through command line versions. -### Does Core Chain provide any hardware wallet support for Non-Custodial BTC Staking? +### Does Core provide any hardware wallet support for Non-Custodial BTC Staking? At present, Non-Custodial BTC Staking does not support hardware wallets due to technical constraints. Nevertheless, we're constantly exploring ways to enhance compatibility with various wallet types, prioritizing both security and convenience for our users. diff --git a/docs/Learn/products/btc-staking/overview.md b/docs/Learn/products/btc-staking/overview.md index 8b08044a59..6084fba758 100644 --- a/docs/Learn/products/btc-staking/overview.md +++ b/docs/Learn/products/btc-staking/overview.md @@ -3,82 +3,93 @@ sidebar_label: Overview hide_table_of_contents: false sidebar_position: 2 --- +# Non-Custodial Bitcoin Staking +Over [1.5 trillion dollars'](https://www.coingecko.com/en/coins/bitcoin) worth of Bitcoin has remained idle, yielding no native yield for over its lifetime. Since Bitcoin is a Proof-of-Work blockchain, its holders do not get the yield benefits native to Proof-of-Stake chains. Nevertheless, Core has delivered Proof-of-Stake benefits to the definitive Proof-of-Work blockchain. **Non-Custodial Bitcoin Staking** substantially enhances Core’s security model while unlocking Bitcoin-native yield for the first time. This innovative approach allows Bitcoin holders to participate in and earn from Satoshi Plus without giving up custody of their Bitcoin, thereby integrating Bitcoin's economic power with Core's advanced blockchain functionalities. -# Non-Custodial BTC Staking - Unlocking Bitcoin DeFi ---- +## **Overview** + +Core’s Non-Custodial Bitcoin Staking allows Bitcoin holders to earn CORE tokens without giving up control of their private keys or transferring their Bitcoin to a third party, external smart contract, or multi-party computation (MPC) wallet. Non-Custodial Bitcoin Staking lets Bitcoin holders securely lock their Bitcoin natively on the Bitcoin network. At the same time, the stakers can actively contribute to the validator election on the Core network, strengthening its security and decentralization through the Satoshi Plus consensus mechanism. This approach ensures that Bitcoin remains under the user’s control while enabling them to support network security and earn rewards. -Over [1 trillion dollars'](https://www.coingecko.com/en/coins/bitcoin) worth of BTC has remained idle, yielding no returns for over 10 years. Bitcoin network inherently is not Turing-complete, due to this, to have utility outside the Bitcoin network, the bitcoins have to be wrapped, bridged, or sent to a third-party custody. None of them is secure: they all need trust on a third-party. This is why most of the bitcoins are idle. Securely utilizing them to protect the decentralized economy seems a mission impossible. Previous attempts by other projects to leverage this liquidity have met with limited success. However, with technical advancements on Bitcoin's side and through the innovative and robust ecosystem, Core Chain presents a promising opportunity to unlock the dormant potential of Bitcoin liquidity. +## **Rationale Behind Core’s Non-Custodial Bitcoin Staking** -One of the most outstanding features of Core Chain that distinguishes it from other competitors is that of **`Non-Custodial BTC Staking`**. Core Chain welcomes BTC holders to stake their BTC on the Bitcoin network. With the introduction of non-custodial bitcoin staking, Core Chain's recent protocol updates incorporate Bitcoin holders as the third part of the Satoshi Plus consensus mechanism. +Core blockchain offers Non-Custodial Bitcoin Staking as a strategic move to enhance its decentralization and security. By incorporating Bitcoin, which has a robust and well-established network, into its consensus mechanism, Core can leverage Bitcoin's decentralization and security features. Through the Non-Custodial Bitcoin Staking, Core leverages Bitcoin security and provides the first-ever non-custodial Bitcoin native yield generation opportunities to the Bitcoin community. Participating in Non-Custodial Bitcoin Staking offers an additional incentive: earning CORE tokens. This is a way for Bitcoin holders to retain complete custody of their Bitcoin assets without transferring them elsewhere and receive additional rewards in CORE tokens. -## Empowering Bitcoin Holders and Strengthening Core -#### _The Dual Benefits of Non-Custodial BTC Staking_ +## **Advantages of Non-Custodial Bitcoin Staking** -1. **Benefits for BTC Holders from Non-Custodial BTC Staking** - - **Maintaining Assets on Bitcoin:** By Non-Custodial BTC Staking, Bitcoin holders have the unique opportunity to keep their assets securely on the Bitcoin network. This is significant because it allows them to retain their investment in what is widely regarded as the most decentralized and secure blockchain, often referred to as digital gold. In essence, they can continue to hold their Bitcoin, enjoying the security and reputation it offers, without needing to transfer their assets elsewhere. - - **Earning Core Tokens as Rewards:** Participating in Non-Custodial BTC Staking offers an additional incentive: earning Core tokens. This is a way for Bitcoin holders to not only retain their Bitcoin assets but also to receive additional rewards in the form of Core tokens. - - **Social Responsibility in Decentralization:** By staking their BTC, holders contribute to the decentralization of the Core blockchain. This is a form of social responsibility, as their participation helps in maintaining a diverse and distributed network, which is fundamental to the ethos of blockchain technology. -2. **Core's Rationale Behind Offering Non-Custodial BTC Staking** - - **Enhancing Decentralization and Security:** Core blockchain is offeringNon-Custodial BTC Staking as a strategic move to enhance its decentralization and security. By incorporating Bitcoin, which has a robust and well-established network, into its consensus mechanism, Core can leverage the decentralization and security features of Bitcoin. +1. **No risk to principal BTC:** Users can stake their bitcoins without involving any new trust assumptions, slashing, or protocol risks. Their principal BTC remains under their custody and on the Bitcoin blockchain, leveraging the high security and trust already provided by Bitcoin's robust infrastructure. +2. **Self-custody and 100% secure:** Users only need to send themselves the staking transaction on the Bitcoin network, and the Bitcoin assets _DO NOT_ need to leave the Bitcoin network. +3. **The Bitcoin Risk-Free Rate:** By introducing zero new trust assumptions, Core’s Bitcoin staking unlocks riskless yield for Bitcoin holders. +4. **Bitcoin-Nativity:** Using Bitcoin’s native absolute time locks, Bitcoin stakers retain full custody of their Bitcoin. +5. **Sustainable Yield:** This mechanism transforms Bitcoin into a yield-bearing asset, whereby stakers can earn a portion of Core’s fixed emissions and gas fees in CORE tokens for securing the Core network. +6. **Network Integration:** Non-Custodial Bitcoin Staking integrates Bitcoin holders into Core’s consensus mechanism, contributing to the network’s security and decentralization. -## Advantages of Non-Custodial BTC Staking +## **How Non-Custodial Bitcoin Staking Works** {#how-non-custodial-bitcoin-staking-works} -1. It is designed specifically for the kind of long-term holders and institutions who have shown a clear preference for keeping their assets on the Bitcoin blockchain. Recognizing that such entities are accustomed to holding their bitcoin without frequent transactions, native bitcoin staking offers them the opportunity to earn rewards during a specified holding period. -2. No new trust assumptions are added. Users can stake their bitcoins without moving it off the Bitcoin blockchain, thereby maintaining the high security and trust that comes with Bitcoin's robust infrastructure. -3. It provides an opportunity for the bitcoin holders to earn passive CORE token rewards in exchange for contributing to Core Chain's consensus. -4. Self custody and 100% secure. Users only need to send themselves the staking transaction on the Bitcoin network and the BTC assets DO NOT need to leave the Bitcoin network at all. -5. The function is implemented using native cryptographic features of the Bitcoin network, and it is fully battle tested and safer than all other non Bitcoin native solutions. -6. Users can build the transaction in any way and with any tool they prefer, it is highly not possible to encounter supply chain attacks from untrusted/unverified third party libraries. +Non-custodial Bitcoin Staking is one of the three fundamentals of Core’s Satoshi Plus consensus mechanism. Through this feature, Core incorporates Bitcoin holders into its ecosystem for security and to enable them to turn Bitcoin into a yield-generating asset. +Core's methodology for integrating Bitcoin staking centers on [CLTV timelock](https://en.bitcoin.it/wiki/Timelock#CheckLockTimeVerify). CLTV timelock is a Bitcoin-native cryptographic feature that specifies a condition under which the transaction output cannot be spent until a specific point in time has passed. This time can be defined as a specific date and time or by block height. -## Why Opt Core Chain's Non-Custodial BTC Staking +Imagine CLTV as a **time-locked vault**: when you "lock" your Bitcoin, it’s securely held and inaccessible until the designated time elapses, at which point the Bitcoin is returned to you. This feature enables Core’s staking mechanism to work without requiring users to relinquish control of their Bitcoin. Instead, Bitcoin holders can support Core’s network and earn rewards while retaining custody of their assets. -There are a few aspects of Core Chain's implementation of staking that set it apart. +Rather than holders giving up custody of their Bitcoins to third parties or external smart contracts, Bitcoin stakers need to initiate a qualified CLTV transaction on the Bitcoin network, and the transaction can be designed to return the output after a fixed time period has elapsed. CLTV is a Bitcoin-native feature, and users can use it to lock any amount of their assets at/for any time. However, specific prerequisites should be met to ensure that transactions are valid and to be picked as a delegation for validators on the Core network. Within the CLTV transaction, stakers must include a script containing the following information: -1. There is no need to transfer your assets. Unlike other DeFi protocols that require transferring bitcoin to a different blockchain or wrapping it, Core Chain's staking allows users to stake directly within the Bitcoin ecosystem. -2. Core Chain's bitcoin staking maintains the basic blockchain ethos by allowing bitcoin holders to contribute to the expansion of Core Chain's overall security budget. -3. There are options to stake through the command line or a web interface, and there's a simple claim process for rewards. -4. The product is designed for ease of use, catering to both tech-savvy users and those preferring a more straightforward approach. -5. The reward system helps align cross-chain incentives. The reward pool comes from a shared consensus reward system that integrates the contributions of both Bitcoin miners and CORE token stakers, thereby optimizing the reward distribution for all participants. Additionally, the rewards are sustainable over the long-term, and will be distributed over a period of 81 years. +1. The address of the Core Validator the staker wants to delegate their Bitcoin to. +2. The address to which the staker would like their CORE token rewards to be sent. +The **Relayers** are a key component of the Core ecosystem that monitors the Bitcoin network for Bitcoin staking and unstaking transactions. Once the valid CLTV transactions containing information for Bitcoin delegation to validators on Core are sent over the Bitcoin network, the Relayers pick up these transactions and forward them to the Core consensus engine. -## How Non-Custodial BTC Staking Works +It is essential to be clear that Core’s non-custodial Bitcoin staking mechanism introduces no protocol or principal risks to the user’s delegated Bitcoin. Users transact on the Bitcoin network to delegate their assets to Core validators via Bitcoin’s CLTV; their assets remain on the Bitcoin network under their control. The assets are not moved off-chain or to any third-party or smart contracts. On the other side, relayers from the Core network are responsible for monitoring the Bitcoin network, picking up Bitcoin staking transactions, verifying them, and forwarding the valid transactions to the Core consensus mechanism, which is responsible for rewarding the stakers accordingly. -With the non-custodial bitcoin staking, Core Chain's protocol incorporate bitcoin holders as the third part of Satoshi Plus consensus. Core Chain's methodology for integrating bitcoin staking centers on [CLTV timelock](https://en.bitcoin.it/wiki/Timelock#CheckLockTimeVerify). CLTV timelock are Bitcoin-native cryptographic feature that specify a condition under which the transaction output cannot be spent until a certain point in time has passed. This time can be defined in terms of a specific date and time or by block height. Rather than holders giving up custody of their bitcoins to external staking, stakers on Core Chain merely need to place their bitcoins in CLTV timelocks as part of a transaction, and the transaction can be designed to return the output after the time period has elapsed. Within that transaction, stakers must include a script containing the same information that Bitcoin miners include in their delegated blocks: +Bitcoin stakers earn yield as staking rewards in the form of CORE tokens on their otherwise passive Bitcoin for however long they set the time lock (i.e., delegate their Bitcoin to validators on the Core network). Core’s Non-Custodial Bitcoin Staking results in billions of dollars in underutilized Bitcoin value becoming productive, remunerating stakers while expanding the scope of Bitcoin's utility. -1. The address of the Core Validator the staker wants to delegate their bitcoin to. -2. The address that the staker would like their CORE token rewards to be sent to. +### **Requirements for Bitcoin Staking** -Bitcoin stakers earn a yield on their otherwise passive bitcoin in the form of CORE token rewards, for however long they set the time-lock (and thus for however long they delegate their bitcoin to vote for Validators on Core Chain). The end result is that billions of dollars in underutilized Bitcoin value will become productive, remunerating stakers while also expanding the scope of Bitcoin's utility. +* For a Bitcoin staking transaction to be considered valid and picked up by the Relayers, users must ensure that the transaction is sent to their address and, using the Bitcoin native timelock feature, specify the lock-up amount intended to be delegated to the validator on the Core blockchain, as the transaction output. +* The transaction should also contain an `op_return` output specifying + * The address of the Core Validator the staker wants to delegate their Bitcoin to. + * The address to which the staker would like their CORE token rewards to be sent. +* **Minimum requirements exist** for the **amount** of BTC to be staked. Users should stake at least **0.01 Bitcoin** (less transaction fees). -### Guidelines for Staking/Redeeming BTC +### **Transaction Workflow** -When staking or redeeming your BTC, please follow these guidelines to ensure smooth transactions: -1. **Avoid Low Gas Fees:** - * We recommend avoiding gas fees lower than the current market rate. - * Using a gas fee that is too low, especially during periods of network congestion, may result in your Bitcoin transaction taking an extended amount of time (potentially days) to be confirmed. -2. **Handling Low Gas Fee Situations:** - * If your Bitcoin transaction is delayed due to a low gas fee, consider using a transaction accelerator to speed up the process. - * There are several third-party services available; for example, the free viaBTC transaction accelerator (which can be accessed [here](https://www.viabtc.com/tools/txaccelerator)). - * Please research and choose a service that best fits your needs. +Core's implementation of Bitcoin staking is completely native and non-custodial, i.e., users can keep their Bitcoin assets on the Bitcoin network without bridging them out before staking. -By following these recommendations, you can ensure a more efficient staking and redemption process for your BTC. +![btc-staking-tx-workflow](../../../../static/img/btc-staking/btc-staking-flow.png) -### Requirements for Eligibility +Note that Non-Custodial BTC Staking operations are conducted on two separate blockchains—Bitcoin and Core. The following table identifies what happens in each blockchain for Bitcoin holders to earn staking rewards successfully through non-custodial Bitcoin staking. It's important to note that Core's Non-Custodial Bitcoin Staking does not introduce any additional risks or trust assumptions. Beyond monitoring and verifying Bitcoin staking transactions and accrual and claiming rewards, all operations—including asset locking, redemption, and asset management—remain securely on the Bitcoin network. -Core Chain welcomes BTC holders to stake their BTC on the Bitcoin network. By voting for a Core validator during your BTC staking transaction, you play a pivotal role in Core's decentralization, earning CORE tokens as recurring rewards. +| Step\# | Bitcoin Network | Core Network | +| :---- | :---- | :---- | +| Step\#1 | User craft a CLTV Timelock transaction with a timelock period of their choice and OP\_RETURN containing Core Validator Address the user wants to delegate their Bitcoin to. CORE reward address for receiving the staking rewards in the form of CORE. For details on how to compose such a staking transaction, please refer to the [transaction design](https://docs.coredao.org/docs/Learn/products/btc-staking/design). | Relayers monitor the Bitcoin network for valid CLTV transactions for non-custodial Bitcoin staking. | +| Step\#2 | The user sends the crafted transaction to themselves on the Bitcoin network. | | +| Step\#3 | The Bitcoins are locked on the Bitcoin network for the specified time period. Once the transaction is confirmed on the Bitcoin network, which can take several hours due to block time, number of block confirmations required, and network congestion, the locked assets will appear in the staking records. (*Optional*) After the transaction is confirmed on the Bitcoin network, users can retrieve the transaction data and submit it to the Core blockchain. This step is optional if users compose the transaction in a standard format, as suggested by Core. Relayers from the Core infrastructure will detect the staking transaction and submit it to the Core blockchain for users. | | +| Step\#4 | | Relayers pickup the valid transactions and forward them to the Core Consensus Engine | +| Step\#5 | | The rewards for BTC staking are accrued, and users have to claim them manually. | +| Step\#6 | Once the time lock expires, users **must** send out a Redeem script to retrieve their locked Bitcoin assets. Users can also choose to delegate directly again rather than redeem and then delegate. | | -* There are _minimal requirements_ on both **amount** and **duration** to make the staking eligible on Core Chain. - * A user should at least stake **0.01 BTC** (less transaction fees) for at least **10 days**. +## **Step-by-Step Process** -### Transaction Work Flow +1. **Locking Bitcoin:** Bitcoin holders initiate the staking process by locking their Bitcoin in an absolute time lock on the Bitcoin blockchain. +2. **Including Delegation Information:** Within the locking transaction, stakers include: + 1. **Core Validator Address:** The address of the Core Validator to which to delegate their Bitcoin. + 2. **CORE Token Reward Address:** The address where they want their CORE token rewards sent. +3. **Delegating Bitcoin:** This action delegates the staker’s Bitcoin to the chosen Core validator for a specified period, during which the Bitcoin cannot be spent. +4. **Validator Election:** Core uses the delegated Bitcoin to determine the hybrid score for the validator election. Validators with higher delegated Bitcoin have a better chance of being elected to the validator set. +5. **Earning Rewards:** Bitcoin stakers earn CORE token rewards for the lock period based on the validator's performance and the amount of Bitcoin staked. +6. **Unlocking Bitcoin:** After the timelock expires, the staked Bitcoin remains in the staker’s address but stays locked. To regain access and be able to spend their BTC, the staker must redeem it explicitly after the timelock period ends. -![btc-staking-flow](../../../../static/img/btc-staking/btc-staking-flow.png) +### **Guidelines for Staking/Redeeming Bitcoin** -Core Chain's implementation of BTC native staking is completely non-custodial, i.e., users can keep their BTC assets on the Bitcoin network without bridging them out before staking. Users are required to perform only the following steps: +Please follow these guidelines to ensure smooth transactions when staking or redeeming your Bitcoin. Following these recommendations can ensure a more efficient staking and redemption process for your Bitcoin. -* Send a BTC transaction to their own address, and lock up the output whose amount is intended to stake on Core blockchain by using the Bitcoin native timelock feature. Besides, the transaction should also contain an `op_return` output in which users can designate the Core validator address to stake to and a `reward address` to receive CORE rewards. For details to compose such a staking transaction, please refer to the [transaction design](design.md). +1. **Avoid Low Gas Fees:** + * We recommend avoiding gas fees that are lower than the current market rate. + * Using a gas fee that is too low, especially during periods of network congestion, may result in your Bitcoin transaction taking an extended amount of time (potentially days) to be confirmed. +2. **Handling Low Gas Fee Situations:** + * If your Bitcoin transaction is delayed due to a low gas fee, consider using a transaction accelerator to speed up the process. + * Several third-party services are available, such as the free viaBTC transaction accelerator (accessible [here](https://www.viabtc.com/tools/txaccelerator)). + * Please research and choose a service that best fits your needs. -* (_Optional_) After the transaction is confirmed on the Bitcoin network, users can retrieve the transaction data and submit to the Core blockchain. This step is optional, if users compose the transaction in a standard format as suggested by Core Chain (defined in the [transaction design](design.md)). The Core infrastructure will detect the staking transaction and submit it to Core blockchain for users. +## **Conclusion** -* When the timelock expires, users can spend the UTXO using the corresponding redeem script. It is easy for them to build the redeem script from the original staking transaction. +Non-Custodial Bitcoin Staking transforms the Bitcoin asset from a passive Store of Value into an active, yield-bearing, and security-providing asset. Bitcoin staking allows Bitcoin holders to earn the Bitcoin Risk-Free Rate while contributing to the security of a smart contract platform designed to unlock more Bitcoin asset use cases. \ No newline at end of file diff --git a/docs/Learn/products/btc-staking/stake-btc-guide.md b/docs/Learn/products/btc-staking/stake-btc-guide.md index 548a4308a3..b100cad3b4 100644 --- a/docs/Learn/products/btc-staking/stake-btc-guide.md +++ b/docs/Learn/products/btc-staking/stake-btc-guide.md @@ -1,168 +1,133 @@ --- -sidebar_label: Staking BTC on Core +sidebar_label: Staking Bitcoin on Core hide_table_of_contents: false sidebar_position: 2 --- -# Non-Custodial BTC Staking +# Non-Custodial Bitcoin Staking -This technical guide is designed to walk you through the process of staking your Bitcoin (BTC) on the Core blockchain to earn CORE token rewards. With Non-Custodial BTC Staking, you can earn passive yield in CORE while retaining ownership of your Bitcoin assets. Let's dive into how it works and how you can start staking today. +This user guide is designed to walk you through staking your Bitcoin on the Core blockchain to earn CORE token rewards. With Non-Custodial Bitcoin Staking, you can earn passive yield in CORE while retaining complete ownership of your Bitcoin assets. Let's dive into how it works and how you can start staking today. ## Prerequisites -The following must be satisfied prior in order to complete this guide: +To be able to stake, you must have the following prerequisites: -1. **Xverse and/or Unisat Wallet(s):** You will need to add to either [Xverse](https://chromewebstore.google.com/detail/xverse-wallet/idnnbdplmphpflfnlkomgpfbpcgelopg?hl=en-GB\&authuser=1) and/or [Unisat](https://chromewebstore.google.com/detail/unisat-wallet/ppbibelpcjmhbdihakflkdcoccbgbkpo) wallet(s) via Chrome browser extension, to participate in the staking process. (_Must use a desktop, mobile and hardware wallets are not supported at this time_) +1. **Supported Bitcoin Wallet Browser Extension:** To participate in the BTC staking process, you must install browser extensions of any supported Bitcoin wallets, like [Xverse](https://chromewebstore.google.com/detail/xverse-wallet/idnnbdplmphpflfnlkomgpfbpcgelopg?hl=en-GB&authuser=1), [Unisat](https://chromewebstore.google.com/detail/unisat-wallet/ppbibelpcjmhbdihakflkdcoccbgbkpo), and/or [OKX Wallet](https://chromewebstore.google.com/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge) (visit stake.coredao.org for the latest supported wallets). You must use a desktop version, as mobile and hardware wallets are not currently supported. You can also stake directly using the [Element Wallet](https://www.elementwallet.com/) mobile application as well. +2. **Core Wallet Address for Rewards:** Prepare your Core wallet address to receive CORE token rewards for staking Bitcoin. If you do not have a Core wallet address, you can quickly create one by connecting to MetaMask. For more information on configuring MetaMask to work with the Core network, follow the detailed guide [here](https://docs.coredao.org/docs/Dev-Guide/core-mainnet-wallet-config). -2. **Core Wallet Address for Rewards:** Prepare your Core wallet address where you will receive Core token rewards for staking your BTC. If you do not have a Core wallet address, you can create one easily by connecting to MetaMask. +## **Key Considerations For BTC Staking** -**1. Adding the Core network to MetaMask via the Core Explorer:** +The following are some key points that users should be careful about when staking their Bitcoin on Core. -* Go to [coredao.org](http://coredao.org) and scroll all the way down on the page +1. **Minimum of 0.01 Bitcoin \+ Gas Fee:** To successfully stake your Bitcoin on Core, you need a minimum of 0.01 Bitcoin. In addition to the staking amount, users should consider the necessary gas fees in Bitcoin for executing transactions on the Bitcoin network. If you plan to stake for less than a month, having at least 0.05 Bitcoin is advisable. This extra amount helps cover potential network congestion, which can lead to higher gas prices than the rewards earned from staking. +2. **Understanding the Differences in Bitcoin Staking Addresses:** + * The staking address in your Bitcoin wallet's transaction prompt may differ from your original Bitcoin address. This is because the Bitcoin staking address is derived from your Bitcoin wallet's master private key, ensuring control and security over your assets. Your Bitcoin remains safe in the Bitcoin staking address, unaffected by staking. +3. **Delays in Locked Assets to Appear in your Bitcoin Wallet:** + * You may face some delays before your locked Bitcoin is displayed in your Bitcoin wallets. This delay primarily results from delays in transaction confirmation on the Bitcoin network, which can take several hours due to block time, the number of block confirmations required, and network congestion. + * While we are actively working with wallet partners to support the timely display of your assets in your wallets, you can check your locked assets on the ”MyStaking” page on Core’s staking website. + * You can also view your staked funds by searching the staking address on a Bitcoin explorer, [Mempool.space](https://mempool.space/). +4. **Considerations for Locking Periods** + * Once you lock your Bitcoin for staking, it's inaccessible until the staking period concludes. Considering your investment objectives and risk tolerance, you are advised to select your locking period thoughtfully. Starting with shorter locking periods can help you become familiar with the process before committing to longer durations. -![native-staking-guide](../../../../static/img/native-staking/native-staking-1.avif) +## Workflow of Non-Custodial BTC Staking -* Click the ‘Add Core Network’ button -* Approve in your MetaMask +Non-custodial Bitcoin staking introduces a secure and decentralized method for Bitcoin holders to earn staking rewards. By locking your Bitcoin natively on the Bitcoin network through a time-bound mechanism, you can actively participate in the Core blockchain's Consensus mechanism while staking. Here are the steps involved in this process. -![native-staking-guide](../../../../static/img/native-staking/native-staking-2.png) +1. **Initiate Staking:** Start by accessing either the [CLI-based BTC Staking Tool](https://github.com/coredao-org/btc-staking-tool) (for technical users) or the [web-based staking platform](https://stake.coredao.org/) (for general users). +2. **Stake Bitcoin with Time-Lock:** You stake your Bitcoin by sending a transaction on the Bitcoin network with a time-lock parameter, and your Bitcoin remains locked until the specified period ends. Ensure you follow the requirements for a transaction to be valid and eligible; refer [here](https://docs.google.com/document/d/1DfhLwMfANGYhcJe4UiyRJxpw1FvFX6k-QQK4cMYYOls/edit?tab=t.0#heading=h.mwjq55dgslw5) for more details. + 1. There is no minimum staking period requirements, however, make sure to thoughtfully select your lockup periods. + 2. Include the Core Validator Address to delegate your assets. + 3. Include the Core wallet address for rewards. +3. **Vote for Validators:** By including the address of the Core Validators in your transaction, you can delegate your staked Bitcoin to the chosen validator on the Core blockchain. +4. **Connect a Core wallet for rewards:** In the return field, verify your Core wallet address; you'll receive CORE token rewards at this address. +5. **Claiming Rewards:** Accrued CORE token rewards will also appear on the [staking site](http://stake.coredao.org/). CORE token rewards will appear when users connect their wallets, and can be claimed daily. +6. **Redeem Bitcoin:** Once the staking lock time expires, the staked Bitcoin will remain idle in the staking address until redeemed by the user. -2. Alternatively, you can use this guide: [Add Core to MetaMask](https://medium.com/@core\_dao/add-core-to-metamask-7b1dd90041ce) for a more detailed step by step guideline for manually filling out the network information. +## Non-Custodial Bitcoin Staking Walkthrough -## Before you Start Staking +To begin staking your Bitcoin on the Core blockchain and earn staking rewards in CORE tokens, follow the steps detailed below to stake Bitcoin through Core's official [staking website](http://stake.coredao.org/). -Let's clarify the staking mechanism, so you know what to expect going into Non-Custodial BTC Staking. +### Connect Core Wallet -1. **Minimum of 0.01 BTC + Gas Fee** +1. Visit [https://stake.coredao.org](https://stake.coredao.org/) and click on **Validators** on the top header. - * **Why is this necessary:** To ensure a smooth staking experience, you need to have a minimum of **0.01 BTC** available along with the necessary gas fee required for executing transactions on the Bitcoin network. Gas fees cover the cost of processing transactions on the blockchain. Additionally, we recommend having at least **0.05 BTC** if staking for less than **1 month**. This buffer accounts for potential network congestion, where transaction gas prices may exceed the earned staking reward. +2. Click **Connect Wallet** in the top right corner of the header to connect your Core wallet. From the supported list of wallets, choose your desired Core wallet. For this walkthrough, we have used Metamask. -2. **Understanding Staking Address Differences** +

+![btc-staking-on-core](../../../../static/img/native-staking/updated-ui/staking-guide-1.png) +

- * **What's happening:** You may notice that the staking address provided differs from your original Bitcoin address. - * **What it means:** The staking address is derived from your wallet's master private key, ensuring your control and security over your assets. Your Bitcoin remains safely stored in the staking address controlled by your private key, unaffected by staking. We’re actively working with wallet partners to support this display of your assets in a timely manner. - * You can view your staked funds by searching the staking address on a Bitcoin explorer, [Mempool.space](https://mempool.space/) is an option we recommend. We're actively working to make staked assets visible in the wallet. +3. Confirm the wallet notification to allow to connect to the staking website. -3. **Considerations for Locking Periods** +

+![btc-staking-on-core](../../../../static/img/native-staking/updated-ui/staking-guide-2.png) +

- * **Important reminder:** Once you lock your Bitcoin for staking, it's inaccessible until the staking period concludes. - * **Choosing wisely:** We advise selecting your locking period thoughtfully, taking into account your investment objectives and risk tolerance. Starting with shorter locking periods can help you become familiar with the process before committing to longer durations. +### Selecting a Core Validator for Bitcoin Delegation - These prompts aim to provide clarity and confidence as you embark on your Non-Custodial BTC Staking journey. Your understanding and preparedness are key to a successful staking experience. Now, let's guide you through the step-by-step process of staking your Bitcoin on the Core blockchain and earning Core token rewards. +4. Once on the **Validators** page, scroll down to view the list of Core Validators and choose the Validator to whom you wish to delegate your Bitcoins. Please ensure to choose active validators. -## How Non-custodial BTC Staking Works +

+![btc-staking-on-core](../../../../static/img/native-staking/updated-ui/staking-guide-3.png) +

-### Overview of the Staking Process +5. By clicking on the name of the desired validator, you will be directed to the **Validator Details** page. This page displays details about the staking/delegation records for the selected validator. -Non-Custodial BTC staking introduces a secure and decentralized method for Bitcoin holders to earn rewards. By locking your Bitcoin within the original network through a time-bound mechanism, you can actively participate in the Core blockchain's Consensus mechanism while staking. Here are the steps involved in this process. +

+![btc-staking-on-core](../../../../static/img/native-staking/updated-ui/staking-guide-4.png) +

-1. **Initiate Staking:** Start by accessing the staking platform using either the [command line interface for technical users](https://github.com/coredao-org/btc-staking-tool) or the web-based frontend for general users [https://stake.coredao.org](https://stake.coredao.org) -2. **Stake BTC with Time-Lock:** Stake your Bitcoin by sending a transaction on the Bitcoin network with a time-lock parameter, ensuring that your BTC remains locked until the specified period ends. The minimum staking period is **10 days**. -3. **Vote for Validators:** Delegate your staked BTC to the chosen validator on the Core blockchain. -4. **Connect Core Chain’s wallet for rewards:** Verify your Core address in the return field, where you'll receive Core token rewards. -5. **Claiming Rewards:** Core token rewards will appear when users connect their wallet, and can be claimed daily. Core token rewards will appear on the (staking site)\[[https://stake.coredao.org](http://stake.coredao.org/)]. -6. **Redeem BTC:** Once the staking lock time expires, the staked BTC will remain idle in the staking address until redeemed by the user. +6. Click on the **Stake** button, then select **BTC** -## Non-Custodial BTC Staking Walkthrough +

+![btc-staking-on-core](../../../../static/img/native-staking/updated-ui/staking-guide-5.png) +

-To begin staking your Bitcoin on the Core blockchain and earn Core token rewards, follow these steps: +7. To connect your Bitcoin wallet, click on the supported wallet of your choice. For this walkthrough, we selected Unisat. -### Connect Your Wallet +

+![btc-staking-on-core](../../../../static/img/native-staking/updated-ui/staking-guide-6.png) +

-Connecting your wallet is the first step towards accessing the staking platform and initiating the staking process. This will enable you to interact with the Core blockchain and participate in Non-Custodial BTC Staking. +8. Once your Bitcoin wallet is connected, it's important to understand and specify several key parameters: +* Specify the amount of Bitcoin you’d like to delegate. The minimum amount to delegate is **0.01 Bitcoin**. +* Setting the lock time determines when your staked Bitcoin will be unlocked and available again for redemption or re-delegation. + * You can input values by selecting inside the lock time box or clicking on the calendar icon to select the date and click “OK” to proceed. + * The default lock time is set to a month in advance. +* Specify the network priority speed for your transaction -1. Visit [https://stake.coredao.org](https://stake.coredao.org) +

+![btc-staking-on-core](../../../../static/img/native-staking/updated-ui/staking-guide-7.png) +

-2. Once on the website, locate and click on the "**Connect Wallet**" button. +9. Note that the **Reward Address on Core** is pulled from the connected Core wallet. You should connect the Core wallet with the same address on which you want to receive staking rewards in CORE tokens. +10. Click **Confirm** to complete the transaction. -![native-staking-guide](../../../../static/img/native-staking/native-staking-3.avif) +### Confirm OP\_Return Output +11. Before Signing the transaction in your wallet, verify the transaction outputs to ensure they include an OP\_Return output. The OP\_Return output is where your redeem\_script is saved and is essentially used to redeem your staked Bitcoin. There may be two or three outputs, but at least one should always be OP\_Return. Abort the transaction if it doesn't include the OP\_Return output. -3. **Choose an available wallet** +

+![dual-staking-on-core](../../../../static/img/dual-staking/dual-staking-15.png) +

- * If you do not yet have a wallet, refer to **[Core Wallet for Rewards](#prerequisites)** in the prerequisite section above. +12. Once you confirm the transition, you will receive a **Transaction Submitted** notification. You can verify your transaction by clicking **View on BTC Explore**. -4. **Choose a validator to delegate BTC** +

+![btc-staking-on-core](../../../../static/img/native-staking/native-staking-13.avif) +

-Here, we will be selecting a validator that we’d like to delegate our BTC to. In the example shown, we will be choosing Validator 4, but you’re free to choose any active validator. +### Viewing Staking Records - 1. Click name of chosen validator to select +13. In the top right corner of the staking website, hover over your connected wallet and click **My Staking**. -![native-staking-guide](../../../../static/img/native-staking/native-staking-4.avif) +

+![btc-staking-on-core](../../../../static/img/native-staking/updated-ui/staking-guide-8.png) +

- 2. Hover over Delegate, and then select ‘BTC’ on the dropdown +14. The **My Staking** page displays records of all your staking (CORE, BTC, and hash). Click on the **BTC Records** tab to show details of your BTC delegations. -![native-staking-guide](../../../../static/img/native-staking/native-staking-5.avif) +

+![btc-staking-on-core](../../../../static/img/native-staking/updated-ui/staking-guide-9.png) +

-### Connect BTC wallet - - 1. Upon selecting a validator to delegate BTC in the previous step, you will be prompted to connect a BTC wallet - -:::info -In this example, we demonstrate using Unisat Wallet, but it's compatible with Xverse Wallet as well. Ensure you have either of these two installed. -::: - - 2. On the Connect wallet pop up screen, select one of the available wallets. - -* For developers and more advanced users who are interested in using the Stake Tool, refer[ here.](https://github.com/coredao-org/btc-staking-tool?tab=readme-ov-file) - -![native-staking-guide](../../../../static/img/native-staking/native-staking-6.png) - - 3. On the following screen, click **Connect** - -![native-staking-guide](../../../../static/img/native-staking/native-staking-7.avif) - -### Delegate BTC - -While initiating the delegation process, it's important to understand and specify several key parameters: - -1. **Specifying the amount of BTC you’d like to delegate** - -* The minimum amount to delegate is **0.01 BTC** -* In our example, we will be delegating **0.05 BTC** which satisfies this requirement - -![native-staking-guide](../../../../static/img/native-staking/native-staking-8.avif) - -2. **Setting the lock time** – this determines when your staked BTC will be unlocked and available for use again on your local device. - -* Select inside lock time box to input values -* The default lock time is set to a month in advance. The minimum lock time is **10 days.** -* In our example, we’ve selected a date 10 days in advance (April 24) -* Click ‘**OK**’ to proceed - -![native-staking-guide](../../../../static/img/native-staking/native-staking-9.avif) - -3. Specifying the network priority speed for your transaction - -![native-staking-guide](../../../../static/img/native-staking/native-staking-10.avif) - -4. Finally, click ‘**Confirm Delegation**’ to **Delegate BTC** - -![native-staking-guide](../../../../static/img/native-staking/native-staking-11.avif) - -5. Before Signing the transaction in your wallet, verify the transaction outputs to make sure it includes an OP\_Return output. OP\_Return output is where your redeem\_script is saved and is essentially for redeeming your staked BTC. There may be 2 or 3 outputs, but at least one of the outputs should always be OP\_Return. Abort the transaction if it doesn't include the OP\_Return output. - -![native-staking-guide](../../../../static/img/native-staking/native-staking-12.avif) - -6. Verify Transaction Submitted - -![native-staking-guide](../../../../static/img/native-staking/native-staking-13.avif) - -5. From any CORE screen, hover over your connected wallet in the top right corner click ‘**My Staking**’. - -![native-staking-guide](../../../../static/img/native-staking/native-staking-14.png) - -6. At the **Delegator** screen, look for the column **BTC(x)** and click. - - ![native-staking-guide](../../../../static/img/native-staking/native-staking-15.avif) - -7. Verify your chosen validator is pending transaction confirmation. - - ![native-staking-guide](../../../../static/img/native-staking/native-staking-16.avif) - -8. Verify your chosen validator says ‘**Rewarding**’ under '**Redeem** **Time**'. - - ![native-staking-guide](../../../../static/img/native-staking/native-staking-17.avif) - -**Congratulations.** You have succesfully staked your BTC on the Core blockchain and will now actively earn CORE tokens from your delegated BTC. Through staking BTC and voting for validators, you actively contribute to the governance and security of the Core network, helping maintain its balance and decentralization. - -We’re happy you’ve chosen to journey into BTCfi with Non-Custodial BTC Staking on Core! +**Congratulations!!** You have successfully staked your Bitcoin on the Core blockchain and will now actively earn CORE tokens from your delegated Bitcoin. Through staking Bitcoin and voting for validators on Core, you actively contribute to the governance and security of the Core network, supporting its decentralization and stability. diff --git a/docs/Learn/products/coreBTC/design.md b/docs/Learn/products/coreBTC/design.md index de22a15d91..6de6d01832 100644 --- a/docs/Learn/products/coreBTC/design.md +++ b/docs/Learn/products/coreBTC/design.md @@ -5,56 +5,56 @@ sidebar_position: 2 --- # Design of coreBTC -The coreBTC within the Core blockchain represents a significant innovation in the realm of blockchain technology, specifically focusing on enhancing Bitcoin's utility within decentralized finance (DeFi). This synthetic representation of Bitcoin on the Core Chain ensures seamless interaction with DeFi applications while maintaining the inherent properties of Bitcoin. +The coreBTC within the Core blockchain represents a significant innovation in the realm of blockchain technology, specifically focusing on enhancing Bitcoin's utility within decentralized finance (DeFi). This synthetic representation of Bitcoin on the Core blockchain enables seamless interaction with DeFi applications while maintaining the critical properties of Bitcoin. ## Key Components and Their Roles **1. Lockers:** - - **Role:** Lockers are responsible for holding the actual Bitcoin that backs the coreBTC. Users send their Bitcoin to a Locker's address to initiate the wrapping process. Anyone can register as a Locker on Core Chain by locking up collateral, and the Core Chain itself also runs one of the many Lockers. - - **Security:** Lockers must provide a significant amount of collateral in CORE tokens to ensure the security of the Bitcoin they hold. This collateral can be liquidated to cover losses in case of malfeasance, providing a strong disincentive against fraudulent activities. + - **Role:** Lockers are responsible for holding the actual Bitcoin that backs the coreBTC. Users send their Bitcoin to a Locker's address to initiate the wrapping process. Anyone can register as a Locker on Core by locking up collateral. + - **Security:** Lockers must provide a significant amount of collateral in CORE tokens to uphold the security of the Bitcoin they hold. This collateral can be liquidated to cover losses in case of malfeasance, providing a strong disincentive against fraudulent activities. **2. Collateral:** - - The particular assets and required collateral ratio are network parameters determined by the Core DAO, and the collateral deposited by Lockers means that locked bitcoin should always be backed by assets of a higher value. If there's a change in the price of bitcoin relative to the value of the collateral, the Locker must adjust its collateral or face potential liquidation. + - The particular assets and required collateral ratio are network parameters determined by Core DAO, and the collateral deposited by Lockers means that locked bitcoin should always be backed by assets of a higher value. If there's a change in the price of bitcoin relative to the value of the collateral, the Locker must adjust its collateral or face potential liquidation. - Collateral can be slashed if Lockers transfer bitcoin without authorization or do not promptly return bitcoin when coreBTC is burned. - Lockers can unregister and retrieve their collateral at any time, as long as they have no residual bitcoin locked and have no unfulfilled unlocking requests. In exchange for the services provided, Lockers earn small fees. **2. Relayers:** - - **Role:** Relayers monitor the Bitcoin blockchain for locking transactions directed at Lockers and validate these transactions. They play a crucial role in ensuring that the locked Bitcoin corresponds accurately to the minted coreBTC on the Core Chain. - - **Functionality:** Upon detecting a valid locking transaction, Relayers submit proof to the Core Chain to mint the corresponding amount of coreBTC, bridging Bitcoin into the Core Chain ecosystem securely. + - **Role:** Relayers monitor the Bitcoin blockchain for locking transactions directed at Lockers and validate these transactions. They play a crucial role in verifying that the locked Bitcoin corresponds accurately to the minted coreBTC on the Core blockchain. + - **Functionality:** Upon detecting a valid locking transaction, Relayers submit proof to Core to mint the corresponding amount of coreBTC, bridging Bitcoin to the Core blockchain ecosystem securely. **3. coreBTC Smart Contract:** - - **Role:** The coreBTC smart contract on the Core Chain manages the minting and burning of coreBTC tokens. It interacts with Relayers and Lockers to ensure that all operations adhere to the protocol rules. + - **Role:** The coreBTC smart contract on Core manages the minting and burning of coreBTC tokens. It interacts with Relayers and Lockers to incentivize all operations to adhere to the protocol rules. - **Security Mechanisms:** The smart contract includes mechanisms for verifying transaction proofs submitted by Relayers, managing collateral posted by Lockers, and executing the minting and redemption processes of coreBTC. **4. Liquidators:** - - **Role:** In the event of price fluctuations or Locker misbehavior, Liquidators are responsible for ensuring the safety and backing of the coreBTC by enforcing collateral requirements. + - **Role:** In the event of price fluctuations or Locker misbehavior, Liquidators are responsible for upholding the safety and backing of the coreBTC by enforcing collateral requirements. - **Function:** Liquidators can force the liquidation of a Locker's collateral if the value of the locked Bitcoin falls or if the Locker fails to maintain the required collateral ratio. This helps maintain the integrity and backing of the coreBTC. **5. Guardians: ** - **Role:** The activity of Lockers is monitored by Guardians, who check for any misbehavior and apply slashing as appropriate. - - **Function:** A Guardian can trigger Core Chain smart contract to slash some of the Locker’s collateral. In this event, a portion of the Locker's collateral, equivalent to the value of the user's burned coreBTC, is transferred to the user. Additionally, the slasher is rewarded with a percentage of this collateral value for their action. + - **Function:** A Guardian can trigger Core smart contract to slash some of the Locker’s collateral. In this event, a portion of the Locker's collateral, equivalent to the value of the user's burned coreBTC, is transferred to the user. Additionally, the slasher is rewarded with a percentage of this collateral value for their action. ## How coreBTC Works -coreBTC is an innovative synthetic asset developed within the Core blockchain ecosystem that allows Bitcoin to be used seamlessly in decentralized finance (DeFi) applications on the Core Chain. The process begins when a user locks their Bitcoin with a designated custodian known as a **Locker**, who holds the actual Bitcoin and provides a significant amount of collateral to secure the transaction. This Bitcoin is then represented on the Core Chain as coreBTC, maintaining a strict **1:1 peg** to ensure value consistency between the locked Bitcoin and the issued coreBTC. +coreBTC is an innovative synthetic asset developed within the Core blockchain ecosystem that allows Bitcoin to be used seamlessly in decentralized finance (DeFi) applications on the Core blockchain. The process begins when a user locks their Bitcoin with a designated custodian known as a **Locker**, who holds the actual Bitcoin and provides a significant amount of collateral to secure the transaction. This Bitcoin is then represented on Core as coreBTC, maintaining a strict **1:1 peg** to uphold value consistency between the locked Bitcoin and the issued coreBTC. -Relayers play a crucial role in monitoring these Bitcoin transactions and validating them to the Core Chain. Once validated, the transaction details are sent to the coreBTC smart contract, which mints an equivalent amount of coreBTC and credits it to the user's wallet. This coreBTC can then be used across various DeFi platforms within the Core Chain ecosystem, enabling Bitcoin holders to engage in lending, borrowing, trading, and other financial activities without actually spending or risking their original Bitcoin holdings. +Relayers play a crucial role in monitoring these Bitcoin transactions and validating them on Core. Once validated, the transaction details are sent to the coreBTC smart contract, which mints an equivalent amount of coreBTC and credits it to the user's wallet. This coreBTC can then be used across various DeFi platforms within the Core ecosystem, enabling Bitcoin holders to engage in lending, borrowing, trading, and other financial activities without actually spending or risking their original Bitcoin holdings. -Redemption of coreBTC for the original Bitcoin involves the user initiating a burn process where the coreBTC is destroyed, and the corresponding Bitcoin is unlocked and returned from the Locker to the user’s specified address. The entire system is safeguarded by rigorous collateral management and liquidation protocols that ensure Lockers maintain sufficient collateral against the Bitcoin they hold. Additionally, slashing mechanisms are in place to penalize any fraudulent activities by Lockers, protecting the integrity and trustworthiness of coreBTC within the Core Chain ecosystem. This design not only enhances the liquidity and utility of Bitcoin but also maintains its core properties of decentralization and security. +Redemption of coreBTC for the original Bitcoin involves the user initiating a burn process where the coreBTC is destroyed, and the corresponding Bitcoin is unlocked and returned from the Locker to the user’s specified address. The entire system is safeguarded by rigorous collateral management and liquidation protocols, so Lockers maintain sufficient collateral against the Bitcoin they hold. Additionally, slashing mechanisms are in place to penalize any fraudulent activities by Lockers, protecting the integrity and trustworthiness of coreBTC within the Core ecosystem. This design not only enhances the liquidity and utility of Bitcoin but also maintains its core properties of decentralization and security. ## Minting and Pegging In coreBTC Locking Bitcoin and pegging it into coreBTC are crucial for maintaining the integrity and trustworthiness of the synthetic asset: - **Secure Storage:** Locked Bitcoin is stored in addresses controlled by Lockers, who are incentivized to maintain security and transparency due to their collateral obligations. -- **Collateralization:** The collateral provided by Lockers underpins the pegging process, ensuring that for every coreBTC in circulation, there is an equivalent amount of Bitcoin securely held by a Locker. +- **Collateralization:** The collateral provided by Lockers underpins the pegging process, so that for every coreBTC in circulation, there is an equivalent amount of Bitcoin securely held by a Locker. -Minting of coreBTC begins when a user locks their Bitcoin into the system. The user sends Bitcoin to a secure address controlled by a designated entity known as a Locker. This action triggers the minting process on the Core Chain. +Minting of coreBTC begins when a user locks their Bitcoin into the system. The user sends Bitcoin to a secure address controlled by a designated entity known as a Locker. This action triggers the minting process on the Core blockchain. -- **Lockers:** These are trusted nodes within the Core Chain network responsible for holding the actual Bitcoin. Each Locker must deposit a significant amount of collateral, usually in CORE tokens, to cover potential defaults or fraudulent activities. -- **Relayers:** After the Bitcoin is sent to the Locker's address, Relayers monitor these transactions. Once a transaction is confirmed, Relayers validate it and submit proof to the coreBTC smart contract on the Core Chain. -- **Smart Contract Execution:** Upon receiving the necessary proof from Relayers, the coreBTC smart contract calls the bitcoin Light Client to verify the authenticity and finality of the relevant bitcoin transaction, and then mints an equivalent amount of coreBTC. This minted coreBTC is then issued to the user's wallet on the Core Chain, reflecting a 1:1 peg with the locked Bitcoin. +- **Lockers:** These are nodes within the Core network responsible for holding the actual Bitcoin. Each Locker must deposit a significant amount of collateral, usually in CORE tokens, to cover potential defaults or fraudulent activities. +- **Relayers:** After the Bitcoin is sent to the Locker's address, Relayers monitor these transactions. Once a transaction is confirmed, Relayers validate it and submit proof to the coreBTC smart contract on the Core blockchain. +- **Smart Contract Execution:** Upon receiving the necessary proof from Relayers, the coreBTC smart contract calls the bitcoin Light Client to verify the authenticity and finality of the relevant bitcoin transaction, and then mints an equivalent amount of coreBTC. This minted coreBTC is then issued to the user's wallet on the Core blockchain, reflecting a 1:1 peg with the locked Bitcoin. ![pegging-in-coreBTC](../../../../static/img/coreBTC/pegin-corebtc.png) @@ -63,27 +63,27 @@ Minting of coreBTC begins when a user locks their Bitcoin into the system. The u Redemption, or pegging out, involves reversing the minting process: - **Burning coreBTC:** Users initiate the redemption process by sending a request to the coreBTC smart contract to burn a specified amount of coreBTC, indicating the Bitcoin address where they wish to receive their Bitcoin. -- **Unlocking Bitcoin:** Upon successful burning of the coreBTC, the smart contract signals the Locker to release the corresponding amount of Bitcoin. The Locker then sends this Bitcoin to the user's specified address, completing the pegging out process. Once the bitcoin transaction is confirmed, the Locker transmits it to Core Chain where it is finally verified by the bitcoin Light Client +- **Unlocking Bitcoin:** Upon successful burning of the coreBTC, the smart contract signals the Locker to release the corresponding amount of Bitcoin. The Locker then sends this Bitcoin to the user's specified address, completing the pegging out process. Once the bitcoin transaction is confirmed, the Locker transmits it to Core where it is finally verified by the bitcoin Light Client ![pegging-out-coreBTC](../../../../static/img/coreBTC/pegout-corebtc.png) ## Liquidation Process -The liquidation process is designed to protect the system from defaults and ensure that the backing of coreBTC remains secure: +The liquidation process is designed to protect the system from defaults and safeguard that the backing of coreBTC remains secure: - **Monitoring Collateral Ratios:** Liquidators continuously monitor the value of the Bitcoin held by Lockers relative to the issued coreBTC. - **Triggering Liquidation:** If the market value of the locked Bitcoin drops significantly, or if a Locker fails to maintain the required collateral ratio, liquidators may initiate the sale of the Locker's collateral to cover potential losses. -- **Mechanism for Liquidation:** Liquidation is conducted through the Core Chain platform, where the insufficient collateral is sold off to maintain the necessary backing for coreBTC. During the process, the Liquidators use coreBTC to buy the collateralized CORE tokens at a discounted price, and the coreBTC is burned. This pushes the collateral ratio up and restores the Locker to a healthy condition. When the coreBTC is burned its supply is reduced and it becomes more scarce, thereby freeing the Locker to take ownership of a quantity of the underlying bitcoin equivalent to the value of the eliminated coreBTC. The Locker is then rebalanced in accordance with the collateral requirements; if the original user who sent bitcoin to that Locker’s address wants their bitcoin back, they can choose any Locker to get it from. Redemption of coreBTC for bitcoin occurs at a systemic level, it’s not a relationship between one user and one Locker. +- **Mechanism for Liquidation:** Liquidation is conducted through on Core, where the insufficient collateral is sold off to maintain the necessary backing for coreBTC. During the process, the Liquidators use coreBTC to buy the collateralized CORE tokens at a discounted price, and the coreBTC is burned. This pushes the collateral ratio up and restores the Locker to a healthy condition. When the coreBTC is burned its supply is reduced and it becomes more scarce, thereby freeing the Locker to take ownership of a quantity of the underlying bitcoin equivalent to the value of the eliminated coreBTC. The Locker is then rebalanced in accordance with the collateral requirements; if the original user who sent bitcoin to that Locker’s address wants their bitcoin back, they can choose any Locker to get it from. Redemption of coreBTC for bitcoin occurs at a systemic level, it’s not a relationship between one user and one Locker. ![liquidation](../../../../static/img/coreBTC/liquidation-process.png) ## Slashing Process -On the Core Chain, the concept of slashing is crucial to maintaining the integrity and security of coreBTC transactions. Slashing is a punitive measure used to penalize Lockers for misconduct or failure to adhere to the established protocols. There are two primary scenarios where slashing may occur, each designed to protect the system and its users from potential fraud and malfeasance: +On the Core blockchain, the concept of slashing is crucial to maintaining the integrity and security of coreBTC transactions. Slashing is a punitive measure used to penalize Lockers for misconduct or failure to adhere to the established protocols. There are two primary scenarios where slashing may occur, each designed to protect the system and its users from potential fraud and malfeasance: ### 1. **Unauthorized Movement of Locked Bitcoin** In this case, slashing occurs if a Locker moves locked Bitcoin without receiving a corresponding burn request from a coreBTC holder. This scenario is considered a serious breach as it directly threatens the 1:1 pegging and trust that coreBTC holders have in the system's ability to securely back their tokens with real Bitcoin. * **Trigger:** The slashing process is triggered when a Locker transfers any locked Bitcoin to an unauthorized address or for any unauthorized purpose that does not correspond to a legitimate and verified request to redeem coreBTC. -* **Detection and Reporting:** This misconduct can be detected through the Core Chain's monitoring systems or by other participants in the network, often referred to as Guardians, who observe and report any suspicious Locker activities. +* **Detection and Reporting:** This misconduct can be detected through Core's monitoring systems or by other participants in the network, often referred to as Guardians, who observe and report any suspicious Locker activities. * **Consequence:** Upon confirmation of the unauthorized transfer, a portion of the Locker’s collateral is seized and used to compensate for the discrepancy created in the system. This not only penalizes the Locker but also helps to re-establish the balance of backed and circulating coreBTC, maintaining the system's integrity. @@ -94,9 +94,9 @@ This scenario occurs when a coreBTC holder decides to redeem their tokens for th * **Trigger:** A coreBTC holder submits a burn transaction, effectively destroying a certain amount of coreBTC with the expectation of receiving an equivalent amount of Bitcoin from a Locker. If the Locker does not process this transaction and release the Bitcoin as required, slashing is triggered. * **Detection and Response:** Similar to the first case, this failure can be detected by network monitors or reported by users. Upon verification that the Locker has not fulfilled the redemption request in time, the system initiates a slashing protocol. -* **Consequence:** A significant portion of the Locker's collateral is slashed as a punitive and compensatory measure. The slashed collateral is typically used to ensure that the user receives their Bitcoin, preserving trust in the coreBTC system and compensating for any potential losses incurred by the delay or failure. +* **Consequence:** A significant portion of the Locker's collateral is slashed as a punitive and compensatory measure. The slashed collateral is typically used to certify that the user receives their Bitcoin, preserving trust in the coreBTC system and compensating for any potential losses incurred by the delay or failure. ![slashing](../../../../static/img/coreBTC/slashing-2.png) ## Conclusion -The design of coreBTC in Core Chain presents a robust framework for integrating Bitcoin into DeFi applications while maintaining its fundamental characteristics of security and decentralization. Through a well-structured system of minting, redemption, liquidation, and slashing, all backed by strict collateral requirements, coreBTC ensures that Bitcoin's value can be leveraged in new and innovative ways without compromising the trust and security that define it. \ No newline at end of file +The design of coreBTC on Core presents a robust framework for integrating Bitcoin into DeFi applications while maintaining its fundamental characteristics of security and decentralization. Through a well-structured system of minting, redemption, liquidation, and slashing, all backed by strict collateral requirements, coreBTC enables Bitcoin's value to be leveraged in new and innovative ways without compromising the trust and security that define it. diff --git a/docs/Learn/products/coreBTC/how-to-guides.md b/docs/Learn/products/coreBTC/how-to-guides.md index b5cacc0374..c0d1b730dc 100644 --- a/docs/Learn/products/coreBTC/how-to-guides.md +++ b/docs/Learn/products/coreBTC/how-to-guides.md @@ -7,19 +7,19 @@ sidebar_position: 2 # Wrap & Unwrap coreBTC ## Introduction -As a native wrapped BTC on Core, coreBTC maintains a 1:1 peg with BTC through a secured mechanism, powered by a network of decentralized, permissionless participants. This guide covers the essential steps for minting (wrapping) and redeeming (unwrapping) coreBTC, facilitating Bitcoin integration into decentralized finance (DeFi). +As a native wrapped Bitcoin on Core, coreBTC maintains a 1:1 peg with Bitcoin through a secured mechanism, powered by a network of decentralized, permissionless participants. This guide covers the essential steps for minting (wrapping) and redeeming (unwrapping) coreBTC, facilitating Bitcoin integration into decentralized finance (DeFi). ![core-guide-1](../../../../static/img/coreBTC/core-guides-1.png) ## Getting Started: Prerequisites -1. [Unisat Wallet Browser Extension](https://unisat.io/): Required for managing your BTC. Note that, Unisat currently has only desktop and Android wallet app. +1. [Unisat Wallet Browser Extension](https://unisat.io/): Required for managing your Bitcoin. Note that, Unisat currently has only desktop and Android wallet app. 2. [MetaMask](https://metamask.io/): Necessary for interacting with the Core blockchain. ## Minting coreBTC 1. **coreBTC Website:** Go to https://bridge.coredao.org/coreBTC 2. **Specify Conversion:** Indicate you're converting from Bitcoin (BTC) to coreBTC. 3. **Connect Unisat Wallet:** Select Connect Unisat Wallet to link your Bitcoin wallet. -4. **Enter BTC Amount:** Input the amount of BTC you wish to convert to coreBTC. +4. **Enter Bitcoin Amount:** Input the amount of Bitcoin you wish to convert to coreBTC. 5. **Receiving Core Address:** Enter your Core blockchain wallet address. 6. **Adjust Fee Rate:** The default fees are set according to the current market rates. For faster transaction processing, it's essential to adjust the gas fee appropriately. Keep in mind that setting a higher fee can significantly speed up the transaction. Conversely, if the fee is set too low, the transaction may experience considerable delays in being mined, potentially taking days or even longer to process. It's crucial to find a balance that aligns with your urgency and the network's current demand. 7. **Verification:** Double-check all details, including amounts, fees, and wallet addresses. @@ -28,11 +28,11 @@ As a native wrapped BTC on Core, coreBTC maintains a 1:1 peg with BTC through a ![core-guide-2](../../../../static/img/coreBTC/core-guides-2.png) -## Redeeming BTC from coreBTC +## Redeeming Bitcoin from coreBTC 1. **coreBTC Website:** Go to https://bridge.coredao.org/coreBTC 2. **Specify Conversion:** Choose the conversion from coreBTC to Bitcoin (BTC). 3. **Connect EVM Wallet:** Click on Connect EVM Wallet to link your wallet. -4. **Enter coreBTC Amount:** Specify the amount of coreBTC to be redeemed for BTC. +4. **Enter coreBTC Amount:** Specify the amount of coreBTC to be redeemed for Bitcoin. 5. **Receiving Bitcoin Address:** Enter the destination Bitcoin wallet address. 6. **Verification:** Double-check all details, including amounts, fees, and wallet addresses. 7. **Burn:** Click on 'Burn coreBTC' to start the redemption process. @@ -45,9 +45,9 @@ As a native wrapped BTC on Core, coreBTC maintains a 1:1 peg with BTC through a 1. **Pending Transactions:** View and obtain details on ongoing transactions. 2. **Completed Transactions:** Check the history and specifics of finalized transactions. -3. **Locker States:** Explore available lockers, including their fees, collateral, minting capacity, and health factor. Lockers are crucial for securing BTC and are subject to penalties or liquidation based on behavior and collateral status. +3. **Locker States:** Explore available lockers, including their fees, collateral, minting capacity, and health factor. Lockers are crucial for securing Bitcoin and are subject to penalties or liquidation based on behavior and collateral status. 4. **Relayer States:** Review the list of relayers responsible for data transmission and verification between Bitcoin and Core blockchain. :::note Refer to [coreBTC FAQs section](../../../FAQs/coreBTC-faqs.md) for any queries that you may have. -::: \ No newline at end of file +::: diff --git a/docs/Learn/products/coreBTC/overview.md b/docs/Learn/products/coreBTC/overview.md index c683bd4940..28c5e3b534 100644 --- a/docs/Learn/products/coreBTC/overview.md +++ b/docs/Learn/products/coreBTC/overview.md @@ -8,16 +8,16 @@ sidebar_position: 2 --- ## What is coreBTC? -Core-native wrapped bitcoin (coreBTC) serves as a synthetic representation of Bitcoin on the Core Chain, designed to integrate Bitcoin into the decentralized finance (DeFi) landscape of Core Chain. By locking Bitcoin and issuing an equivalent amount of coreBTC, it ensures a **1:1** value correlation, enabling Bitcoin holders to engage securely in DeFi activities without directly using their Bitcoin holdings. +Core-native wrapped bitcoin (coreBTC) serves as a synthetic representation of Bitcoin on the Core blockchain, designed to integrate Bitcoin into the decentralized finance (DeFi) landscape of Core. By locking Bitcoin and issuing an equivalent amount of coreBTC, it upholds a **1:1** value correlation, enabling Bitcoin holders to engage securely in DeFi activities without directly using their Bitcoin holdings. ## Importance in the Core Ecosystem -coreBTC is central to developing a vibrant Bitcoin DeFi (BTCFi) ecosystem within Core Chain. It unlocks the significant value stored in Bitcoin by making it usable in smart contracts and other blockchain-based financial services, potentially involving nearly **$1 trillion** worth of Bitcoin. This facilitates greater liquidity and usability of Bitcoin, enhancing its overall ecosystem. +coreBTC is central to developing a vibrant Bitcoin DeFi (BTCfi) ecosystem within Core. It unlocks the significant value stored in Bitcoin by making it usable in smart contracts and other blockchain-based financial services, potentially involving nearly **$1 trillion** worth of Bitcoin. This facilitates greater liquidity and usability of Bitcoin, enhancing its overall ecosystem. ## Advantages of coreBTC -- **Enhanced Liquidity and Usability:** coreBTC enables Bitcoin holders to participate in the DeFi ecosystem on the Core Chain, providing liquidity and increased utility for their Bitcoin holdings. +- **Enhanced Liquidity and Usability:** coreBTC enables Bitcoin holders to participate in the DeFi ecosystem on the Core blockchain, providing liquidity and increased utility for their Bitcoin holdings. -- **Decentralization and Security:** Unlike traditional wrapped Bitcoin solutions, coreBTC uses a decentralized network of Lockers, ensuring that the process maintains the foundational blockchain principles of decentralization and security. +- **Decentralization and Security:** Unlike traditional wrapped Bitcoin solutions, coreBTC uses a decentralized network of Lockers, so that the process maintains the foundational blockchain principles of decentralization and security. - **Decentralized Operations:** The coreBTC system allows Bitcoin to be locked and wrapped without relying on a central authority, maintaining the decentralization that is central to blockchain technology. @@ -25,35 +25,35 @@ coreBTC is central to developing a vibrant Bitcoin DeFi (BTCFi) ecosystem within - **Maintains Bitcoin’s Integrity:** By not requiring Bitcoin holders to transfer their actual bitcoins to a different blockchain or alter them in any significant way, coreBTC preserves the integrity and value of the original Bitcoin holdings. -- **Long-term Incentives:** The design of the coreBTC system includes long-term incentives for all participants, including Lockers and Relayers, ensuring the sustainability and stability of the service. +- **Long-term Incentives:** The design of the coreBTC system includes long-term incentives for all participants, including Lockers and Relayers, designed for the sustainability and stability of the service. -- **Collateralized and Insured:** The collateral requirements for Lockers act as an insurance mechanism that protects against fraudulent activities and ensures the fidelity of the wrapping process. +- **Collateralized and Insured:** The collateral requirements for Lockers act as an insurance mechanism that protects against fraudulent activities and uphold the fidelity of the wrapping process. -- **Integration with Core Chain's DeFi:** coreBTC can be seamlessly used within the Core Chain’s DeFi applications, such as lending, borrowing, and trading, similar to how other stablecoins and synthetic assets are used in DeFi platforms. +- **Integration with Core DeFi:** coreBTC can be seamlessly used within Core’s DeFi applications, such as lending, borrowing, and trading, similar to how other stablecoins and synthetic assets are used in DeFi platforms. - **Support for Bitcoin's Value Proposition:** coreBTC leverages Bitcoin's reputation and market strength, enhancing its functionality while continuing to support its value proposition as a store of value. -- **Scalability:** By providing a mechanism for Bitcoin to be used on Core Chain, coreBTC helps scale the usability of Bitcoin without requiring changes to its underlying protocol, preserving its original attributes while expanding its use cases. +- **Scalability:** By providing a mechanism for Bitcoin to be used on Core, coreBTC helps scale the usability of Bitcoin without requiring changes to its underlying protocol, preserving its original attributes while expanding its use cases. ## Why Opt for coreBTC? -Opting for coreBTC offers several compelling benefits, making it an attractive choice for Bitcoin holders and users in the Core Chain ecosystem. Here’s a bulleted list outlining why one might choose coreBTC: +Opting for coreBTC offers several compelling benefits, making it an attractive choice for Bitcoin holders and users in the Core ecosystem. Here’s a bulleted list outlining why one might choose coreBTC: -- **Seamless DeFi Integration:** coreBTC allows Bitcoin holders to seamlessly engage with DeFi applications on the Core Chain, expanding the utility of their Bitcoin without converting it into other cryptocurrencies. +- **Seamless DeFi Integration:** coreBTC allows Bitcoin holders to seamlessly engage with DeFi applications on the Core blockchain, expanding the utility of their Bitcoin without converting it into other cryptocurrencies. - **Preservation of Bitcoin’s Properties:** By using coreBTC, users can enjoy the benefits of Bitcoin’s fundamental characteristics—such as its robust security and scarcity—while participating in a diverse range of blockchain activities. -- **Decentralized and Secure:** The decentralized nature of the coreBTC issuance and management system ensures that users are not reliant on any single central party, maintaining the decentralization ethos of blockchain technology. +- **Decentralized and Secure:** The decentralized nature of the coreBTC issuance and management system is designed so that users are not reliant on any single central party, maintaining the decentralization ethos of blockchain technology. -- **Enhanced Liquidity:** coreBTC provides Bitcoin holders with increased liquidity options, allowing them to leverage their holdings in various financial transactions and smart contracts within the Core Chain ecosystem. +- **Enhanced Liquidity:** coreBTC provides Bitcoin holders with increased liquidity options, allowing them to leverage their holdings in various financial transactions and smart contracts within the Core ecosystem. - **No Custody Risk:** Users retain full control over their Bitcoin until they decide to lock it up for coreBTC, reducing the custody risk typically associated with handing over assets to a third party. - **Fiat Peg Avoidance:** Unlike stablecoins pegged to fiat currencies, coreBTC is pegged directly to Bitcoin, avoiding issues related to fiat currency volatility and inflation. -- **Reward Opportunities:** Users can earn additional rewards in CORE tokens by participating in the staking and security of the Core Chain, thereby increasing their potential investment returns. +- **Reward Opportunities:** Users can earn additional rewards in CORE tokens by participating in the staking and security of the Core blockchain, thereby increasing their potential investment returns. -- **Future-Proof Investment:** As Core Chain continues to develop and expand its offerings, holding coreBTC could provide strategic advantages in accessing new services and features as they become available on the platform. +- **Future-Proof Investment:** As Core continues to develop and expand its offerings, holding coreBTC could provide strategic advantages in accessing new services and features as they become available on the platform. Choosing coreBTC allows users to leverage the security and value of Bitcoin within a dynamic and growing DeFi ecosystem, aligning traditional Bitcoin investment with modern blockchain technology opportunities. @@ -63,4 +63,4 @@ Choosing coreBTC allows users to leverage the security and value of Bitcoin with - **Redemption Process:** Users can burn their coreBTC to retrieve their locked Bitcoin. The coreBTC smart contract verifies the burn and instructs the Locker to send the equivalent Bitcoin to the user’s specified address. ## Conclusion -coreBTC is a transformative component of the Core Chain ecosystem, enhancing the utility of Bitcoin by enabling its active participation in DeFi while adhering to the principles of decentralization and security. Through its intricate system of Lockers, Relayers, and smart contracts, coreBTC ensures that Bitcoin can be safely used and transacted within the Core Chain ecosystem, broadening its appeal and functional utility. \ No newline at end of file +coreBTC is an important component of the Core ecosystem, enhancing the utility of Bitcoin by enabling its active participation in DeFi while adhering to the principles of decentralization and security. Through its intricate system of Lockers, Relayers, and smart contracts, coreBTC enables Bitcoin to be safely used and transacted within the Core ecosystem, broadening its appeal and functional utility. diff --git a/docs/Learn/products/stCore/design.md b/docs/Learn/products/stCore/design.md index 181d4504ee..b147dc0c5f 100644 --- a/docs/Learn/products/stCore/design.md +++ b/docs/Learn/products/stCore/design.md @@ -10,7 +10,7 @@ sidebar_position: 2 stCORE is designed to enhance the utility of the CORE token and simplify the staking process. This initiative allows token holders to maximize their asset potential with greater flexibility and efficiency. ## Design Principles -The primary design principles of liquid staking through stCORE on the Chain Chain are as follows: +The primary design principles of liquid staking through stCORE on the Core are as follows: * Simple and least/no changes to existing blockchain protocols. * Decentralized and won’t bring security concerns to the network. diff --git a/docs/Learn/products/stCore/overview.md b/docs/Learn/products/stCore/overview.md index 934d567c38..b96d35495f 100644 --- a/docs/Learn/products/stCore/overview.md +++ b/docs/Learn/products/stCore/overview.md @@ -5,16 +5,16 @@ sidebar_position: 2 --- -# stCORE - Liquid Staking on Core Chain +# stCORE - Liquid Staking on Core --- -Core Blockchain offers several innovative solutions like Non-Custodial BTC Staking, coreBTC, and Liquid staking in the form of stCORE for users to make the most of their CORE holdings. Liquid staking is a mechanism that allows CORE holders to earn Core Consensus rewards while maintaining the liquidity of their assets. +Core Blockchain offers several innovative solutions like Non-Custodial Bitcoin Staking, coreBTC, and Liquid staking in the form of stCORE for users to make the most of their CORE holdings. Liquid staking is a mechanism that allows CORE holders to earn Core Consensus rewards while maintaining the liquidity of their assets. ## What is Liquidity Staking? Staking CORE helps secure the network but prevents token holders from participating in different DeFi protocols as their tokens cannot be used for other purposes while staked. Minting a new Liquidity Staking Token (stCORE) unlocks a world of possibilities, allowing token holders to utilize their tokens in different interactions while continuing to earn the staking rewards. Essentially, liquid staking unlocks liquidity for staked tokens, building upon existing staking systems. ## Primary Purpose of stCORE -The primary purposes of introducing liquid staking via stCORE on Core Chain are: +The primary purposes of introducing liquid staking via stCORE on Core are: * Improve user experience * Bring more utilities of CORE token @@ -22,23 +22,23 @@ The primary purposes of introducing liquid staking via stCORE on Core Chain are: For the moment users can stake CORE tokens to individual validators directly through https://stake.coredao.org. However, there are two drawbacks raised by the community * There is no auto-compounding feature, and users need to claim rewards and restake them to validators manually everyday. -* The hash stakes from BTC mining pools are less fungible and not as stable as CORE stakes, which causes affected validators’ APR to change more dramatically. +* The hash stakes from Bitcoin mining pools are less fungible and not as stable as CORE stakes, which causes affected validators’ APR to change more dramatically. On the other hand, we are also seeking ways to add more utilities to the CORE token itself. By introducing stCORE, we expect the CORE token itself to also benefit. E.g. to provide CORE/stCORE liquidity pairs in decentralized exchanges. -## Steps involved in Liquid Staking on Core Chain +## Steps involved in Liquid Staking on Core 1. **Staking Setup:** To participate in Core liquid staking, users need to convert their CORE holdings into a staked CORE (stCORE) format. This involves locking up a certain amount of CORE and depositing it into the stCORE staking contract, which will automatically delegate the CORE to selected validators on the chain. -2. **Issuance of stCORE:** In return for staking CORE, users receive liquid staking tokens,, i.e., stCORE. These tokens represent their staked CORE holdings and can be freely traded or transferred while still earning staking rewards. +2. **Issuance of stCORE:** In return for staking CORE, users receive liquid staking tokens (stCORE). These tokens represent their staked CORE holdings and can be freely traded or transferred while still earning staking rewards. 3. **Staking Rewards:** Users can earn annualized return on holding stCORE which is the projected yearly increase in its conversion ratio with CORE. This means that users can exchange for more CORE when they burn their stCORE. -## Benefits of Liquid Staking on Core Chain -1. **Liquidity:** One of the major advantages of liquid staking on Core Chain is that it allows users to maintain the liquidity of their CORE holdings. Unlike the traditional staking mechanisms offered by other platforms, where funds are locked for a specific period, Core liquid staking provides flexibility by enabling users to trade or transfer stCORE tokens without waiting for the staking period to end. In the CORE staking model, anyone can unstake their CORE anytime, so they don't really have to wait for staking period to end. Our CORE staking model is "stake & earn", "unstake & stop earning". So it's locked if you want the earning. +## Benefits of Liquid Staking on Core +1. **Liquidity:** One of the major advantages of liquid staking on Core is that it allows users to maintain the liquidity of their CORE holdings. Unlike the traditional staking mechanisms offered by other platforms, where funds are locked for a specific period, Core liquid staking provides flexibility by enabling users to trade or transfer stCORE tokens without waiting for the staking period to end. In the CORE staking model, anyone can unstake their CORE anytime, so they don't really have to wait for staking period to end. Our CORE staking model is "stake & earn", "unstake & stop earning". So it's locked if you want the earning. 2. **Earning Potential:** Core liquid staking allows users to earn rewards on their staked CORE while still participating in the broader Core ecosystem. This presents an opportunity to benefit from both staking rewards and potential price appreciation of Core. ## Conclusion -Liquid staking on Core Chain in the form of stCore provides an innovative and impressive option for CORE holders to maximize their returns while maintaining the liquidity of their assets. By following the necessary steps and being mindful of the associated risks, users can benefit from staking rewards while actively participating in the Core ecosystem. As the Core network evolves and improves with the each upgrade, Core liquid staking is likely to become an increasingly popular choice for CORE holders seeking to optimize their investment strategies. \ No newline at end of file +Liquid staking on Core in the form of stCore provides an innovative and impressive option for CORE holders to maximize their returns while maintaining the liquidity of their assets. By following the necessary steps and being mindful of the associated risks, users can benefit from staking rewards while actively participating in the Core ecosystem. As the Core network evolves and improves with the each upgrade, Core liquid staking is likely to become an increasingly popular choice for CORE holders seeking to optimize their investment strategies. diff --git a/docs/Learn/products/stCore/stCore-on-Core.md b/docs/Learn/products/stCore/stCore-on-Core.md index 7adf9e4ea9..ec7396fcbd 100644 --- a/docs/Learn/products/stCore/stCore-on-Core.md +++ b/docs/Learn/products/stCore/stCore-on-Core.md @@ -12,7 +12,7 @@ The Liquid Staking with stCORE enhances the utility of the CORE token while simp ## Getting Started: Prerequisites -1. **Ensure CORE Token Availability:** Verify that your Core chain wallet contains the necessary amount of CORE tokens for staking. +1. **Check CORE Token Availability:** Verify that your Core wallet contains the necessary amount of CORE tokens for staking. 2. **Access the Staking Platform:** [Visit Core Liquid Stacking Platform](https://stake.coredao.org/stcore) 3. **Wallet Connection:** Connect your wallet to the platform. @@ -45,4 +45,4 @@ The Liquid Staking with stCORE enhances the utility of the CORE token while simp 6. **Withdrawal:** Post-unlocking, click '_Withdraw_' to transfer CORE to your wallet. -![minitng-stCORE](../../../../static/img/stCore/redeem-stcore.png) \ No newline at end of file +![minitng-stCORE](../../../../static/img/stCore/redeem-stcore.png) diff --git a/docs/Node/Full-Node/on-testnet.md b/docs/Node/Full-Node/on-testnet.md index d0f7b02095..87f4c0d9db 100644 --- a/docs/Node/Full-Node/on-testnet.md +++ b/docs/Node/Full-Node/on-testnet.md @@ -41,7 +41,7 @@ For full nodes on **Core testnet**, we recommend the following minimal hardware 1\. We recommend using the [core-chain](https://github.com/coredao-org/core-chain) GitHub repository to directly build and run your full node, running your full node directly from our blockchain codebase. Instructions for building the source code can be found in the repository's [README](https://github.com/coredao-org/core-chain#building-the-source). -2\. Download the latest node binary for Core Testnet from Core Chain GitHub [releases repo](https://github.com/coredao-org/core-chain/releases/latest). The node binary includes the relevant testnet configuration files. Download the latest snapshot for testnet from [here](https://github.com/coredao-org/core-snapshots?tab=readme-ov-file#testnet). _Note that the recommended method for syncing testnet node is to sync from genesis block_. +2\. Download the latest node binary for Core Testnet from Core's GitHub [releases repo](https://github.com/coredao-org/core-chain/releases/latest). The node binary includes the relevant testnet configuration files. Download the latest snapshot for testnet from [here](https://github.com/coredao-org/core-snapshots?tab=readme-ov-file#testnet). _Note that the recommended method for syncing testnet node is to sync from genesis block_. 3\. Write the genesis state locally by executing the following command from your project directory: diff --git a/docs/Node/config/archive-node-config.md b/docs/Node/config/archive-node-config.md index 1cc7e75e46..a5d3266f26 100644 --- a/docs/Node/config/archive-node-config.md +++ b/docs/Node/config/archive-node-config.md @@ -7,7 +7,7 @@ sidebar_position: 2 # Archive Node Configuration --- -Archive nodes in the Core network play a crucial role in maintaining the complete historical state of the network. These nodes are specialized versions of full nodes with enhanced capabilities tailored to storing and providing access to the entire history of all transactions and states since the inception of the Core Chain. +Archive nodes in the Core network play a crucial role in maintaining the complete historical state of the network. These nodes are specialized versions of full nodes with enhanced capabilities tailored to storing and providing access to the entire history of all transactions and states since the inception of the Core. ## System Requirements @@ -49,7 +49,7 @@ For Archive Nodes on **Core Blockchain Mainnet**, we recommend the following min ## Running Core Archive Node 1\. We recommend using the [core-chain](https://github.com/coredao-org/core-chain) GitHub repository to directly build and run your full node, running your full node directly from our blockchain codebase. Instructions for building the source code can be found in the repository's [README](https://github.com/coredao-org/core-chain#building-the-source). -2\. Download the latest node binary for from Core Chain GitHub [releases repo](https://github.com/coredao-org/core-chain/releases/latest) and the latest snapshot for archive node from Core's [Snapshot Repository](https://github.com/coredao-org/core-snapshots?tab=readme-ov-file#archive-full). The node binary includes the relevant mainnet and testnet configuration files. +2\. Download the latest node binary for from Core's GitHub [releases repo](https://github.com/coredao-org/core-chain/releases/latest) and the latest snapshot for archive node from Core's [Snapshot Repository](https://github.com/coredao-org/core-snapshots?tab=readme-ov-file#archive-full). The node binary includes the relevant mainnet and testnet configuration files. 3\. Write the genesis state locally by executing the following command from your project directory: diff --git a/docs/Node/config/snapshot-node-config.md b/docs/Node/config/snapshot-node-config.md index 8c4572c23b..4a773cde7f 100644 --- a/docs/Node/config/snapshot-node-config.md +++ b/docs/Node/config/snapshot-node-config.md @@ -44,13 +44,13 @@ For Sanpshot Nodes on **Core Blockchain Mainnet**, we recommend the following mi | Internet Speed | A broadband Internet connection with upload/download speeds of 5Mbps | -## Core Chain Snapshots +## Core Network Snapshots You can get the latest snapshots from [here](https://github.com/coredao-org/core-snapshots). -## Syncing Nodes Using Snapshots on Core Chain Network +## Syncing Nodes Using Snapshots on Core Network -On Core Chain network, you can sync your node to the latest state by several ways. In this document, we guide you through the syncing process of nodes on the Core network using the snapshots. +On Core network, you can sync your node to the latest state by several ways. In this document, we guide you through the syncing process of nodes on the Core network using the snapshots. ### Download Pre-Build Binaries Download the pre-build binaries from the [release page](https://github.com/coredao-org/core-chain/releases/latest) or follow the instructions below diff --git a/docs/Node/config/validator-node-config.md b/docs/Node/config/validator-node-config.md index 9ae0498526..6b59395e96 100644 --- a/docs/Node/config/validator-node-config.md +++ b/docs/Node/config/validator-node-config.md @@ -6,7 +6,7 @@ sidebar_position: 2 # Validator Node Configuration --- -Validators are crucial for securing the network by producing blocks and validating transactions within the Core Chain’s Satoshi Plus consensus framework. +Validators are crucial for securing the network by producing blocks and validating transactions within the Core’s Satoshi Plus consensus framework. ## System Requirements diff --git a/docs/Node/overview.md b/docs/Node/overview.md index ff8ef1b1f5..9261dc10c1 100644 --- a/docs/Node/overview.md +++ b/docs/Node/overview.md @@ -1,22 +1,22 @@ --- -sidebar_label: Overview of Nodes Running on Core Chain +sidebar_label: Overview of Nodes Running on Core hide_table_of_contents: false sidebar_position: 2 --- -# Nodes in the Core Chain Ecosystem +# Nodes in the Core Ecosystem --- -In the Core Chain ecosystem, the robustness, security, and decentralization of the network are upheld by the nodes operated by community participants. These nodes facilitate various functions, from transaction validation to block propagation, ensuring the network's overall health and efficiency. Depending on your goals, there are different node configurations possible on the Core network. If you haven't already started the Core Chain node, please review the documentation for [Running a Local Validator Node](./validator/running-validator.md) before proceeding with different configurations. +In the Core ecosystem, the robustness, security, and decentralization of the network are upheld by the nodes operated by community participants. These nodes facilitate various functions, from transaction validation to block propagation, ensuring the network's overall health and efficiency. Depending on your goals, there are different node configurations possible on the Core network. If you haven't already started any node on Core network yet, please review the documentation for [Running a Local Validator Node](./validator/running-validator.md) before proceeding with different configurations. * If you want to be part of the governance of the Core Nework: * [Start a Validator Node](./config/validator-node-config.md) -* If you want to run a Core Chain node for private use: +* If you want to run a node on Core network for private use: * [Start a Normal Full Node](./Full-Node/on-mainnet.md) -* If you want to send transactions or query the chain directly from your own Core Chain node: +* If you want to send transactions or query the chain directly from your own Core blockchain node: * [Start an RPC Node](./config/rpc-node-config.md) @@ -28,7 +28,7 @@ In the Core Chain ecosystem, the robustness, security, and decentralization of t * [Start a Snapshot Node](./config/snapshot-node-config.md) -## Types of Nodes on the Core Chain Network +## Types of Nodes on the Core Network 1. **Validators:** * **Role:** Validators are crucial for securing the network by producing blocks and validating transactions within the Core Chain’s consensus framework. * **Requirements:** Validators need to stake minimum amount of **10,000 CORE tokens** to participate, aligning their financial incentives with the network's performance and security. @@ -59,4 +59,4 @@ In the Core Chain ecosystem, the robustness, security, and decentralization of t * **Snapshot Nodes** aid in efficient network scaling and faster node synchronization. ## Conclusion -The diverse roles of nodes in the Core Chain ecosystem collectively ensure the blockchain is secure, efficient, accessible, and robust. Validators, Full Nodes, and Archive Nodes form the backbone of the network's security and data integrity. At the same time, RPC Nodes, and Snapshot Nodes provide flexibility, accessibility, and scalability. This multi-faceted node architecture supports a wide range of operations from transaction processing to complex dApp interactions and historical data analysis. \ No newline at end of file +The diverse roles of nodes in the Core ecosystem collectively ensure the blockchain is secure, efficient, accessible, and robust. Validators, Full Nodes, and Archive Nodes form the backbone of the network's security and data integrity. At the same time, RPC Nodes, and Snapshot Nodes provide flexibility, accessibility, and scalability. This multi-faceted node architecture supports a wide range of operations from transaction processing to complex dApp interactions and historical data analysis. \ No newline at end of file diff --git a/docs/Node/slashing/overview.md b/docs/Node/slashing/overview.md index 00a67efb38..34d152aae5 100644 --- a/docs/Node/slashing/overview.md +++ b/docs/Node/slashing/overview.md @@ -6,7 +6,7 @@ sidebar_position: 2 # Validator Regulation -**Slashing** and **jailing** are the two basic mechanisms Core Chain uses to disincentivize validator misbehavior, and understanding how they work will go a long way towards making the incentive structure in Core Chain more comprehensible. +**Slashing** and **jailing** are the two basic mechanisms Core blockchain uses to disincentivize validator misbehavior, and understanding how they work will go a long way towards making the incentive structure in Core ecosystem more comprehensible. ## Slashing and Jailing "Slashing" refers to cutting either the rewards a validator would have received in exchange for mining blocks, or to slashing the deposit of CORE tokens that a node makes in order to become a validator in the first place. The severity of the slashing punishment is scaled up in proportion to the validator’s misbehavior. diff --git a/docs/Node/slashing/slashing-fee.md b/docs/Node/slashing/slashing-fee.md index 36ebc38496..60eb9d4ce9 100644 --- a/docs/Node/slashing/slashing-fee.md +++ b/docs/Node/slashing/slashing-fee.md @@ -10,7 +10,8 @@ sidebar_position: 2 ## Unavailability Slashing penalties are generally incurred because a node fails to successfully produce a block during its designated turn in the **round-robin block-mining** procedure as described in the [Validator Election](../validator/validator-election.md) section. -* If a validator node fails to mine **50 blocks** in a row, the CORE token rewards the validator has accrued so far are slashed completely. +* If a validator node fails to mine **50 blocks** in a row, the CORE token rewards the validator has accrued so far are slashed completely. +* If a validator node fails to mine the first **49 blocks** in a round, and then misses the last block of the same round, this will lead to slashing of the entire CORE token rewards the validator has accrued so far. * If they fail on the last **50** blocks of the round, they surrender everything they’ve earned. * If a validator fails to mine **150 blocks** in a row, they surrender their share of the daily CORE token rewards, they lose **10%** of the deposit made to become a validator, and they are jailed for **three** days, which means they aren’t eligible to be elected to the validator set. diff --git a/docs/Node/sync/snapshot-sync.md b/docs/Node/sync/snapshot-sync.md index 7ab0e471a3..3f7c4b8a08 100644 --- a/docs/Node/sync/snapshot-sync.md +++ b/docs/Node/sync/snapshot-sync.md @@ -6,7 +6,7 @@ sidebar_position: 2 # Syncing Core Nodes --- -On the Core network, you can sync your node to the latest state of the Core Chain by several ways. In this document, we guide you through the syncing process of nodes on the Core network. +On the Core network, you can sync your node to the latest state of the Core blockchain by several ways. In this document, we guide you through the syncing process of nodes on the Core network. ## Sync From Snapshot (Recommended) diff --git a/docs/Node/validator/overview.md b/docs/Node/validator/overview.md index 675a73230b..ac10affb4c 100644 --- a/docs/Node/validator/overview.md +++ b/docs/Node/validator/overview.md @@ -7,11 +7,11 @@ sidebar_position: 2 # Overview of Validators --- -In the Core Chain ecosystem, validators are crucial participants who maintain the integrity, security, and continuity of the blockchain. They are responsible for processing transactions, creating new blocks, and participating in the consensus process. This role is pivotal in ensuring that the Core Chain operates efficiently and remains decentralized. +In the Core ecosystem, validators are crucial participants who maintain the integrity, security, and continuity of the blockchain. They are responsible for processing transactions, creating new blocks, and participating in the consensus process. This role is pivotal in ensuring that the Core blockchain operates efficiently and remains decentralized. ## Who are Validators in the Core Network -In the Core Chain ecosystem, validators play a crucial role in maintaining the integrity and security of the blockchain by producing and validating new blocks. These validators engage in the Satoshi Plus consensus mechanism, which blends elements of Delegated Proof of Work (PoW) and Delegated Proof of Stake (DPoS). The validators are selected based on a hybrid scoring system that accounts for both the BTC and CORE tokens staked in their favor and the Bitcoin hash power delegated to them. This unique method ensures that the validator set represents a balanced mix of stakeholder interests and mining power, enhancing the network's security and decentralization. Validator elections occur in cycles known as epochs, with each new set of validators being chosen to manage the blockchain's operations and governance effectively. +In the Core ecosystem, validators play a crucial role in maintaining the integrity and security of the blockchain by producing and validating new blocks. These validators engage in the Satoshi Plus consensus mechanism, which blends elements of Delegated Proof of Work (PoW) and Delegated Proof of Stake (DPoS). The validators are selected based on a hybrid scoring system that accounts for both the BTC and CORE tokens staked in their favor and the Bitcoin hash power delegated to them. This unique method ensures that the validator set represents a balanced mix of stakeholder interests and mining power, enhancing the network's security and decentralization. Validator elections occur in cycles known as epochs, with each new set of validators being chosen to manage the blockchain's operations and governance effectively. ## Economics Validator's rewards come from @@ -51,9 +51,9 @@ In the Core ecosystem, the rewards are distributed to each validator, from that ::: ## Potential Risks and Penalties for Validators -In the Core Chain ecosystem, validators play a crucial role in maintaining the network's integrity and security. While this role comes with incentives like earning rewards for block validation, it also involves certain risks and potential penalties if validators fail to perform their duties adequately or engage in malicious activities. Here’s a detailed overview of the potential risks and penalties for validators in the Core Chain ecosystem: +In the Core ecosystem, validators play a crucial role in maintaining the network's integrity and security. While this role comes with incentives like earning rewards for block validation, it also involves certain risks and potential penalties if validators fail to perform their duties adequately or engage in malicious activities. Here’s a detailed overview of the potential risks and penalties for validators in the Core ecosystem: -1. **Slashing Risks:** Validators in many DPoS based systems, including Core Chain, face the risk of slashing if they act maliciously or negligently. This could involve double signing, downtime (failing to be online and perform validation duties), or any actions that compromise the network's security. Slashing involves a portion of the staked CORE tokens being destroyed or taken away, which directly impacts the validator’s financial holdings. +1. **Slashing Risks:** Validators in many DPoS based systems, including Core, face the risk of slashing if they act maliciously or negligently. This could involve double signing, downtime (failing to be online and perform validation duties), or any actions that compromise the network's security. Slashing involves a portion of the staked CORE tokens being destroyed or taken away, which directly impacts the validator’s financial holdings. 2. **Stake Lock-up and Liquidity Risk:** Validators must lock up a significant amount of CORE tokens as collateral to participate in the validation process. This stake is subject to lock-up periods during which the funds cannot be accessed, posing a liquidity risk, especially if the market conditions change dramatically. diff --git a/docs/Node/validator/rewards.md b/docs/Node/validator/rewards.md index ed0dd1a6f7..8383a9f8c5 100644 --- a/docs/Node/validator/rewards.md +++ b/docs/Node/validator/rewards.md @@ -4,10 +4,10 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Validator Rewards in the Core Chain Ecosystem +# Validator Rewards in the Core Ecosystem --- -The Core Chain ecosystem is designed to incentivize participation and secure commitment from its community through a well-structured rewards system. This system underpins the Satoshi Plus consensus mechanism, ensuring network security, stakeholder engagement, and alignment of interests among all participants. The rewards system is fundamental in encouraging the community to partake actively in mining, staking, and governance, thereby enhancing the overall health and growth of the ecosystem. +The Core ecosystem is designed to incentivize participation and secure commitment from its community through a well-structured rewards system. This system underpins the Satoshi Plus consensus mechanism, ensuring network security, stakeholder engagement, and alignment of interests among all participants. The rewards system is fundamental in encouraging the community to partake actively in mining, staking, and governance, thereby enhancing the overall health and growth of the ecosystem. ## Validator Rewards * **Description:** Validators earn rewards for their role in processing transactions, creating new blocks, and maintaining the blockchain's integrity. These rewards are critical for compensating Validators for their efforts and operational costs. @@ -24,46 +24,46 @@ Validators are required to share rewards with the delegators who staked CORE or After the validators take their fees, the protocol uses this function to determine how the remaining rewards are split between CORE stakers, BTC stakers, and hash power delegators. Reward distribution is calculated based on the following formula: $$ - rH = \frac{rHp}{tHp} * \frac{m}{S} * R + rH = \frac{\frac{rHp}{tHp} * m} {S} * R $$ -$$ - rS = \frac{rSp}{tSp + tBp * n} * \frac{(1-m)}{S} * R +$$ + rS = \frac{\frac{rSp}{tSp} * k} {S} * R $$ $$ - rB = \frac{(rBp * n)}{(tSp + tBp * n)} * \frac{(1-m)}{S * R} + rB = \frac{\frac{rBp}{tBp} * l} {S} * R $$ Where: -* $rH$ is the rewards received by the validator because of the hash power delegated to it (DPoW) -* $rS$ is the rewards received by the validator because of the CORE delegated to it (DPoS) -* $rB$ is validator rewards attributed to BTC staking -* $R$ is the overall rewards attributed to all delegators +* $$rH$$: Rewards attributed to delegated hash power (DPoW). +* $$rS$$: Rewards attributed to CORE staking (DPoS). +* $$rB$$: Rewards attributed to BTC staking. +* $$R$$: Total rewards allocated to all delegators. +* $$m$$: Proportion of rewards allocated to hash power. +* $$k$$: Proportion of rewards allocated to CORE staking. +* $$l$$: Proportion of rewards allocated to BTC staking. +* $$S$$: Hybrid score of the validator. -For completeness, here are three other ratios of interest: +Per unit reward calculations determine the rewards distributed for each staked unit of hash power, CORE, or BTC: -$$ - rHu = \frac{rH}{rHp} -$$ - -$$ - rSu = \frac{rS}{rSp} -$$ - -$$ - rBu = \frac{rB}{rBp} -$$ +* Per unit hash power reward: $$rHu$$ = $$ \frac{rH}{rHp} $$ +* Per unit CORE reward: rSu = $$ \frac{rS}{rSp} $$ +* Per unit BTC reward: $$rBu$$ of **Pn** = $$\frac{rB}{rBp}$$ x Yield Multiplier for Leveln Where: -* $rHu$ is the validator hash power rewards per unit; -* $rSu$ is the CORE token staking rewards per unit; -* $rBu$ is the BTC staking rewards per unit; +* $$rHu$$ is the validator hash power rewards per unit; +* $$rSu$$ is the CORE token staking rewards per unit; +* $$rBu$$ of **Pn** is the BTC staking rewards per unit for delegator with PN BTC yield level +* **Yield Multipliers:** Each boosted yield level has a specific multiplier (e,f,g,h, ..., etc) that is determined by a user's staking data as well as system dual staking settings. The settings are subject to change and are configurable through governance voting. These calculations ensure proportional rewards are distributed based on individual contributions to a validator’s delegation pool. + +These reward-splitting functions are designed to create an active market for rewards while encouraging competition amongst the validator set for both delegated hash power and delegated stake (BTC and CORE). For their part, delegators will try to optimize their own rewards by choosing validators with lower amounts of delegated hash power and stake. To maximize their rewards, delegators will look both for validators that are generous in their payouts, but also don’t already have a substantial amount of delegated CORE tokens or delegated PoW. The less a given validator has staked, the greater a contribution from a delegator will be. If a delegator adds one CORE token to a validator that only has one token, they’re 50% of that validator’s total delegation. If they delegate to a validator with 99 CORE tokens, they’re only 1% of that validator’s total delegation. Since payouts are determined in part based on the percentage of total stake each delegator accounts for, they’ll be incentivized to try and find validators with small delegations. Furhtermore, BTC staking rewards are influenced by dual staking tiers, encouraging greater network participation without prescribing specific strategies. -These reward-splitting functions are designed to create an active market for rewards while encouraging competition amongst the validator set for both delegated hash power and delegated stake (BTC and CORE). For their part, delegators will try to optimize their own rewards by choosing validators with lower amounts of delegated hash power and stake. To maximize their rewards, delegators will look both for validators that are generous in their payouts, but also don’t already have a substantial amount of delegated CORE tokens or delegated PoW. The less a given validator has staked, the greater a contribution from a delegator will be. If a delegator adds one CORE token to a validator that only has one token, they’re 50% of that validator’s total delegation. If they delegate to a validator with 99 CORE tokens, they’re only 1% of that validator’s total delegation. Since payouts are determined in part based on the percentage of total stake each delegator accounts for, they’ll be incentivized to try and find validators with small delegations. +## Impact of Dual Staking on BTC Rewards +With the introduction of Dual Staking, BTC staking rewards are now tiered based on the amount of CORE staked relative to BTC. BTC rewards are no longer evenly distributed across all participants. Instead, they are allocated dynamically based on dual staking thresholds, with higher tiers generally receiving a greater proportion of the rewards. This tiered structure introduces variability in BTC staking returns, aligning incentives across the Core ecosystem while maintaining proportionality in reward distribution. ## Reward Distribution Strategy -Core Chain follows the following distribution Principles: +Core follows the following distribution Principles: * **Fairness:** The rewards system is designed to be fair, ensuring that contributions, whether in the form of staking, mining, or governance participation, are equitably recognized and rewarded. * **Transparency:** All aspects of the reward distribution are transparent, allowing participants to understand how rewards are calculated and distributed. * **Security:** The distribution mechanism is secured against manipulation and abuse, using cryptographic and smart contract-based safeguards to ensure the integrity of the reward process. diff --git a/docs/Node/validator/running-validator.md b/docs/Node/validator/running-validator.md index e789998aad..793bb1e002 100644 --- a/docs/Node/validator/running-validator.md +++ b/docs/Node/validator/running-validator.md @@ -46,7 +46,7 @@ If you plan to run a validator node, you'll need to set up the consensus key bef geth account new --datadir ./node echo {your-password} > password.txt # start a validator node -geth --config ./config.toml --datadir ./node -unlock {your-validator-address} --password password.txt --mine --allow-insecure-unlock --cache 8000 +geth --config ./config.toml --datadir ./node -unlock {your-validator-address} --miner.etherbase {your-validator-address} --password password.txt --mine --allow-insecure-unlock --cache 8000 ``` 5\. As our validator node runs, we can monitor its logs to make sure that everything is operating correctly. The log file is located at `./node/logs/core.log` by default, but can be changed to another location if desired. diff --git a/docs/Node/validator/validator-election.md b/docs/Node/validator/validator-election.md index 48932294d8..5b2de249c0 100644 --- a/docs/Node/validator/validator-election.md +++ b/docs/Node/validator/validator-election.md @@ -4,12 +4,12 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Validator Election Process on the Core Chain Network +# Validator Election Process on the Core Network --- ## Overview -Validators are a crucial part of the Core network. In addition to the fact that they handle transaction validation and block production, the validator election process is where all the components, i.e., DPoW, DPoS, and Non-Custodial Bitcoin Staking, of Satoshi Plus consensus come together. The Validator election process is a central feature of the Satoshi Plus consensus mechanism employed by Core Chain. This process ensures the integrity, security, and efficiency of the blockchain by electing Validators responsible for validating transactions and creating new blocks. +Validators are a crucial part of the Core network. In addition to the fact that they handle transaction validation and block production, the validator election process is where all the components, i.e., DPoW, DPoS, and Non-Custodial Bitcoin Staking, of Satoshi Plus consensus come together. The Validator election process is a central feature of the Satoshi Plus consensus mechanism employed by Core blockchain. This process ensures the integrity, security, and efficiency of the blockchain by electing Validators responsible for validating transactions and creating new blocks. ## Importance of Validator Election @@ -29,7 +29,7 @@ The Validator election process in Satoshi Plus involves key steps, supported by - CORE and BTC token holders stake and delegate their tokens to Validator candidates. This delegation is a form of voting, where the weight of each vote corresponds to the number of staked tokens. 2. **Hash Power Delegation**: - - Bitcoin miners delegate a portion of their hash power by specifying their preferred Validators in the Bitcoin blocks they mine. This process integrates Bitcoin's mining power into Core Chain's security mechanism. + - Bitcoin miners delegate a portion of their hash power by specifying their preferred Validators in the Bitcoin blocks they mine. This process integrates Bitcoin's mining power into Core's security mechanism. 3. **Validator Selection**: - Validators are selected based on the total support they receive, calculated by combining staked tokens (BTC and CORE) and delegated Bitcoin hash power. @@ -40,70 +40,68 @@ A set of Validators is formed from those with the highest scores. This set is dy 1. Hybrid scores are calculated for all validators in the network with the following equation. The hybrid score for each validator is calculated based on the following formula: $$ - S = \frac{rHp}{tHp} * m + \frac{rSp + rBp * n}{tSp + tBp * n} * (1 - m) + S = (\frac{rHp}{tHp})* m + (\frac{rSp}{tSp})*k + (\frac{rBp}{tBp})*l $$ -Where: +Where, $$ m + k + l = 1 $$ + * $$rHp$$: Bitcoin hash power delegated to a validator. + * $$tHp$$: Total hash power on Core. + * $$rSp$$: Amount of CORE tokens staked to a validator. + * $$tSp$$: Total CORE tokens staked on Core. + * $$rBp$$: Amount of BTC tokens staked to a validator. + * $$tBp$$: Total BTC tokens staked on Core. + * $$m$$: Ratio assigned to hash power. + * $$k$$: Ratio assigned to CORE staking. + * $$l$$: Ratio assigned to BTC staking. -* $rHp$ is the Bitcoin hash power delegated to a validator, measured as the total number of Bitcoin blocks with that validator’s information written into their coinbase transactions; -* $tHp$ is the total hash power on Core Chain -* $rSp$ is the amount of CORE tokens delegated by CORE token holders to that validator -* $tSp$ is the total amount of CORE tokens stake on Core Chain -* $rBp$ is the amount of BTC tokens delegated by BTC holders to that validator -* $tBp$ is the total amount of BTC staked on Core Chain -* $m$ is a dynamic factor that controls the overall weights of hash power $(0 < m <1)$ -* $n$ is a dynamic factor that controls the voting power of each BTC vs. each CORE token. +2. At the end of each round validators are ranked in order of their hybrid score, and the *27** validators with the highest hybrid scores are selected for the validator set in the next round. -2. At the end of each round validators are ranked in order of their hybrid score, and the **23** validators with the highest hybrid scores are selected for the validator set in the next round. +Leaving aside the mathematical details, this is essentially a weighted, bicameral voting procedure. Bitcoin miners can vote for validators through their PoW (by writing validator information into the coinbase transaction on blocks they’ve already mined), CORE token holders can vote for a validator with their PoS (by delegating their tokens to it), and non-custodial bitcoin stakers can vote for a validator through the delegation of their tokens. This delegated PoW, delegated PoS, and Non-Custodial BTC Staking are weighted to determine the hybrid score. -Leaving aside the mathematical details, this is essentially a weighted, bicameral voting procedure. Bitcoin miners can vote for validators through their PoW (by writing validator information into the coinbase transaction on blocks they’ve already mined), CORE token holders can vote for a validator with their PoS (by delegating their tokens to it), and non-custodial bitcoin stakers can vote for a validator through the same mechanism. This delegated PoW and delegated PoS are weighted to determine the hybrid score. - -This is the “core” of the Core blockchain, the mechanism by which the network leverages the security and decentralization of the Bitcoin network and the scalability and composability of PoS chains like Ethereum. Letting Bitcoin miners and bitcoin stakers vote on validators allows Core Chain to avail itself of Bitcoin’s legendary robustness; and because Core Chain is EVM compatible, it’s possible to build smart contracts, dApps, and other applications on Core Chain that couldn’t be done without changes to the underlying Bitcoin protocol. +This is the “core” of the Core blockchain, the mechanism by which the network leverages the security and decentralization of the Bitcoin network and the scalability and composability of PoS chains like Ethereum. Letting Bitcoin miners and bitcoin stakers vote on validators allows Core to avail itself of Bitcoin’s legendary robustness; and because Core is EVM compatible, it’s possible to build smart contracts, dApps, and other applications on Core that couldn’t be done without changes to the underlying Bitcoin protocol. 5. **Block Production**: - - After election, all validators are sorted roughly in order of their hybrid score, and they take turns producing blocks in a **round-robin manner** before the process starts over again from the beginning. By _initially limiting the number of validators to **21**_, Satoshi Plus offers a higher transaction rate and increased scalability, but the number of validators is expected to increase to **31 validators by Q2 2025**. In Q2 2024, Core has already expanded its active validaotr set from **21** to **23**. What’s more, this mechanism provides additional security through improved efficiency and a tolerance for a large number of Byzantine players. Core Chain is secure as long as no more than $1 \over 3$ of the validators are malicious. + - After election, all validators are sorted roughly in order of their hybrid score, and they take turns producing blocks in a **round-robin manner** before the process starts over again from the beginning. By _initially limiting the number of validators to **21**_, Satoshi Plus offers a higher transaction rate and increased scalability, but the number of validators is expected to increase to **34 validators by Q2 2025**. In Q2 2024, Core has already expanded its active validator set from **21** to **27**. What’s more, this mechanism provides additional security through improved efficiency and a tolerance for a large number of Byzantine players. Core is secure as long as no more than $1 \over 3$ of the validators are malicious. 6. **Reward Distribution**: - Rewards are distributed based on contributions to network security, using the following formula: - + $$ - rH = \frac{rHp}{tHp} * \frac{m}{S} * R + rH = \frac{\frac{rHp}{tHp} * m} {S} * R $$ - $$ - rS = \frac{rSp}{tSp + tBp * n} * \frac{(1-m)}{S} * R + $$ + rS = \frac{\frac{rSp}{tSp} * k} {S} * R $$ $$ - rB = \frac{(rBp * n)}{(tSp + tBp * n)} * \frac{(1-m)}{S * R} + rB = \frac{\frac{rBp}{tBp} * l} {S} * R $$ Where: - * $rH$ is the rewards received by the validator because of the hash power delegated to it (DPoW) - * $rS$ is the rewards received by the validator because of the CORE delegated to it (DPoS) - * $rB$ is validator rewards attributed to BTC staking - * $R$ is the overall rewards attributed to all delegators + * $$rH$$: Rewards attributed to delegated hash power (DPoW). + * $$rS$$: Rewards attributed to CORE staking (DPoS). + * $$rB$$: Rewards attributed to BTC staking. + * $$R$$: Total rewards allocated to all delegators. + * $$m$$: Proportion of rewards allocated to hash power. + * $$k$$: Proportion of rewards allocated to CORE staking. + * $$l$$: Proportion of rewards allocated to BTC staking. + * $$S$$: Hybrid score of the validator. - For completeness, here are three other ratios of interest: + Per unit reward calculations determine the rewards distributed for each staked unit of hash power, CORE, or BTC: - $$ - rHu = \frac{rH}{rHp} - $$ - - $$ - rSu = \frac{rS}{rSp} - $$ - - $$ - rBu = \frac{rB}{rBp} - $$ + * Per unit hash power reward: $$rHu$$ = $$ \frac{rH}{rHp} $$ + * Per unit CORE reward: rSu = $$ \frac{rS}{rSp} $$ + * Per unit BTC reward: $$rBu$$ of **Pn** = $$\frac{rB}{rBp}$$ x Yield Multiplier for Leveln Where: - * $rHu$ is the validator hash power rewards per unit; - * $rSu$ is the CORE token staking rewards per unit; - * $rBu$ is the BTC staking rewards per unit; - - These reward-splitting functions are designed to create an active market for rewards while encouraging competition amongst the validator set for both delegated hash power and delegated stake (BTC and CORE). + * $$rHu$$ is the validator hash power rewards per unit; + * $$rSu$$ is the CORE token staking rewards per unit; + * $$rBu$$ of **Pn** is the BTC staking rewards per unit for delegator with PN BTC yield level + * **Yield Multipliers:** Each boosted yield level has a specific multiplier (e,f,g,h, ..., etc) that is determined by a user's staking data as well as system dual staking settings. The settings are subject to change and are configurable through governance voting. These calculations ensure proportional rewards are distributed based on individual contributions to a validator’s delegation pool. + +#### Impact of Dual Staking on BTC Rewards +With the introduction of Dual Staking, BTC staking rewards are now tiered based on the amount of CORE staked relative to BTC. BTC rewards are no longer evenly distributed across all participants. Instead, they are allocated dynamically based on dual staking thresholds, with higher tiers generally receiving a greater proportion of the rewards. This tiered structure introduces variability in BTC staking returns, aligning incentives across the Core ecosystem while maintaining proportionality in reward distribution. ### Flow Diagram of the Validator Election Process diff --git a/docs/Node/validator/validator-register.md b/docs/Node/validator/validator-register.md index b33c87f509..7f071e0957 100644 --- a/docs/Node/validator/validator-register.md +++ b/docs/Node/validator/validator-register.md @@ -42,9 +42,9 @@ A quick way to check that you've successfully registered your full node as a val ## Validator Election -Each day, the top 23 validators with the highest hybrid scores are elected to the validator set, thereby becoming responsible for producing blocks on the Core network for the entirety of the round. When the last block of a round is mined, the round’s accumulated rewards are distributed and the next round's validator set is selected. For more details about how the validator election works, refer to the[ validator election](https://whitepaper.coredao.org/core-white-paper-v1.0.7/satoshi-plus-consensus/validator-election) section of the Technical Whitepaper. +Each day, the top **27** validators with the highest hybrid scores are elected to the validator set, thereby becoming responsible for producing blocks on the Core network for the entirety of the round. When the last block of a round is mined, the round’s accumulated rewards are distributed and the next round's validator set is selected. For more details about how the validator election works, refer to the [validator election](./validator-election.md) section. -You can check the validator status on the stake website, active elected validators will be marked as `Active/Normal`. The validator set is updated at 00:00 am UTC every day. +You can check the validator status on the stake website, active elected validators will be marked as `Active/Normal`. The validator set is updated at **00:00 am UTC** every day. ![validator-register-form](../../../static/img/validator/register/validator-register-3.avif) diff --git a/docs/api/api-documents/geth-proxy.md b/docs/api/api-documents/geth-proxy.md index caede04418..fdb90a3b9f 100644 --- a/docs/api/api-documents/geth-proxy.md +++ b/docs/api/api-documents/geth-proxy.md @@ -641,7 +641,7 @@ Sample Response ## eth\_sendRawTransaction -Submits a pre-signed transaction and broadcast to the Core Chain network. +Submits a pre-signed transaction and broadcast to the Core network. ```bash https://openapi.coredao.org/api diff --git a/docs/api/api-documents/statistics.md b/docs/api/api-documents/statistics.md index 366db4b53c..60c20a12bf 100644 --- a/docs/api/api-documents/statistics.md +++ b/docs/api/api-documents/statistics.md @@ -7,7 +7,7 @@ sidebar_position: 2 # Statistics -## Get Total Supply of CORE on Core Chain +## Get Total Supply of CORE on Core Returns total supply of CORE. @@ -34,9 +34,9 @@ Sample Response > **Tip :** The `result` is returned in WEI. Easily convert Core units using our [**unit converter.**](https://scan.coredao.org/unit-converter) -## Get Validators List on Core Chain +## Get Validators List on Core -Returns the top 21 validators on Core Chain. +Returns the top 21 validators on Core blockchain. ```bash https://openapi.coredao.org/api diff --git a/docs/api/tutorials/creating-an-account.md b/docs/api/tutorials/creating-an-account.md index 2c75cae644..0fe810bf71 100644 --- a/docs/api/tutorials/creating-an-account.md +++ b/docs/api/tutorials/creating-an-account.md @@ -9,7 +9,7 @@ sidebar_position: 2 Having a Core Scan account allows you to use sign-in only features and tools such as Address Watch List, Txn Private Notes, Token Ignore List and your very own API keys 🗝. -> Note that creating a Core Scan account is only linked to Core Scan's block explorer services, it is not the same as creating a [CORE Chain address](https://info.etherscan.com/what-is-an-ethereum-address/) 💡 +> Note that creating a Core Scan account is only linked to Core Scan's block explorer services, it is not the same as creating a [CORE blockchain address](https://info.etherscan.com/what-is-an-ethereum-address/) 💡 *** diff --git a/docs/intro.md b/docs/intro.md index 6a8a7d1ff8..a644f3b754 100644 --- a/docs/intro.md +++ b/docs/intro.md @@ -1,5 +1,5 @@ --- -title: Core DAO - Decentralized applications secured by Bitcoin +title: The Core Blockchain - Decentralized applications secured by Bitcoin sidebar_position: 1 --- @@ -7,42 +7,44 @@ sidebar_position: 1 ## 👨‍💻 Getting Started -Core Chain is the first Bitcoin-aligned EVM-compatible Layer-1 blockchain, designed to be Bitcoin's complementary and hyper-scalable smart contract platform. With over **50%** of Bitcoin mining hash power and over **4,800** in count and more than **$313 Million** worth Bitcoin staked are already contributing to its security model and through the ground-breaking innovation of Non-Custodial Bitcoin staking, Core Chain is unlocking Bitcoin both as the prime protector and central asset of the future of DeFi. + +Core is a hyper-scalable smart contract platform designed to complement Bitcoin, serving as its first Proof of Stake (PoS) layer and the largest Bitcoin DeFi ecosystem. By merging Bitcoin’s unmatched security with the scalability of the innovative Satoshi Plus consensus, Core expands Bitcoin’s capabilities while preserving its core principles of decentralization and security. With approximately 75% of Bitcoin mining hash power already contributing to Core’s security model and over 8,200 BTC staked through Non-Custodial Bitcoin Staking, Core strengthens Bitcoin's role as both the prime protector and central asset of the future of DeFi. Core's Dual Staking model further empowers Bitcoin holders to earn secure and sustainable yields by staking both BTC and CORE, all while retaining full control and ownership of their assets. + ![core-header](../static/img/core-header.png) -New to Core Chain? Let's discover **Core Chain in less than 5 minutes**. +New to Core? Let's discover **Core in less than 5 minutes**. -## 📔 Learn about Core Chain -Dive into what Core Chain is and start your Web3 journey with Core. - * [An overview about Core Chain](./Learn/introduction/what-is-core-chain.md) - * [Read about the core concepts of Core Chain](category/core-concepts) +## 📔 Learn about Core +Dive into what Core is and how to start your Web3 journey on Core + * [An Overview of Core](./Learn/introduction/what-is-core-chain.md) + * [Read About the Core Concepts](category/core-concepts) * [Understand the Underlying Architecture](./Learn/core-concepts/architecture.md) -## 👓 Explore the Core Chain -Get Familiar with the Core Chain Ecosystem - * [Explore Why Core Chain is the Right Choice](./Learn/introduction/why-core-chain.md) - * [Explore the Different Products by Core Chain](category/products) - * [See Whats Being Build on the Core Chain](https://coredao.org/explore/ecosystem) - -## 🔌 Run a Node on Core Chain -Participate in the Core Chain network by running different types of Nodes - * [Run a Full Node on the Core Chain Network](./Node/Full-Node/on-mainnet.md) - * [Run a Validator Node on the Core Chain Network](./Node/config/validator-node-config.md) - * [Run a RPC Node on the Core Chain Network](./Node/config/rpc-node-config.md) - * [Run an Archive Node on the Core Chain Network](./Node/config/archive-node-config.md) - * [Run a Snapshot Node on the Core Chain Network](./Node/config/snapshot-node-config.md) - -## 👨‍🔧 Building on Core Chain -Starting building on the Core Chain and Contribute to the BTC DeFi Landscape +## 👓 Explore on Core +Get Familiar with the Core Ecosystem + * [Find Out Why Core is the Right Choice](./Learn/introduction/why-core-chain.md) + * [Explore Core's Products](category/products) + * [See What's Being Built on Core](https://coredao.org/explore/ecosystem) + +## 🔌 Run a Node on Core +Participate in Core Network Security by Running Different Types of Nodes + * [Run a Full Node on the Core Network](./Node/Full-Node/on-mainnet.md) + * [Run a Validator Node on the Core Network](./Node/config/validator-node-config.md) + * [Run a RPC Node on the Core Network](./Node/config/rpc-node-config.md) + * [Run an Archive Node on the Core Network](./Node/config/archive-node-config.md) + * [Run a Snapshot Node on the Core Network](./Node/config/snapshot-node-config.md) + +## 👨‍🔧 Building on Core +Starting building on Core and Contribute to the BTCfi Landscape * [Explore the Developer Tooling Landscape](./Dev-Guide/dev-tools.md) - * [Configure your Wallets with Core Network](./Dev-Guide/core-testnet-wallet-config.md) - * [Fund your wallets with tCORE](./Dev-Guide/core-faucet.md) + * [Configure Your Wallets on the Core Network](./Dev-Guide/core-testnet-wallet-config.md) + * [Fund Your Wallets with tCORE or tCORE2](./Dev-Guide/core-faucet.md) * [Iterate through Hands-on Detailed Guides to Jumpstart your Journey on Core](category/dev-guides) - * [Build a Full-Stack dApp on Core Chain](./Dev-Guide/dapp-on-core.md) + * [Build a Full-Stack dApp on Core](./Dev-Guide/dapp-on-core.md) ## 🙋‍♀️ Help & Support -Connect with Core Team for any help or support required +Connect with Core Contributors for Support * [Official Discord Server for Help & Support](https://discord.com/invite/coredaoofficial) - * [Official Telegram Developer Channel for technical support](https://t.me/CoreDAOTelegram) \ No newline at end of file + * [Official Telegram Developer Channel for Technical Support](https://t.me/CoreDAOTelegram) diff --git a/docs/stake-and-delegate/delegating-core.md b/docs/stake-and-delegate/delegating-core.md index 701cdf1bac..3cb4fb7229 100644 --- a/docs/stake-and-delegate/delegating-core.md +++ b/docs/stake-and-delegate/delegating-core.md @@ -1,5 +1,5 @@ --- -sidebar_label: Delegating Core +sidebar_label: Delegating CORE hide_table_of_contents: false sidebar_position: 2 --- @@ -7,48 +7,134 @@ sidebar_position: 2 # Delegating CORE --- -By delegating CORE to Validators, CORE holders can help secure the network and share in system rewards. +Delegated Proof of Stake (DPoS) is one of the three fundamental components of the Satoshi Plus consensus mechanism, playing a pivotal role in enhancing the functionality, security, and efficiency of the blockchain network. In the Core network, DPoS is implemented through CORE delegations, allowing CORE holders to delegate their tokens to trusted validators. This process not only helps secure the network but also enables participants to share in the system’s rewards. +In this guide, we provide a step-by-step walkthrough on how to delegate your CORE tokens to validators within the Core network, empowering you to actively contribute to the ecosystem while reaping the benefits of your investment. -## Validator Selection +## Core Staking Website -Delegators can use Core's staking website to manage their positions: + * Mainnet: [https://stake.coredao.org/](https://stake.coredao.org/) + * Testnet: [https://stake.test.btcs.network/](https://stake.test.btcs.network/) -| Mainnet | Testnet | -| ---------------------------------------------------- | ---------------------------------------------------------- | -| [Mainnet staking website](https://stake.coredao.org) | [Testnet staking website](https://stake.test.btcs.network) | +## Step-by-Step Guidelines for Delegating CORE -Validator information is listed on the staking site, with all validators ranked by their current hybrid score, as shown below. Explanations for key terms are available for each column header on the staking site, viewable by clicking on the `i` symbol next to the column header. +#### Step 1: Navigating to Core Staking Website +When you visit stake.coredao.org, you’ll see an overview of important metrics related to Core delegation. These metrics provide a snapshot of the staking opportunities available on Core, and are updated in real-time based on the user participation. It also lists Validator information, with all validators ranked by their current hybrid score. -![delegate-core](../../static/img/delegate/delegate-core/delegate-core-1.avif) +

+![image](https://github.com/user-attachments/assets/e6fa2e61-1027-4d6e-bdb3-a86ceb265eee) +

-At the start of each round, Satoshi Plus consensus selects the Validators by their hybrid scores. The nodes are ranked in descending order of this score, with the top **23** nodes selected to form the active Validator set for the current round. Hybrid scores are calculated using the following formula: +#### Step 1.1: Connect Your Wallet +To start staking, follow these steps to connect your wallet. Ensure you have CORE tokens in your wallet to participate in staking. + * Click on the **Connect Wallet** button located at the top-right corner of the page. + * Choose your preferred wallet (e.g., MetaMask, WalletConnect) from the available options. + * Follow the on-screen prompts to complete the connection process securely. + * Once connected, your wallet balance and details will be visible, and you can begin delegating CORE tokens. -`S = hash_percentage * m + coin_percentage * (1 - m)` +

+![image](https://github.com/user-attachments/assets/547fdb6d-67f1-424d-be88-cdfde66224b3) +

-Where, -`coin_percentage` accounts for the ratio of both the **CORE** and **BTC** staking tokens -`m` is a dynamic weighting factor initially set to **2/3** +#### Step 1.2: Choosing a Validator -Validator information is refreshed daily at **00:00 UTC** at the beginning of each round. +On the staking site, each validator is ranked by their Hybrid Score, which reflects a combination of factors such as performance and delegated hash power. To maximize your staking rewards, focus on the following two key metrics: -## Delegation + * **CORE Reward Rate:** This shows the percentage of CORE rewards you can earn by delegating to a particular validator. A higher reward rate means more potential returns on your staked CORE. + * **Commission:** This is the fee that validators take from your staking rewards. A lower commission allows you to keep more of your earned rewards, so it's important to choose a validator with a low commission to maximize your returns. -Selecting the name of a Validator will open up a validator page with more information about them, as shown below. +By choosing a validator with a high CORE reward rate and low commission, you can increase the amount of rewards you receive from staking your CORE tokens. You can view more details about each validator’s metrics by clicking the "i" symbol next to the column headers for explanations. For more information on how the hybrid score is calculated, refer [here](https://docs.coredao.org/docs/Learn/core-concepts/satoshi-plus-consensus/validator-election#workflow-of-the-validator-election-process). -![delegate-core](../../static/img/delegate/delegate-core/delegate-core-2.avif) +Validator information is refreshed daily at 00:00 UTC at the beginning of each new round, ensuring you always have the latest data when making your staking decisions. -To delegate to the Validator, select the **Delegate→DelegateCoin** button on the top left. Enter the deposit amount in the input field and select 'Delegate' to send your delegation transaction, as shown below. To execute the transaction, you'll need to sign and send it using MetaMask or another compatible web wallet. +In the example, we are selecting: **DAO Validator 6**. To choose a validator, click on the Validator's name to proceed -![delegate-core](../../static/img/delegate/delegate-core/delegate-core-3.avif) +

+![image](https://github.com/user-attachments/assets/527fbabd-019a-4acb-9185-043a9b901992) +

-After successfully delegating to a Validator, you can find your total delegated amount under the **Coin** tab, with your historical delegation transactions listed under the **CoinRecord** tab. You are able to delegate to more than one Validator. +### Step 2: Delegating CORE to a Validator +Once you’ve selected a validator, you’ll be taken to their detailed page, as shown below. Here’s what you’re seeing: + * **Delegated Coin (CORE):** The total amount of CORE tokens already delegated to the selected validator (e.g., 6,678,941 CORE). + * **CORE Reward Rate:** The annual percentage of rewards for delegating to the selected validator. For example, if he CORE reward rate is 9.41%, it means the delegator will earn this percentage in rewards on their staked CORE. + * **Commission:** The validator’s commission fee, which is deducted from your rewards, example 5%. + * **Delegators:** The number of users who have delegated to the selected validator (e.g., 16,234 CORE Delegators). + +To delegate your CORE tokens, follow these steps: + 1. **Click "Delegate":** At the top right of the screen, you’ll see the Delegate button (marked as 1 in the image). Hover over it. + 2. **Select CORE:** A drop-down will appear with the option to delegate CORE or BTC. Select CORE (marked as 2 in the image). -To undelegate your CORE, simply select the **Undelegate→UndelegateCoin** button and sign the transaction. +

+![image](https://github.com/user-attachments/assets/6c09ad7e-a61e-449b-a935-973576b464fb) +

+ +#### Step 2.1 Specify amount of CORE to delegate +* After selecting CORE, you’ll be prompted to enter the amount of CORE you want to delegate. Review the validator’s commission, then click **Confirm Delegation**. + +

+![image](https://github.com/user-attachments/assets/b31bbdb5-a2b0-401e-99f9-106c6c3e913a) +

+ +* Also confirm the transaction in your Metamask. + +

+![image](https://github.com/user-attachments/assets/e3022505-99a3-49eb-bf9f-6fc565e41105) +

+ +* Once your transaction is confirmed and succesfully completed, you can see that 1 CORE has been successfully delegated to DAO Validator 6. + +

+![image](https://github.com/user-attachments/assets/b378b492-3fea-4218-a937-486f2589049b) +

+ +#### Step 2.2 Verifying delegated CORE + +Now that we’ve successfully delegated CORE, lets verify that our CORE is now being staked by hovering over our connected wallet in the top right corner, and clicking on the **My Staking** dropdown. We can see under the ‘Core Delegated’ column that we now have 1 CORE delegated, or 1 CORE staked: + +

+![image](https://github.com/user-attachments/assets/d61755d2-177b-485c-9daa-5cc5a863b60d) +

+ +### Step 3 Undelegating CORE + +If we want to Undelegate our CORE, you will want to click the 3 dots at the end of your chosen validator, and click **Undelegate CORE**. + +

+![image](https://github.com/user-attachments/assets/356bfbc6-991d-4a39-804e-cc46086e5399) +

+ +#### Step 3.1 Confirm the transaction, and verify undelegated CORE + +* After clicking Undelegate, you will be prompted to confirm the transaction in your Metamask. Click the **Confirm** button: + +

+![image](https://github.com/user-attachments/assets/787425db-f7c2-4fa4-9cc9-a125d7a9b873) +

+ +* Once the transaction is confirmed and sucessfuly executed, you will see the following success prompt. + +

+![image](https://github.com/user-attachments/assets/3b0bb4e4-95aa-407f-8946-442de715906e) +

+ +* If you return to **My Staking**, you should now see your CORE Delegated displaying 0. + +

+![image](https://github.com/user-attachments/assets/f1aa91f9-e861-4e03-b08d-b8be504cef0a) +

+ +* Clicking the **Transaction Records** button allows us to view the **Staking Records**, and the delegation events that have occurred under the **CORE Records** tab. + +

+![image](https://github.com/user-attachments/assets/da7a3693-2799-4c04-8ba3-649c25694120) +

## Claiming Rewards +You can view reward information about your active delegations by selecting **My Staking** on the top right corner in teh header of the staking website. Delegation (staking) rewards are distributed after each round at 00:00 am UTC every day. + +To claim your rewards, simply select the Claim button on the top left and sign the transaction. After sending the transaction, you will receive the rewards to your linked address. Historical claim transactions are listed on the website's Claim tab, as shown below. -You can view reward information about your active delegations by selecting **My Staking** on the top right of the staking website. Delegation (staking) rewards are distributed after each round at 00:00 am UTC every day. +

+![image](https://github.com/user-attachments/assets/64f749fc-0746-4df9-bf62-fbdb088952c2) +

-To claim your rewards, simply select the **Claim** button on the top left and sign the transaction. After sending the transaction, you will receive the rewards to your linked address. Historical claim transactions are listed on the website's **Claim** tab, as shown below. -![delegate-core](../../static/img/delegate/delegate-core/delegate-core-4.avif) diff --git a/docs/stake-and-delegate/delegating-hash.md b/docs/stake-and-delegate/delegating-hash.md index 1c520aeaba..e6ad5629c4 100644 --- a/docs/stake-and-delegate/delegating-hash.md +++ b/docs/stake-and-delegate/delegating-hash.md @@ -1,5 +1,5 @@ --- -sidebar_label: Delegating Hash +sidebar_label: Delegating Hash-Rate hide_table_of_contents: false sidebar_position: 2 --- diff --git a/docs/stake-and-delegate/delegators.md b/docs/stake-and-delegate/delegators.md index 30e6a5616c..544e615859 100644 --- a/docs/stake-and-delegate/delegators.md +++ b/docs/stake-and-delegate/delegators.md @@ -4,39 +4,41 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Delegations in the Core Chain Ecosystem +# Delegations in the Core Ecosystem --- ## Overview of Delegation -In the context of the Core Chain, delegation is a fundamental mechanism that allows BTC miners and BTC and CORE token holders to participate actively in the network's security and governance without being validators themselves. This process involves the delegators entrusting their voting and operational power to validators, who then use the delegated resources (BTC hash power, BTC, and CORE) to participate in the network's consensus process and governance decisions. +In the context of the Core blockchain, delegation is a fundamental mechanism that allows BTC miners and BTC and CORE token holders to participate actively in the network's security and governance without being validators themselves. This process involves the delegators entrusting their voting and operational power to validators, who then use the delegated resources (BTC hash power, BTC, and CORE) to participate in the network's consensus process and governance decisions. -## Types of Delegation on the Core Chain +## Types of Delegation on the Core Blockchain 1. **BTC/CORE Delegation to Validators:** * **Purpose:** This type of delegation allows BTC and CORE token holders to support specific validators by delegating their tokens to them. In return, validators use the aggregated power to secure the network, validate transactions, and produce blocks. * **Benefits:** Delegators share in the rewards earned by their chosen validators, receiving a portion of the transaction fees and block rewards in proportion to their stake. + * **How to Delegate BTC:** Core allows BTC holders to delegate their assets to validators on Core through the Non-Custodial BTC Staking, which allows that to not only earn staking rewards but also maintian comlete ownership of their assets. For more details, refer to the detailed guide on [how to delegate BTC on Core](../Learn/products/btc-staking/stake-btc-guide.md). + * **How to Delegate CORE:** Core allows CORE holders to delegate their assets to validators on Core through a simple delegation mechanism, this allows them to participate in the Core netowrk's security and governance. For more details, refer to the detailed guide on [how to delegate CORE](./delegating-core.md). 2. **Hash Power Delegation from BTC Miners:** - * **Purpose:** Bitcoin miners can delegate a portion of their computational hash power to validators on the Core network. This unique form of delegation leverages the security and work already being done on the Bitcoin network to enhance the security of the Core Chain. - * **Process:** Miners include specific metadata in the Bitcoin blocks they mine, indicating their support for a Core Chain validator, thereby linking the security of both networks. + * **Purpose:** Bitcoin miners can delegate a portion of their computational hash power to validators on the Core network. This unique form of delegation leverages the security and work already being done on the Bitcoin network to enhance the security of the Core. + * **Process:** Miners include specific metadata in the Bitcoin blocks they mine, indicating their support for a Core validator, thereby linking the security of both networks. + * **How to Delegate Hash:** Core provides the BTC miners to delegate their hashpower to validators on Core, enabling them to earn staking rewards from the Core ecossytem in the form of additioanl CORE tokens. For more details, refer to the detailed guide on [how to delegate Hash Poweer to Core Validators](./delegating-hash.md). +## Importance of Delegations on the Core Blockchain -## Importance of Delegations on the Core Chain +1. **Enhanced Network Security:** By allowing a broad base of token holders to delegate their assets (BTC and CORE) to validators, Core ensures that the responsibility and power of maintaining the network are distributed among many participants, thereby avoiding centralization and increasing security. -1. **Enhanced Network Security:** By allowing a broad base of token holders to delegate their assets (BTC and CORE) to validators, Core Chain ensures that the responsibility and power of maintaining the network are distributed among many participants, thereby avoiding centralization and increasing security. - -2. **Democratization of the Network:** Delegation democratizes access to the decision-making processes within Core Chain, allowing anyone holding BTC or CORE tokens, regardless of the amount, to participate in governance and consensus. This inclusive approach fosters a diverse and robust governance structure. +2. **Democratization of the Network:** Delegation democratizes access to the decision-making processes within Core, allowing anyone holding BTC or CORE tokens, regardless of the amount, to participate in governance and consensus. This inclusive approach fosters a diverse and robust governance structure. 3. **Incentivization and Participation:** Delegation incentivizes both validators and BTC/CORE token holders by aligning their interests. Validators are motivated to act in the best interest of the network to maintain their reputation and continue receiving delegated tokens, while delegators benefit from the rewards generated by their validators' activities. -4. **Scalability of Consensus Process:** Delegation allows the network to handle more transactions and accommodate more participants without requiring each to run full nodes. This scalability is crucial for maintaining high performance as the Core Chain ecosystem grows. +4. **Scalability of Consensus Process:** Delegation allows the network to handle more transactions and accommodate more participants without requiring each to run full nodes. This scalability is crucial for maintaining high performance as the Core ecosystem grows. 5. **Facilitates Staking Flexibility:** Delegation provides token holders with the flexibility to contribute to network security without the need to maintain the infrastructure required for running a full validating node, lowering the barrier for participation. -6. **Facilitation of Liquid Democracy:** Delegation in Core Chain facilitates a form of liquid democracy, where token holders can directly choose their representatives (validators) in the consensus process or can change their delegation based on performance and trust metrics. This fluid governance model adapts quickly to changes and reflects the current sentiment of the community. +6. **Facilitation of Liquid Democracy:** Delegation in Core facilitates a form of liquid democracy, where token holders can directly choose their representatives (validators) in the consensus process or can change their delegation based on performance and trust metrics. This fluid governance model adapts quickly to changes and reflects the current sentiment of the community. ## Conclusion -Delegation is one of the key fundamentals of the Core Chain ecosystem, enabling it to maintain a secure, decentralized, and efficient blockchain network. By leveraging the strengths of both DPoS and elements of PoW through the innovative Satoshi Plus consensus mechanism, Core Chain not only enhances its operational capabilities but also aligns closely with the decentralized ethos of blockchain technology. This model of delegation ensures that all participants, from individual token holders to large-scale miners, have a stake in the network’s success and governance, making Core Chain a robust and dynamic blockchain platform. \ No newline at end of file +Delegation is one of the key fundamentals of the Core ecosystem, enabling it to maintain a secure, decentralized, and efficient blockchain network. By leveraging the strengths of both DPoS and elements of PoW through the innovative Satoshi Plus consensus mechanism, Core not only enhances its operational capabilities but also aligns closely with the decentralized ethos of blockchain technology. This model of delegation ensures that all participants, from individual token holders to large-scale miners, have a stake in the network’s success and governance, making Core a robust and dynamic blockchain platform. \ No newline at end of file diff --git a/docs/stake-and-delegate/dual-staking.md b/docs/stake-and-delegate/dual-staking.md new file mode 100644 index 0000000000..41a7db6d39 --- /dev/null +++ b/docs/stake-and-delegate/dual-staking.md @@ -0,0 +1,128 @@ +--- +sidebar_label: Dual Staking +hide_table_of_contents: false +sidebar_position: 2 +--- + +# Dual Staking - Unlock Higher APY for BTC Staking +--- + +## Introduction + +[Non-Custodial Bitcoin Staking](https://docs.coredao.org/docs/Learn/products/btc-staking/overview) was integrated into the Core blockchain in April 2024, allowing users to stake Bitcoin and earn yield while retaining complete control over their assets. This implementation provides a native mechanism for generating Bitcoin yield without introducing additional trust assumptions. + +To further enhance yield generation from Non-Custodial Bitcoin staking at scale, **Dual Staking** unlocks higher yield tiers by staking Bitcoin and CORE simultaneously. Since daily CORE emissions are fixed, those who stake CORE alongside Bitcoin earn higher reward tiers than those staking Bitcoin alone. The percentage of boost on yield is determined by staking CORE above multiple defined thresholds, with each threshold corresponding to increasing tiers of Bitcoin staking rewards. By linking higher Bitcoin staking rewards with the volume of CORE tokens staked, this approach encourages Bitcoin stakers to make a deeper commitment to the Core ecosystem. It maximizes the yield returns for committed users. + +## How does Dual Staking Work? + +Dual Staking does not alter the staking process for Bitcoin and CORE. For more information on how Non-Custodial Bitcoin Staking works, refer [here](https://docs.coredao.org/docs/Learn/products/btc-staking/overview). Also, consult this detailed [guidebook](https://docs.coredao.org/docs/stake-and-delegate/delegating-core) on delegating CORE and [staking](https://docs.coredao.org/docs/Learn/products/btc-staking/stake-btc-guide)/[redeeming](https://docs.coredao.org/docs/Learn/products/btc-staking/Redeeming-Guide) BTC. + +Dual Staking creates an opportunity to unlock higher yields when both Bitcoin and CORE are staked simultaneously, with varying CORE staking thresholds corresponding to different yield boost levels on Bitcoin staking rewards on the Core blockchain. + +Bitcoin holders can [stake their Bitcoin](https://docs.coredao.org/docs/Learn/products/btc-staking/stake-btc-guide) through Core's Non-Custodial Bitcoin Staking to accumulate CORE rewards. By subsequently [staking their CORE](https://docs.coredao.org/docs/stake-and-delegate/delegating-core) tokens at different Dual Staking thresholds, users unlock higher tiers of Bitcoin yields, paid in CORE. While Dual Staking enhances Bitcoin staking rewards, it does not impact the yield generated by CORE staking itself. + +To enable higher yields for Bitcoin staking through Dual Staking, users must meet the following requirements: + +1. Stake both CORE and Bitcoin simultaneously, ensuring that the amount of CORE staked exceeds the minimum dual staking threshold **AND** +2. The CORE staking wallet address ***must*** match the designated CORE rewards address for Bitcoin staking to which the yield is paid. + + +### Boosted Yield Thresholds + +Currently, Satoshi Plus rewards are allocated via three pools, one for each of the three entities participating in the election of Core validators, namely (1) Hash Power Delegators, (2) Bitcoin Stakers, and (3) CORE Stakers. + +Dual Staking does not affect these reward pools, but does enable Bitcoin stakers who also stake CORE tokens to earn a higher proportion of rewards in the Bitcoin Staking pool. In this section, we cover in detail the working of the grading algorithm with respect to dual staking. + +1. **Boosted Yield Levels** +Under Dual Staking, there are 3 boosted yield tiers for Bitcoin Staking based on the proportion of CORE staked relative to Bitcoin staked. For Solo-Stakers of only Bitcoin, a fourth tier exists with the lowest Bitcoin staking rate. It is important to note that the annual reward rate for Bitcoin Staking can fluctuate significantly, often due to varying prices and other market dynamics. As a result, the actual boosted yields may change daily based on market conditions. + + * **PBASE** \= the BTC staking base rate + * **PLevel1** \= the BTC staking base rate \+ Level 1 boosted yield + * **PLevel2** \= the BTC staking base rate \+ Level 2 boosted yield + * **PLevel3 (PMAX)** \= the BTC staking base rate \+ Level 3 boosted yield + +Effectively, the CORE emissions are distributed pro rata based on the BTC TVL, weighted based on their dual staking tier (CORE:BTC). + +2. **Staked CORE Thresholds and Staking Ratios (R1, R2, R3)** +The deciding mechanism for a Bitcoin staker’s yield tier (**PBASE**, **PLevel1**, **PLevel2**, or **PLevel3 (PMAX)**) is based on CORE tokens staked relative to Bitcoin staked, where **R** represents the `CORE:BTC` Ration and **R3 \> R2 \> R1**. The current CORE:BTC staking ratios are as follows: + + * Staking Ratio R1 \= 1,000 CORE per 1 BTC + * Staking Ratio R2 \= 3,000 CORE per 1 BTC + * Staking Ratio R3 \= 8,000 CORE per 1 BTC + +Keeping these ratios in mind, users can calculate the required threshold for each tier as follows: + + * **Staked CORE Threshold for PLevel1** \= BTC staked quantity \* Staking Ratio (**R1**) + * **Staked CORE Threshold for PLevel2** \= BTC staked quantity \* Staking Ratio (**R2**) + * **Staked CORE Threshold for PLevel3 (PMAX)** \= BTC staked quantity \* Staking Ratio (**R3**) + +:::note +The staked CORE and/or staked Bitcoin can be distributed across multiple active Core validators. +::: + +3. **Boosted yield level determination for each (1) staked Bitcoin** + * If staked CORE amount \< **R1**, the user is in tier **PBASE** + * If **R1** \=\< staked CORE amount \< **R2**, the user enters tier **PLevel1** + * If **R2** \=\< staked CORE amount \< **R3**, the user enters tier **PLevel2** + * If staked CORE amount \>= **R3**, the user enters tier **PLevel3** (**PMAX**) + +:::note +Staking ratios and the number of levels are configurable and subject to change by governance vote. +::: + +### Example + +The following is a simple example explaining how to calculate the required CORE to stake, based on the above mentioned parameters, to unlock boosted yield tiers for Dual Staking. + +Now, the user will have to stake CORE as per the following Staked CORE Thresholds to enjoy a higher yield on their staked BTC with the above variables: +* Staking Ratio **R1** \= 1,000 +* Staking Ratio **R2** \= 3,000 +* Staking Ratio **R3** \= 8,000 +* Staked BTC quantity \= 10 BTC + +The **Staked CORE Thresholds** with the above variables are: +* Staked CORE Threshold for **PLevel1** \= 10 \* 1,000 \= 10,000 staked CORE +* Staked CORE Threshold for **PLevel2** \= 10 \* 3,000 \= 30,000 staked CORE +* Staked CORE Threshold for **PLevel3** \= 10 \* 8,000 \= 80,000 staked CORE + +Hence, the staked BTC in this example will enjoy a yield of +* **PBASE** if the amount of staked CORE is below 10,000 +* **PLevel1** if the amount of staked CORE is above or equal to 10,000 but below 30,000 +* **PLevel2** if the amount of staked CORE is above or equal to 30,000 but below 80,000 +* **PLevel3 (PMAX)** if the amount of staked CORE is above or equal to 80,000 + +:::note +The multiplier on each boosted yield tier is dynamic and subject to change as per the supply and demand conditions of the market +::: + +:::info +For your new dual staking tier to take effect, you may need to follow two steps. This applies to users who already have BTC staked in earlier rounds at 00:00 am UTC and decide to stake additional CORE to move up tiers. First, after staking CORE, wait until the next 00:00 UTC. Then, claim all your rewards anytime after 00:00 UTC to reset the tier calculation system. Your new tier will activate as soon as you complete the claim. Both steps are essential to ensure your new tier takes effect. +::: + +## What Changes with Dual Staking? + +From the perspective of how staking is performed, nothing fundamentally changes with Dual Staking. Users can still stake Bitcoin and CORE independently; however, by staking both Bitcoin and CORE simultaneously, they unlock the potential for higher returns on Bitcoin staking. Staking both assets is not mandatory but an optional enhancement for Bitcoin holders seeking to maximize their yield. Think of this as a reward boost, where Bitcoin stakers will receive enhanced rewards as they increase the amount of CORE staked. + +Dual Staking strengthens the relationship between Bitcoin and the Core blockchains, aligning incentives and value across both ecosystems. It offers increased rewards for those who actively participate in both staking options without introducing any new requirements or complexities to the staking process. + +## Key Features of Dual Staking + +1. **Increased Rewards Through CORE Staking**: Bitcoin stakers can now stake CORE tokens alongside Bitcoin to unlock higher Bitcoin staking yields. To earn these enhanced staking rates, Bitcoin stakers are required to stake CORE above a certain threshold. + +2. **Cumulative Reward Boost**: Once Dual Staking is adopted, Bitcoin stakers will receive higher rates as they increase the amount of CORE staked. This means stakers can maximize their returns by staking more CORE. + +3. **Risk-Free and Non-Custodial Staking**: Core’s Non-Custodial Bitcoin Staking enables users to maintain complete ownership of their assets throughout the staking process. Bitcoin remains securely in the user’s wallet and is unlocked when their chosen lock period expires. No external entity ever gains custody of the staker’s Bitcoin. Meanwhile, in exchange for stakers locking up their Bitcoin, they can delegate to Core validators that secure CORE and earn rewards. This setup eliminates custodial risk and enhances security, as stakers participate in Core’s security without putting their Bitcoin at risk. + +## Who Can Benefit from Dual Staking? + +Dual staking is designed for everyone, from individuals to the largest financial institutions, who want to earn higher Bitcoin staking rates. In addition to Bitcoin holders, Bitcoin miners can also leverage Dual Staking to optimize their earnings. + +Bitcoin Miners can earn CORE rewards by delegating their hash power to validators on the Core network and staking their Bitcoin and CORE tokens. They can unlock higher yields on their Bitcoin treasuries by staking CORE tokens over the minimum dual staking threshold. Integrating mining rewards with the Dual Staking mechanism allows miners to maximize returns on mining and staking activities. + +:::info +Please refer to the [Dual Staking FAQ section](../FAQs/dual-staking-faqs.md) for further questions or clarifications. For additional support, you may direct your queries to the [Core Dev Forum](http://forum.coredao.org) or [Core Discord Server](https://discord.gg/M2AGJKSG). +::: + +## Conclusion + +Dual Staking is a mechanism for providing sustainable Bitcoin staking rates at scale on Core. Further establishing Core as the leading end-to-end BTCfi platform, the CORE token is becoming the key to unlocking sustainable yield for Bitcoin. diff --git a/docs/stake-and-delegate/staking-overview.md b/docs/stake-and-delegate/staking-overview.md index f2fea68123..5670610739 100644 --- a/docs/stake-and-delegate/staking-overview.md +++ b/docs/stake-and-delegate/staking-overview.md @@ -4,13 +4,13 @@ hide_table_of_contents: false sidebar_position: 2 --- -# Overview of Staking in Core Chain +# Overview of Staking on Core --- -Staking is a fundamental aspect of the Core Chain, serving as a key mechanism for network security, governance, and tokenomics. By staking their BTC or CORE tokens, participants contribute to the operational efficiency and security of the blockchain, while earning rewards for their commitment. This process involves locking up BTC or CORE tokens to support the validation of transactions and the maintenance of the network's integrity. The most bonded validator candidates of staking will become validators and produce blocks. +Staking is a fundamental aspect of the Core blockchain, serving as a key mechanism for network security, governance, and tokenomics. By staking their BTC or CORE tokens, participants contribute to the operational efficiency and security of the blockchain, while earning rewards for their commitment. This process involves locking up BTC or CORE tokens to support the validation of transactions and the maintenance of the network's integrity. The most bonded validator candidates of staking will become validators and produce blocks. -## How Staking Works on the Core Chain -Staking in Core Chain involves CORE and BTC holders delegating their tokens to validators, who are responsible for processing transactions and creating new blocks. The staking mechanism is built on a Delegated Proof of Stake (DPoS) model, where stakeholders influence the network’s consensus by selecting validators based on their staked tokens. +## How Staking Works on the Core Blockchain +Staking on Core involves CORE and BTC holders delegating their tokens to validators, who are responsible for processing transactions and creating new blocks. The staking mechanism is built on a Delegated Proof of Stake (DPoS) model, where stakeholders influence the network’s consensus by selecting validators based on their staked tokens. - **Validator Selection:** BTC and CORE holders can choose validators they trust and delegate their respective tokens to these validators. The weight of a validator in the consensus process is directly proportional to the amount of BTC and CORE staked with them. - **Staking Rewards:** Validators and their delegators, both CORE and BTC stakers, earn rewards based on their contribution to network security. These rewards are derived from transaction fees and new blocks created during the consensus process. @@ -18,10 +18,10 @@ Staking in Core Chain involves CORE and BTC holders delegating their tokens to v ## Staking Economics * Core blockchain allows staking of two tokens, namely, its native token i.e. CORE and the bitcoin. BTC holders can stake their assets through the non-custodial staking fearture of Core that allows BTC holders to stake and delegate their assets without having to give up custody of them. * The CORE validator set is determined by its staking and delegation logic, via a staking module. -* Cycle time for Core to distribute rewards currently set to **1 day**. Each day, **23** validators with the highest hybrid scores are elected to the validator set, thereby becoming responsible for producing blocks on the Core network for the entirety of the round. At the last block of each round, the accumulated rewards for the round are calculated and distributed. +* Cycle time for Core to distribute rewards currently set to **1 day**. Each day, **27** validators with the highest hybrid scores are elected to the validator set, thereby becoming responsible for producing blocks on the Core network for the entirety of the round. At the last block of each round, the accumulated rewards for the round are calculated and distributed. -## Importance of Staking in Core Chain -Staking is crucial for several reasons in the Core Chain ecosystem: +## Importance of Staking for Core Ecosystem +Staking is crucial for several reasons in the Core ecosystem: - **Network Security:** Staking BTC and CORE tokens to support validators directly contributes to the robustness of the network’s security. Validators with a higher stake are deemed more trustworthy, as more at stake disincentivizes malicious behavior. - **Decentralized Governance:** Staking empowers CORE holders with governance rights, allowing them to participate in important decisions that affect the network, including protocol updates and improvements. @@ -29,11 +29,11 @@ Staking is crucial for several reasons in the Core Chain ecosystem: - **Reduced Volatility:** By locking tokens into staking contracts, the circulating supply of CORE tokens is effectively reduced, which can help mitigate price volatility and maintain the token’s value. ## Staking Dynamics and Strategies -Participants in Core Chain network can adopt various staking strategies to maximize their returns and influence on the network: +Participants in the Core network can adopt various staking strategies to maximize their returns and influence on the network: - **Long-term Staking:** Committing their assets, BTC or CORE, for longer durations typically yields higher rewards, as it provides more stability to the network. - **Validator Performance:** Choosing high-performing validators is crucial, as rewards are partly based on the validator's effectiveness in managing the network and creating blocks. - **Risk Management:** Diversifying the delegation across multiple validators can help mitigate risks associated with the potential underperformance or failure of a single validator. ## Conclusion -Staking is a critical component of the Core Chain ecosystem, offering a compelling blend of rewards, governance participation, and enhanced network security. By engaging in staking, BTC and CORE token holders not only help secure the network and drive its governance but also stand to gain from the economic activities generated within the blockchain. As Core Chain continues to evolve, staking remains a pivotal activity, underscoring the decentralized and participant-driven nature of the blockchain. \ No newline at end of file +Staking is a critical component of the Core ecosystem, offering a compelling blend of rewards, governance participation, and enhanced network security. By engaging in staking, BTC and CORE token holders not only help secure the network and drive its governance but also stand to gain from the economic activities generated within the blockchain. As Core continues to evolve, staking remains a pivotal activity, underscoring the decentralized and participant-driven nature of the blockchain. \ No newline at end of file diff --git a/docusaurus.config.js b/docusaurus.config.js index 03937b9de6..0e97d77b6e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -51,7 +51,7 @@ const config = { { googleTagManager: { - containerId: 'GTM-WXHGVVKB', + containerId: 'G-F20V7Q57RZ', }, docs: { @@ -92,6 +92,15 @@ const config = { disableSwitch: false, respectPrefersColorScheme: false, }, + + announcementBar: { + id: 'latest_updates', + content: + '⚠️ LstBTC Launching Soon! coreBTC is sunsetting — redeem your assets at the earliest. ⚠️', + backgroundColor: '#f96e34', + textColor: '#FBFCFC', + isCloseable: false, + }, algolia: { // The application ID provided by Algolia diff --git a/sidebars.js b/sidebars.js index 7b4a5e6df5..c7b0e1594a 100644 --- a/sidebars.js +++ b/sidebars.js @@ -17,7 +17,7 @@ const sidebars = { learnSidebar: [ { type: 'category', - label: '📖 All About Core Chain', + label: '📖 All About Core', link: {type: 'doc', id: 'intro'}, items:[ { @@ -41,7 +41,7 @@ const sidebars = { link: { type: 'generated-index', title: 'Core Concepts', - description: 'Learn about the Nuts and Bolts of the Core Chain Ecossytem!', + description: 'Learn about the Nuts and Bolts of the Core Ecossytem!', slug: '/category/core-concepts', }, items: ['Learn/core-concepts/overview', 'Learn/core-concepts/architecture', @@ -66,25 +66,24 @@ const sidebars = { label: 'Products', link: { type: 'generated-index', - title: 'Exploring Core Chain: Pioneering DeFi Solutions for Bitcoin', - description: 'Learn about the different innovative products offered by Core Chain that are helping in unclocking the DeFi landscape for Bitcoin!', + title: 'Exploring Core: Pioneering DeFi Solutions for Bitcoin', + description: 'Learn about the different innovative products offered by Core that are helping in unclocking the DeFi landscape for Bitcoin!', slug: '/category/products', }, items: [ { type: 'category', collapsed: true, - label: 'Non-Custodial BTC Staking', + label: 'stCORE', items: [ - 'Learn/products/btc-staking/overview', - 'Learn/products/btc-staking/design', + 'Learn/products/stCore/overview', + 'Learn/products/stCore/design', { type: 'category', collapsed: true, label: 'How To Guides', items: [ - 'Learn/products/btc-staking/stake-btc-guide', - 'Learn/products/btc-staking/Redeeming-Guide', + 'Learn/products/stCore/stCore-on-Core', ] }, @@ -93,31 +92,13 @@ const sidebars = { { type: 'category', collapsed: true, - label: 'coreBTC', + label: 'coreBTC (Sunsetted)', items: [ 'Learn/products/coreBTC/overview', 'Learn/products/coreBTC/design', 'Learn/products/coreBTC/how-to-guides', ] }, - { - type: 'category', - collapsed: true, - label: 'stCORE', - items: [ - 'Learn/products/stCore/overview', - 'Learn/products/stCore/design', - { - type: 'category', - collapsed: true, - label: 'How To Guides', - items: [ - 'Learn/products/stCore/stCore-on-Core', - ] - }, - - ] - }, ] }, { @@ -129,6 +110,16 @@ const sidebars = { ] }, 'Learn/governance', + + { + type: 'category', + collapsed: true, + label: 'Core Ignition', + items: [ + 'CoreIgnition/Overview', + 'CoreIgnition/Mechanics', + ] + }, {type: 'doc', id: 'Learn/audit', label:'Audit'}, ] @@ -138,7 +129,7 @@ const sidebars = { { type: 'category', collapsed: true, - label: '💻 Core Chain for Developers', + label: '💻 Core for Developers', items: [ { type: 'category', @@ -169,8 +160,8 @@ const sidebars = { label: 'Developer Guides', link: { type: 'generated-index', - title: 'Developer Guides: Mastering Core Chain Essentials', - description: 'Unlock Your Potential: Detailed Developer Guides for Building on Core Chain', + title: 'Developer Guides: Mastering Core Essentials', + description: 'Unlock Your Potential: Detailed Developer Guides to Build on Core', slug: '/category/dev-guides', }, items: [ @@ -179,7 +170,13 @@ const sidebars = { 'Dev-Guide/contract-verify', 'Dev-Guide/erc20-tokens', 'Dev-Guide/erc721-tokens', - 'Dev-Guide/dapp-on-core',] + 'Dev-Guide/dapp-on-core', + { + type: 'link', + label: 'Switchboard VRF', // The link label + href: 'https://docs.switchboard.xyz/docs/switchboard/switchboard-randomness/on-evm-networks', // The external URL + }, + ] }, { type: 'category', @@ -201,9 +198,12 @@ const sidebars = { items: ['FAQs/core-faqs', 'FAQs/core-node-faqs', 'FAQs/validator-faqs', 'FAQs/delegator-faqs', 'FAQs/coreBTC-faqs', 'FAQs/btc-staking-faqs', - 'FAQs/LST-stCore-faqs','FAQs/core-api-faqs' ] + 'FAQs/dual-staking-faqs', + 'FAQs/LST-stCore-faqs','FAQs/core-api-faqs', + 'CoreIgnition/FAQs'] }, ], + nodeSidebar:[ { type: 'category', @@ -254,12 +254,36 @@ const sidebars = { ] }, ], + stakeDelegateSidebar:[ { type: 'category', collapsed: true, label: '💸 Staking', - items: ['stake-and-delegate/staking-overview'] + items: ['stake-and-delegate/staking-overview', + // 'stake-and-delegate/core-staking', + { + type: 'category', + collapsed: true, + label: 'Non-Custodial BTC Staking', + items: [ + 'Learn/products/btc-staking/overview', + 'stake-and-delegate/dual-staking', + 'Learn/products/btc-staking/design', + { + type: 'category', + collapsed: true, + label: 'How To Guides', + items: [ + 'Learn/products/btc-staking/stake-btc-guide', + 'Learn/products/btc-staking/dual-staking-guide', + 'Learn/products/btc-staking/Redeeming-Guide', + ] + }, + ] + }, + + ] }, { type: 'category', diff --git a/src/pages/index.js b/src/pages/index.js index 842494e235..4750fd8943 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -4,15 +4,19 @@ import Layout from '@theme/Layout'; import { Redirect } from 'react-router-dom'; +// export default function Home() { +// const {siteConfig} = useDocusaurusContext(); +// return ( +// +//
+// return ; +//
+//
+// ); +// } + export default function Home() { - const {siteConfig} = useDocusaurusContext(); - return ( - -
- return ; -
-
- ); -} + return ; +} \ No newline at end of file diff --git a/static/img/btc-staking/NCBS Workflow.png b/static/img/btc-staking/NCBS Workflow.png new file mode 100644 index 0000000000..36fdc92e75 Binary files /dev/null and b/static/img/btc-staking/NCBS Workflow.png differ diff --git a/static/img/dual-staking/dual-staking-1.png b/static/img/dual-staking/dual-staking-1.png new file mode 100644 index 0000000000..7d82de5065 Binary files /dev/null and b/static/img/dual-staking/dual-staking-1.png differ diff --git a/static/img/dual-staking/dual-staking-10.png b/static/img/dual-staking/dual-staking-10.png new file mode 100644 index 0000000000..ea25bd1d4d Binary files /dev/null and b/static/img/dual-staking/dual-staking-10.png differ diff --git a/static/img/dual-staking/dual-staking-11.png b/static/img/dual-staking/dual-staking-11.png new file mode 100644 index 0000000000..fdc1c0c008 Binary files /dev/null and b/static/img/dual-staking/dual-staking-11.png differ diff --git a/static/img/dual-staking/dual-staking-12.png b/static/img/dual-staking/dual-staking-12.png new file mode 100644 index 0000000000..d73d7b8359 Binary files /dev/null and b/static/img/dual-staking/dual-staking-12.png differ diff --git a/static/img/dual-staking/dual-staking-13.png b/static/img/dual-staking/dual-staking-13.png new file mode 100644 index 0000000000..82170f4e32 Binary files /dev/null and b/static/img/dual-staking/dual-staking-13.png differ diff --git a/static/img/dual-staking/dual-staking-14.png b/static/img/dual-staking/dual-staking-14.png new file mode 100644 index 0000000000..b47de3d8d4 Binary files /dev/null and b/static/img/dual-staking/dual-staking-14.png differ diff --git a/static/img/dual-staking/dual-staking-15.png b/static/img/dual-staking/dual-staking-15.png new file mode 100644 index 0000000000..d924e6107a Binary files /dev/null and b/static/img/dual-staking/dual-staking-15.png differ diff --git a/static/img/dual-staking/dual-staking-16.png b/static/img/dual-staking/dual-staking-16.png new file mode 100644 index 0000000000..f536a5f9f1 Binary files /dev/null and b/static/img/dual-staking/dual-staking-16.png differ diff --git a/static/img/dual-staking/dual-staking-2.png b/static/img/dual-staking/dual-staking-2.png new file mode 100644 index 0000000000..5b312dd009 Binary files /dev/null and b/static/img/dual-staking/dual-staking-2.png differ diff --git a/static/img/dual-staking/dual-staking-3.png b/static/img/dual-staking/dual-staking-3.png new file mode 100644 index 0000000000..718a7e205a Binary files /dev/null and b/static/img/dual-staking/dual-staking-3.png differ diff --git a/static/img/dual-staking/dual-staking-4.png b/static/img/dual-staking/dual-staking-4.png new file mode 100644 index 0000000000..5d09c12de6 Binary files /dev/null and b/static/img/dual-staking/dual-staking-4.png differ diff --git a/static/img/dual-staking/dual-staking-5.png b/static/img/dual-staking/dual-staking-5.png new file mode 100644 index 0000000000..5e90b27cc2 Binary files /dev/null and b/static/img/dual-staking/dual-staking-5.png differ diff --git a/static/img/dual-staking/dual-staking-6.png b/static/img/dual-staking/dual-staking-6.png new file mode 100644 index 0000000000..1e763d8aa3 Binary files /dev/null and b/static/img/dual-staking/dual-staking-6.png differ diff --git a/static/img/dual-staking/dual-staking-7.png b/static/img/dual-staking/dual-staking-7.png new file mode 100644 index 0000000000..7b79e559aa Binary files /dev/null and b/static/img/dual-staking/dual-staking-7.png differ diff --git a/static/img/dual-staking/dual-staking-8.png b/static/img/dual-staking/dual-staking-8.png new file mode 100644 index 0000000000..e5582d7749 Binary files /dev/null and b/static/img/dual-staking/dual-staking-8.png differ diff --git a/static/img/dual-staking/dual-staking-9.png b/static/img/dual-staking/dual-staking-9.png new file mode 100644 index 0000000000..e6c887f191 Binary files /dev/null and b/static/img/dual-staking/dual-staking-9.png differ diff --git a/static/img/faucet/faucet-test2.png b/static/img/faucet/faucet-test2.png new file mode 100644 index 0000000000..6f33dc7c73 Binary files /dev/null and b/static/img/faucet/faucet-test2.png differ diff --git a/static/img/native-staking/updated-ui/staking-guide-1.png b/static/img/native-staking/updated-ui/staking-guide-1.png new file mode 100644 index 0000000000..03826e15c1 Binary files /dev/null and b/static/img/native-staking/updated-ui/staking-guide-1.png differ diff --git a/static/img/native-staking/updated-ui/staking-guide-2.png b/static/img/native-staking/updated-ui/staking-guide-2.png new file mode 100644 index 0000000000..b2b84bd53c Binary files /dev/null and b/static/img/native-staking/updated-ui/staking-guide-2.png differ diff --git a/static/img/native-staking/updated-ui/staking-guide-3.png b/static/img/native-staking/updated-ui/staking-guide-3.png new file mode 100644 index 0000000000..cb0eef5e9e Binary files /dev/null and b/static/img/native-staking/updated-ui/staking-guide-3.png differ diff --git a/static/img/native-staking/updated-ui/staking-guide-4.png b/static/img/native-staking/updated-ui/staking-guide-4.png new file mode 100644 index 0000000000..b2975a2086 Binary files /dev/null and b/static/img/native-staking/updated-ui/staking-guide-4.png differ diff --git a/static/img/native-staking/updated-ui/staking-guide-5.png b/static/img/native-staking/updated-ui/staking-guide-5.png new file mode 100644 index 0000000000..da77c01494 Binary files /dev/null and b/static/img/native-staking/updated-ui/staking-guide-5.png differ diff --git a/static/img/native-staking/updated-ui/staking-guide-6.png b/static/img/native-staking/updated-ui/staking-guide-6.png new file mode 100644 index 0000000000..7ddd44367d Binary files /dev/null and b/static/img/native-staking/updated-ui/staking-guide-6.png differ diff --git a/static/img/native-staking/updated-ui/staking-guide-7.png b/static/img/native-staking/updated-ui/staking-guide-7.png new file mode 100644 index 0000000000..06a86b1fd5 Binary files /dev/null and b/static/img/native-staking/updated-ui/staking-guide-7.png differ diff --git a/static/img/native-staking/updated-ui/staking-guide-8.png b/static/img/native-staking/updated-ui/staking-guide-8.png new file mode 100644 index 0000000000..1eb11c47af Binary files /dev/null and b/static/img/native-staking/updated-ui/staking-guide-8.png differ diff --git a/static/img/native-staking/updated-ui/staking-guide-9.png b/static/img/native-staking/updated-ui/staking-guide-9.png new file mode 100644 index 0000000000..2aed30e942 Binary files /dev/null and b/static/img/native-staking/updated-ui/staking-guide-9.png differ diff --git a/static/img/native-staking/updated-ui/staking-guide.png b/static/img/native-staking/updated-ui/staking-guide.png new file mode 100644 index 0000000000..7b5737150f Binary files /dev/null and b/static/img/native-staking/updated-ui/staking-guide.png differ diff --git a/static/img/solidity-support/hardhat-evm-setting.png b/static/img/solidity-support/hardhat-evm-setting.png new file mode 100644 index 0000000000..2e7d33bc94 Binary files /dev/null and b/static/img/solidity-support/hardhat-evm-setting.png differ diff --git a/static/img/solidity-support/remix-setting.png b/static/img/solidity-support/remix-setting.png index 39644a001c..c595755318 100644 Binary files a/static/img/solidity-support/remix-setting.png and b/static/img/solidity-support/remix-setting.png differ diff --git a/static/img/testnet-wallet-config/chainlist-testnet-connect-1.png b/static/img/testnet-wallet-config/chainlist-testnet-connect-1.png index 9814a3bf81..a6a54d629c 100644 Binary files a/static/img/testnet-wallet-config/chainlist-testnet-connect-1.png and b/static/img/testnet-wallet-config/chainlist-testnet-connect-1.png differ diff --git a/static/img/testnet-wallet-config/chainlist-testnet-connect-2.png b/static/img/testnet-wallet-config/chainlist-testnet-connect-2.png index d0aba2d79d..9ac9f00195 100644 Binary files a/static/img/testnet-wallet-config/chainlist-testnet-connect-2.png and b/static/img/testnet-wallet-config/chainlist-testnet-connect-2.png differ diff --git a/static/img/testnet-wallet-config/testnet-config-wallet-1.png b/static/img/testnet-wallet-config/testnet-config-wallet-1.png index eefe28c950..8251128780 100644 Binary files a/static/img/testnet-wallet-config/testnet-config-wallet-1.png and b/static/img/testnet-wallet-config/testnet-config-wallet-1.png differ