CARV 백서

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

to bring an individual’s own identity to different applications. Even more powerful is the fact that individuals truly own their accounts without relying on centralized gatekeepers, disclosing to different apps components necessary for authentication and approved by individuals.&#x20; Existing solutions such as ENS, although open, decentralized, and more convenient for Ethereum-based applications, suffer from a lack of data standardization and authentication of identity due to inherent anonymity. Other solutions such as SBTs rely on centralized attestors, cannot prevent data tampering, and do not inscribe data into the ledger itself in a privacy enabling way.&#x20; So CARV raised a novel solution, standardize it, [ERC 7231: Identity Aggregated NFT](/carv-ecosystem/carv-account/erc-7231) and launched CARV ID integrated with this standard, an extention of ERC 721 token. With CARV ID, a multi-chain identity aggregating Web2 and Web3 IDs, empowering users to have a unified identity across the universe with: * Credential showcasing: Your ownership, role-behaviors, social relation, and past experiences all can be authorized, verified, and generated into your digital identity and credentials as hard proof to showcase. * Integration capabilities: Applications can integrate CARV ID and gain consented access to user data within your products, empowering interoperability. # ERC 7231 The ERC 7231: Identity Aggregated NFT, pushes the boundaries of solving identity problems with Identity Aggregated NFT, i.e., the individual-authenticated aggregation of web2 and web3 identities to NFTs (SBTs included). This standard extends [ERC-721](https://eips.ethereum.org/EIPS/eip-721) by binding individuals’ Web2 and Web3 identities to non-fungible tokens (NFTs) and soulbound tokens (SBTs). By binding multiple identities, aggregated and compossible identity information can be verified, resulting in more beneficial onchain scenarios for individuals, such as self-authentication, social overlapping, commercial value generation from user targeting, etc. By adding a custom schema in the metadata and updating and verifying the schema hash in the contract, the binding of NFT and identity information is completed. Designing the proposal, we considered the following problems that are solved by this standard:&#x20; <figure><img src="https://eips.ethereum.org/assets/eip-7231/img/Identity-aggregated-NFT-flow.png" alt="ERC 7231"><figcaption><p>ERC 7231: : Identity Aggregated NFT</p></figcaption></figure> 1. Resolve the issue of multiple ID bindings for web2 and web3. By incorporating the MultiIdentities schema into the metadata file, an authorized bond is established between user identity information and NFTs. This schema encompasses a userID field that can be sourced from a variety of web2 platforms, or a decentralized identity (DID) created on blockchain. By binding the NFT ID with the UserIDInfo array, it becomes possible to aggregate multiple identities seamlessly. 2. Users have full ownership and control of their data. Once the user has set the metadata; they can utilize the setIdentitiesRoot function to establish a secure binding between hashed userIDs objects and NFT ID. As only the user holds the authority to carry out this binding, it can be assured that the data belongs solely to the user. 3. Verify the binding relationship between data on-chain and off-chain data through signature based on [ERC-1271](https://eips.ethereum.org/EIPS/eip-1271) Through the signature method based on the [ERC-1271](https://eips.ethereum.org/EIPS/eip-1271) protocol, the verifyIdentiesBinding function of this EIP realizes the binding of the userID and NFT owner address between the on-chain and off-chain. * NFT ownership validation * UserID format validation * IdentitiesRoot Consistency verification * Signature validation from NFT owner As for how to verify the authenticity of the individuals’ identities, wallets, and accounts, there are various methods, such as ZK-based DID authentication on-chain, and off-chain authentication algorithms, such as auth2, openID2, etc. To learn more about this Ethereum Improvement Proposal #7231, please read [here](https://eips.ethereum.org/EIPS/eip-7231). # Verifier Nodes Verifier nodes are components of the [verification layer](broken://pages/f3qNmGd14Orx00KB8FRl). Verifier nodes are lightweight nodes managed by the community. They play a crucial role in maintaining the protocol's integrity, thereby enhancing its trustworthiness and security. Currently, these nodes primarily check TEE attestations on-chain, verifying that the results are reliable and that the process maintains the privacy of user data. # How to Purchase Nodes #### **Step 1 - Go to** [**https://node.carv.io/buy**](https://node.carv.io/buy) **and connect your wallet** <div align="left"><figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FesdBgsuDTU7JxFiJCkWq%2Fimage.png?alt=media&amp;token=9bdff5e7-c210-4ed7-a7fd-7a6849e5959e" alt=""><figcaption></figcaption></figure></div> #### **Step 2 - Get ETH or CARV and Arbitrum gas tokens** The CARV Verifier Node Sale will be on the Arbitrum Network. You will need: * ETH or CARV on Arbitrum network * ETH for gas fees {% hint style="info" %} If you only have CARV on Base network, you can use the token bridge to transfer your CARV tokens to Arbitrum One.\ &#x20;![](https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FfPQX9qtfeyi1u8mqYNWy%2Fimage.png?alt=media\&token=f4a38f39-0007-4d94-bb94-b5adf21304e0) Enter the amount of tokens you'd like to transfer. Note that there will be a 0.1% fee applied to every transfer in addition to the network fees. The transfer usually take less than a minute.\ ![](https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FIyvFVeOtUA97chL5n9d6%2Fimage.png?alt=media\&token=1a6a3268-269c-4256-9035-f19a8cbd0184)&#x20; {% endhint %} #### **Step 3 - Select payment option and set the amount of node(s)** Choose ETH or CARV and enter the number of node(s) that you will be purchasing. <div align="left"><figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FZ2u9PKuWMC6OWURyHw4W%2Fimage.png?alt=media&amp;token=0fca018e-834a-4984-9cb4-e09eaca0a0a4" alt="" width="466"><figcaption></figcaption></figure></div> #### **Step 4 - Agree to all the terms, conditions and disclaimers** <div align="left"><figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2F5Xg1hSmxM7XYnCT1XfuZ%2Fimage.png?alt=media&amp;token=1a5a38bf-d2bc-402e-8d99-5421b2ff517e" alt=""><figcaption></figcaption></figure></div> #### **Step 5 - Purchase your Verifier Node License** Click `Buy Now` and approve the transaction in your wallet. #### **Step 9 - Success!** After confirming your purchase, you will receive a notification on the top right of the page to inform you on the successful purchase. The License NFT(s) will minted to your wallet within a few minutes. **Congratulations, you have now successfully purchased your Verifier Node granting you access to operate a node on CARV!** # Buyback Program ## **What is the Up-to-100% Buyback Program?** In order to empower our community to participate confidently in building the foundation of a sustainable, user-owned internet, CARV is pioneering a mechanism: the 'Up-to-100% Buyback Program', **Eligibility:** Pre-Token Generation Event (TGE) Node license holders who have maintained 70% or higher participation rate, and have not claimed any veCARV rewards will be eligible for the buyback program. {% hint style="info" %} Participants who delegate their node, instead of running it independently, must delegate only to nodes with a commission rate of up to 3% and that maintain over 70% uptime until the buyback claim is made. Additionally, these delegators are not eligible to claim any remaining rewards beyond what is covered by the delegation terms. {% endhint %} **Timeline:** From six months post Token Generation Event (TGE), node license holders have 7 days to participate in the Program. ### **Execution options:** **100% buyback with $CARV**, value equivalent to the price of nodes denominated in USDT at the time of node purchase. 30-day linear vesting from time of buyback. OR **80% immediate buyback in ETH**, value equivalent to the price of nodes snapshot in ETH at time of purchase. Immediate ETH release.\ To ensure transparency and security, CARV is integrating the 100% buyback program into smart contracts and collaborating with reputable, top-tier third-party auditors. {% hint style="info" %} Funds will be collected in a [Ceffu ](https://www.ceffu.com/)cold wallet address and serve as the security deposit for the ETH buyback. Arbitrum Address: [0x3014Ab992464E3323D4b53570baDF782aC897a67 ](https://arbiscan.io/address/0x3014Ab992464E3323D4b53570baDF782aC897a67) {% endhint %} 10,000,000 $CARV is allocated from treasury to ensure a 100% buyback with a 30-day linear vesting period. Node license holders will keep all airdrops prior to participation in the Program. Some of the bought-back nodes will be reallocated to existing active node operators to further incentivize their participation. The rest will go to the CARV treasury, with potential uses including sharing node operation rewards with $CARV stakers, or conducting node resale or burning.\ \ More information will be announced on this webpage. You can also follow CARV's social media and community to receive notifications. # Why Verifier Nodes CARV is renowned for developing both applications and a foundational, modular data layer protocol known as the CARV Protocol. This protocol manages end-to-end data flow, including identity aggregation through [CARV ID](broken://pages/fZG5E7KkcezXwVce3Lch) ([ERC7231](https://eips.ethereum.org/EIPS/eip-7231)), data authentication ([CARVLink](broken://pages/fZG5E7KkcezXwVce3Lch)), storage ([CARV DB](broken://pages/IIphEh6X85yFmRvKHDqi)), processing, and AI model training. Results from these processes are posted across multiple blockchains to ensure fair value distribution. To safeguard the security, decentralization, and privacy of this complete flow, it is critical to incorporate community-operated verifier nodes. These nodes scrutinize the outcomes at each protocol layer, ensuring integrity and compliance with set standards. Currently, these nodes are primarily focused on verifying results from the data processing and AI model training layers. Computations and model training are conducted within Trusted Execution Environment (TEE) clusters to protect user data privacy. The outcomes are then recorded on the blockchain, accompanied by TEE attestation to verify that the processes are secure and private, enabling equitable redistribution of data value among various stakeholders. However, to prevent system manipulation and ensure a fair distribution of data value, involving a third-party to verify the TEE attestation is essential. This necessity drives our active pursuit of community participation to strengthen the protocol by operating these verifier nodes. A single honest node can detect fraudulent activity, but achieving significant enforcement against misbehaving TEE nodes and protecting user data requires that at least half of the nodes operate honestly. Therefore, establishing a decentralized network of community nodes is crucial not only for securing the protocol but also for its scalability. Looking ahead to Q3 2024, these nodes will take on additional responsibilities such as verifying CARV DB, an Autonomous Virtual Storage (AVS) built on Eigenlayer, to ensure reliable content storage for each operator. By Q4 2024, the scope will broaden to include securing CARV Link, an on-chain Oracle/Attestation service that seamlessly imports data from both web2 and web3 sources into the CARV protocol, thereby creating value for users and businesses. Expanding our community node base is vital to support these growing responsibilities and ensure the ongoing robustness of the CARV ecosystem. <br> # How do Verifier Nodes Work ## Overview <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FCAYwqEiIvXKa6MYJqVgd%2Fcarv_protocol_contract_overview.png?alt=media&amp;token=457cc0f4-e03e-4650-9183-d80b98843a2d" alt=""><figcaption><p>CARV Smart Contract Design</p></figcaption></figure> The CARV Protocol consists of five key modules, each corresponding to a separate smart contract: **Proxy**, **Service**, **Vault**, **VRF Manager**, and **Settings**. Each module serves a specific function within the system: * **Vault Contract:** The Vault contract is responsible for managing the assets within the CARV Protocol. It supports three distinct roles: **CARV Treasury**, **veCARV Reward Pool**, and each role is limited to specific operations that can be executed only through predefined methods. The Vault also defines the **reward release curve**, which governs and restricts how reward funds are handled. * **Settings Contract**: This contract manages all the configurations within the CARV Protocol. * **VRF Manager Contract**: The VRF Manager is used to obtain random numbers by calling services like **Chainlink** or **CARVLink** and processing their callbacks. It ensures that logic contracts can access random numbers in a **decoupled** way, allowing smooth upgrades to the random number generation logic without disrupting the system. * **NFT Contract:** This contract oversees the purchase and redemption of NFTs by users. The ETH from NFT purchases is stored in the NFT account within the Vault. Upon redemption, 80% of the ETH is returned to the user (with the remaining 20% serving as a channel fee) or exchanged for an equivalent amount of CARV, which is then linearly released back to the user. The exchange of ETH for CARV is managed by the foundation, completed by the Vault contract, and based on Chainlink exchange rates. * **Protocol Service Contract:** This contract handles the majority of the business logic and includes several components: * **Access Management**: Manages different roles such as admin, TEE (Trusted Execution Environment), and slash roles. * **System Parameter Management**: Governs system parameters through the Settings contract. * **Verifier Operations**: Includes actions like entering, exiting, reporting activity, applying slashes, and managing commissions and claimers. * **Delegation Operations**: Includes delegation, redelegation, and undelegation processes. * **Report Operations**: Manages attestations and verifications. * **Claim Operations**: Handles verifier claims and NFT token ID claims. ## Verifier Nodes Workflow 1. Upon completing data processing, TEE nodes submit the data verification, AI model training result and the TEE attestation to smart contracts on the execution layer. 2. The smart contracts employ a Verifiable Random Function (VRF) to randomly choose a subset of verifiers for attestation validation. > In cryptography, a verifiable random function (VRF) is a random number generator (RNG) that generates an output that can be cryptographically verified as random. Verifiable randomness is essential to many blockchain applications because its tamper-proof unpredictability enables exciting gameplay, rare NFTs, and unbiased outcomes. As the name suggests, a verifiable random function is defined by its core features: Verifiable, Random, Function. 3. Verifiers monitor events from the smart contract to initiate the verification process. 4. Verifiers assess the authenticity of the attestation. For more details, please check [SGX Attestation Verification](/carv-ecosystem/verifier-nodes/how-do-verifier-nodes-work/sgx-attestation-verification) 5. Based on the outcome, verifiers relay their findings to the smart contract: * If the attestation is invalid, the smart contract penalizes the responsible TEE node by slashing its stake, which is then allocated to the verifiers as additional rewards. 6. When the attestation is confirmed as valid with over 50% of designated Verifiers, the smart contract distributes not only the consumers' fees but also on-chain rewards among the TEE nodes, verifiers, and data providers. # CARV/veCARV Token ## **CARV Token** 1. Implements the standard ERC20 (decimals: 18). 2. Mints 1 billion tokens to a specified address upon deployment; no further minting is possible afterward. ## **veCARV Token** 1. A non-transferable ERC20 token (decimals: 18), where standard addresses cannot invoke transfer or *transferFrom* methods. 2. Only the Vault contract can call transfer, used for distributing user verification rewards. 3. Locks the CARV Token address upon deployment, which cannot be modified thereafter. 4. No explicit minting method; veCARV can only be minted through 1:1 staking of CARV and is burned upon redemption. 5. Future governance of the CARV protocol will be enabled by associating the veCARV Token address with the governance contract. ### Function Definitions & Explanations Reference: <https://docs.carv.io/carv-token/utility> ```Solidity interface IveCarv { /** * @notice This struct represents information about a Withdraw by the user. * * `withdrawer`: address of who initiates this Withdraw. * `canceledOrClaimed`: Has this Withdraw been canceled or claimed? * `amount`: The amount of Withdraw initiated by the user. * `timestamp`: The time this Withdraw was initiated. */ struct WithdrawInfo { address withdrawer; bool canceledOrClaimed; uint256 amount; uint256 timestamp; } event Deposit(address depositer, uint256 amount); event Withdraw(uint64 indexed id, address withdrawer, uint256 amount); event CancelWithdraw(uint64 indexed id); event Claim(uint64 id, uint256 amount); event ClaimBatch(uint64[] ids, uint256 amount); /** * @notice convert CARV to veCARV by locking CARV in this contract and minting veCARV to msg.sender. * @notice CARV can be converted to veCARV with 1:1 ratio through deposit. * @notice veCARV stands for voting-escrow CARV, is a non-transferable token. veCARV is mainly used for: * @notice 1. CARV Protocol governance. * @notice 2. Incentive to bootstrap incentive layer, e.g., data owners, providers, consumers. * @notice 3. Used for governance voting in P2E system 'Infinite Play'. * @notice 4. Used in P2E systems to delegate voting rights to escrow pool owners and receive pool rewards. * @notice 5. Incentivizes node operators who secure and support the network. * * @dev Emits `Deposit`. * * @param amount: amount of CARV to be deposited */ function deposit(uint256 amount) external; /** * @notice convert veCARV to CARV, veCARV conversion to CARV requires an unlocking period. * @notice The withdraw rate varies for different unlocking periods, * @notice with longer unlocking periods resulting in higher withdraw rates, reaching up to 100%. * @notice Users are required to pay a network channel fee of 1 CARV each time they initiate a Withdraw. * * @dev Emits `Withdraw`. * * @param amount: amount of veCARV to be withdrawn */ function withdraw(uint256 amount) external; /** * @notice Cancel the Withdraw by withdrawID. * @notice It can be canceled before the user claims. * @notice After the operation, the locking veCARV is returned to msg.sender. * * @dev Emits `CancelWithdraw`. * * @param withdrawID: The withdrawID that the user needs to cancel */ function cancelWithdraw(uint64 withdrawID) external; /** * @notice Return the CARV corresponding to the specified withdrawID to the user. * @notice The relationship between the user’s Locking Duration and claimable ratio is as follows: * ----------------------------
프로젝트로 돌아가기