bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 21쪽 중 16쪽
to `nodeExit`,
* @notice but the txn can be broadcast to the chain by other address after being authenticated by the node.
* @notice Compared with the `nodeExit`, it is gasless for the verifier node.
* @notice following the eip-712.
*
* @dev Emits `NodeClear`.
*
* @param expiredAt: transaction expiration time
* @param signer: address of verifier node ready to exit
*/
function nodeExitWithSignature(
uint256 expiredAt, address signer, uint8 v, bytes32 r, bytes32 s
) external;
/**
* @notice Similar to `nodeModifyCommissionRate`,
* @notice but the txn can be broadcast to the chain by other address after being authenticated by the node.
* @notice Compared with the `nodeModifyCommissionRate`, it is gasless for the verifier node.
* @notice following the eip-712.
*
* @dev Emits `NodeModifyCommissionRate`.
*
* @param commissionRate: rate of commission, which is given by NFT holders to the verifier node
* @param expiredAt: transaction expiration time
* @param signer: address of verifier node
*/
function nodeModifyCommissionRateWithSignature(
uint32 commissionRate, uint256 expiredAt, address signer, uint8 v, bytes32 r, bytes32 s
) external;
/**
* @notice Specify the address that can claim rewards of this verifier node
* @notice it is gasless for the verifier node.
* @notice following the eip-712.
*
* @dev Emits `NodeSetClaimer`.
*
* @param claimer: address of whom can claim reward of this verifier
* @param expiredAt: transaction expiration time
* @param signer: address of verifier node
*/
function nodeSetRewardClaimerWithSignature(
address claimer, uint256 expiredAt, address signer, uint8 v, bytes32 r, bytes32 s
) external;
/**
* @notice Claim reward of node.
* @notice The reward for reporting verifications is divided into two parts: node's reward and delegators' reward
* @notice Only when the node is online for more than 6 hours/day will there be reward.
*
* @dev Emits `NodeClaim`.
*
* @param node: address of node to claim reward
*/
function nodeClaim(address node) external;
/**
* @notice Anyone can initiate a slash for a miss reporting of a node.
* @notice Each miss reporting of a node can only be slashed once.
* @notice When a node is selected by VRF but fails to report a verification within the specified time,
* @notice the node can be slashed.
*
* @dev Emits `NodeSlash`.
*
* @param node: address of node to be slashed
* @param attestationID: id of attestation that node miss reporting
* @param index: index of this node in vrfChosen list of this attestation
*/
function nodeSlash(address node, bytes32 attestationID, uint32 index) external;
/**
* @notice If the node is online but hasn't reported verification that day,
* @notice the smart contract needs to be notified through this function to update the status of the node today.
*
* @param node: address of the node to report daily active
*/
function nodeReportDailyActive(address node) external;
/**
* @notice Confirm the node reward,
* @notice the smart contract needs to be notified through this function to update the reward of the node before today.
*
* @param node: address of the node to confirm rewards
*/
function confirmNodeRewards(address node) external;
/**
* @notice After an attestation is reported, a group of nodes will be randomly selected through chainlink's VRF.
* @notice These nodes need to submit the verification within the specified time.
* @notice When a node is selected by VRF, the proof is submitted by calling `nodeReportVerification`.
* @notice The verification cannot be submitted repeatedly.
*
* @dev Only nodes chosen by VRF in this attestation.
* @dev Emits `NodeReportVerification`.
*
* @param attestationID: id of attestation
* @param index: index of this node in vrfChosen list of this attestation
* @param result: Whether the attestation is valid after being checked by the node.
*/
function nodeReportVerification(bytes32 attestationID, uint32 index, AttestationResult result) external;
/**
* @notice Batch reporting verification.
* @notice One address can collect multiple verifications and delegate reporting them in batches,
* @notice following the eip-712.
*
* @dev Emits `NodeReportVerificationBatch`.
*/
function nodeReportVerificationBatch(bytes32 attestationID, VerificationInfo[] calldata infos) external;
/**
* @notice If the NFT holder doesn't want to run the node to report the verification himself,
* @notice he can delegate the authority to others to run by calling `delegate`.
* @notice After delegating, NFT holders will give a proportion of rewards (10%) to the delegatee.
*
* @dev Emits `Delegate`.
*
* @param tokenID: tokenID of CarvNft to be delegated.
* @param to: address of whom you want to delegate to
*/
function delegate(uint256 tokenID, address to) external;
/**
* @notice Specify a new delegatee to replace the current delegatee.
* @notice During the `redelegate`, the node may be triggered to exit.
*
* @dev Emits `Redelegate`.
* @dev When the node's delegation weight is reduced to 0, it will be forced offline. Emits `NodeClear`
*
* @param tokenID: tokenID of CarvNft to be redelegated.
* @param to: address of whom you want to redelegate to
*/
function redelegate(uint256 tokenID, address to) external;
/**
* @notice Cancel current delegation.
* @notice During the `undelegate`, the node may be triggered to exit.
*
* @dev Emits `undelegate`.
* @dev When the node's delegation weight is reduced to 0, it will be forced offline. Emits `NodeClear`
*
* @param tokenID: tokenID of CarvNft to be undelegated.
*/
function undelegate(uint256 tokenID) external;
/**
* @notice Claim rewards corresponding to a certain tokenID owned by you.
* @notice vault.rewardsWithdraw() will be called to transfer veCARV to the user.
* @notice After the user claim the reward, this CarvNft cannot be redeemed.
*
* @dev Emits `ClaimRewards`.
*
* @param tokenID: The token ID that needs to be claimed rewards
*/
function claimRewards(uint256 tokenID) external;
/**
* @notice Check whether this tokenID has already claimed rewards.
*
* @param tokenID: token ID
* @return claimed: whether this tokenID has already claimed rewards
*/
function checkClaimed(uint256 tokenID) external view returns (bool);
/**
* @notice Get the index of today.
*/
function todayIndex() external view returns (uint32);
/**
* @notice Get the offset of today.
*/
function todayOffset() external view returns (uint256);
}
```
# SGX Attestation Verification
## SGX Attestation Verification Flow
A SGX-based Gramine service generates a TEE attestation, which is uploaded to a smart contract. Verifiers are required to read and verify the TEE attestation. The verification process typically includes the following steps:
1. **Extract the Attestation**: Initially, extract the attestation data from the smart contract.
2. **Parse the Attestation**: Parse the extracted attestation data, which usually includes the report body, signature, and signing certificate.
* **Report Body**: The main part of the report containing information about the execution environment, such as the security version number, attributes, attribute mask, and measurements.
* **Report Data**: The data section of the report, containing user-defined data.
* **Signature**: The signature over the report body and report data, used to verify the report's integrity and authenticity.
3. **Verify the Signature**: Check the validity of the attestation's signature. This often involves using the public key from the signing certificate to validate the signature.
4. **Certificate Chain Verification**: Confirm that the signing certificate's chain of trust is valid and issued by a trusted root certificate.
5. **Report Body Verification**: Analyze the information in the report body to ensure it meets the expected criteria, including:
* **MRENCLAVE Verification**: Ensure the MRENCLAVE value in the report body matches the expected value to confirm the executed code is as intended.
* **Timestamp**: Verify the timestamp of the report to ensure it is current.
* **User Data Verification**: If user data is included in the report body, verify that this data meets the expected standards.
### Verification fields and methods
* **Signature Verification**: Validate the signature using the public key to ensure the attestation has not been tampered with.
* **Certificate Chain Verification**: Inspect the certificate chain to ensure the signing certificate is issued by a trusted CA.
* **MRENCLAVE Verification**: Compare the MRENCLAVE value in the report body with the expected value to ensure the correct executable code is loaded (to do in version 1).
* **Timestamp**: Check the report’s generation time to ensure the information is up to date.
* **User Data**: If applicable, verify the user-defined data in the report body.
## References
{% embed url="<https://github.com/intel/SGXDataCenterAttestationPrimitives/blob/main/SampleCode/RustQuoteVerificationSample/src/main.rshttps://github.com/intel/SGXDataCenterAttestationPrimitives/blob/main/QuoteVerification/dcap_quoteverify/sgx-dcap-quoteverify-rs/src/lib.rs>" %}
{% embed url="<https://github.com/intel/SGXDataCenterAttestationPrimitives/blob/main/QuoteVerification/dcap_quoteverify/sgx-dcap-quoteverify-rs/src/lib.rs>" %}
# Verifier Node Sale Dynamics
<figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FZAHYew1LFfU2hTqbBOYM%2FCARV%20Node%20Dynamic.jpg?alt=media&token=55687f3b-b94c-4351-a34c-05973f24bf5b" alt=""><figcaption><p>Verifier Node Sale Dynamic</p></figcaption></figure>
# Smart Contract Addresses
> For details on contracts other than those related to nodes, please refer to [Smart Contracts & Security](/carv-ecosystem/carv-play/smart-contracts-and-security)
## Node Mainnet Smart Contracts
**ABI:** <https://github.com/carv-protocol/contracts/tree/main/abi>
**Network:** [Arbitrum](https://arbiscan.io/)
<table><thead><tr><th width="234">Smart Contract Name</th><th>Smart Contract Address</th></tr></thead><tbody><tr><td>CARV</td><td>0xc08Cd26474722cE93F4D0c34D16201461c10AA8C</td></tr><tr><td>veCARV</td><td>0x2b790Dea1f6c5d72D5C60aF0F9CD6834374a964B</td></tr><tr><td>Vault</td><td>0xC34ADEDeABe92598F377cdb678Ae83fAe3D0c489</td></tr><tr><td>Settings</td><td>0x7aFC144a0c3C62e24d8f9c592feF8F65ce631C59</td></tr><tr><td>VRF</td><td>0x7CadD8a4B0Fd56154B186274ba3115E537A86e37</td></tr><tr><td>Protocol Service</td><td>0x1fab4B4B691a86bb16c296cC06E8cf0c12695B8E</td></tr><tr><td>Proxy</td><td>0xa91fF8b606BA57D8c6638Dd8CF3FC7eB15a9c634</td></tr><tr><td>Admin</td><td>0x50a521042D90280BC0DA9e701A9299605a84174a</td></tr><tr><td>NFT License</td><td>0x6584533decbcb8c05fb7eabfa93f92b7b3a85038</td></tr><tr><td>veCARV Airdrop</td><td>0x584cB7Dae5158be594AA1022Fb38017C791af2A0</td></tr></tbody></table>
**Network:** [Base](https://basescan.org/)
<table><thead><tr><th width="234">Smart Contract Name</th><th>Smart Contract Address</th></tr></thead><tbody><tr><td>CARV</td><td>0xc08Cd26474722cE93F4D0c34D16201461c10AA8C</td></tr><tr><td>Staking SBT Certification</td><td>0x2b790Dea1f6c5d72D5C60aF0F9CD6834374a964B</td></tr></tbody></table>
## Public Node Sale Smart Contract Addresses
**Network:** [Solana](https://explorer.solana.com/)
<table><thead><tr><th width="200">Sale Type</th><th>Smart Contract Addresses</th></tr></thead><tbody><tr><td>Public Sale Tier 1-10</td><td>2175hwrgv8WRt9GG1Ucu94KC16jC4v8W1Eidy5zPZ25x</td></tr></tbody></table>
## Public Sale Smart Contract Addresses
**Network:** [Arbitrum](https://arbiscan.io/)
<table><thead><tr><th width="215">Sale Type</th><th>Smart Contract Addresses</th></tr></thead><tbody><tr><td>Public Sale Tier 1</td><td>0x80adA4D9F18996c19df7d07aCfE78f9460BBC151</td></tr><tr><td>Public Sale Tier 2</td><td>0x82720570AC1847FD161b5A01Fe6440c316e5742c</td></tr><tr><td>Public Sale Tier 3</td><td>0x3F3C6DE3Bbe1F2fdFb4B43a49e599885B7Fb1a27</td></tr><tr><td>Public Sale Tier 4</td><td>0xc674BEB2f5Cd94A748589A9Dadd838b9E09AABD4</td></tr><tr><td>Public Sale Tier 5</td><td>0xF8a8A71d90f1AE2F17Aa4eE9319820B5F394f629</td></tr><tr><td>Public Sale Tier 6</td><td>0x125711d6f0AAc9DFFEd75AD2B8C51bDaF5FAEd71</td></tr><tr><td>Public Sale Tier 7</td><td>0x3371b74beC1dE3E115A4148956F94f55bEA8cD00</td></tr><tr><td>Public Sale Tier 8</td><td>0xa1D3632C9Dc73e8EcEBAe99a8Ea00F50F226A8B9</td></tr><tr><td>Public Sale Tier 9</td><td>0xD7C3E0C20Ab22f1e9A59e764B1b562E1dD7438B0</td></tr><tr><td>Public Sale Tier 10</td><td>0xc8c72AE5a74c3c0a0B2c0B0855a6f007a2C9B11A</td></tr><tr><td>Public Sale Tier 11</td><td>0xC506294beF7cffcF7e45Aa17b299516EEe76F6eE</td></tr><tr><td>Public Sale Tier 12</td><td>0xf6c0b24254E4423962f1076C5f5134e1312Aafe9</td></tr><tr><td>Public Sale Tier 13</td><td>0x4020acDB0d62AD337383b53e32f17fC629568a49</td></tr><tr><td>Public Sale Tier 14</td><td>0x1E4c63886c8F157d0aA29F0F9c1F479b60C6055E</td></tr><tr><td>Public Sale Tier 15</td><td>0xD767424230a633E790b4AE4a8A7e1E2511F3B197</td></tr><tr><td>Public Sale Tier 16</td><td>0xD7370b509ffF524E811523669bbA43b107dC40a0</td></tr><tr><td>Public Sale Tier 17</td><td>0x6B003d209A452EA51AF14E853706f98131f98e8d</td></tr><tr><td>Public Sale Tier 18</td><td>0x257A8e37fB36192Ae262A37B983d726e049C5606</td></tr><tr><td>Public Sale Tier 19</td><td>0x242F0aef35d06f3Ee12C70c355c2df9b4FbDeCDF</td></tr><tr><td>Public Sale Tier 20</td><td>0x7BAC674548C63e7CcbB17864131BDDb99C29b589</td></tr><tr><td>Public Sale Tier 21</td><td>0x9C6d5699B5AEEB2D5266AA1f2C134647386fc08b</td></tr><tr><td>Public Sale Tier 22</td><td>0x7D20f7111D93f4Eabd236B88414Bf41f4e26bd61</td></tr><tr><td>Public Sale Tier 23</td><td>0xEA67230750b5AADb8309C6e6F9A441524b15c7F3</td></tr><tr><td>Public Sale Tier 24</td><td>0xaA46f9A7b618A1e2c550Aa7f86a0eD1b5005dad3</td></tr><tr><td>Public Sale Tier 25</td><td>0x1870d4BF19F00011059f09412e0Ae105836B2b51</td></tr><tr><td>Public Sale Tier 26</td><td>0x607c6Ba612BFF0dd699DccE43cDC364C1FcBe4d5</td></tr><tr><td>Public Sale Tier 27</td><td>0xb88Bed927a5D94bfC2f12227a446Ba9b6e8c00cD</td></tr><tr><td>Public Sale Tier 28</td><td>0x4a36379c25400D94C328a9Aa3BC1FfB25fAc073a</td></tr><tr><td>Public Sale Tier 29</td><td>0x340FBD6ED6401A1bEbdea7b7644EE8bf30330c6D</td></tr><tr><td>Public Sale Tier 30</td><td>0xEE8395E4269C740931EFD427eb7027DD1114777C</td></tr><tr><td>Public Sale Tier 31</td><td>0x0a0e6B162440fdD0a2E185512E95Ec1031C258Bc</td></tr><tr><td>Public Sale Tier 32</td><td>0xDa39e9d12614Eae2F98D2dc1Cb13399d53Eef56c</td></tr><tr><td>Public Sale Tier 33</td><td>0x52875E4F5EBB92917276eaA8447cd690C1F63DDB</td></tr><tr><td>Public Sale Tier 34</td><td>0x4EfA5109b4cEEF9511107f64aDBaa5Fee49F7584</td></tr><tr><td>Public Sale Tier 35</td><td>0xca7188D8f9cE1d47B99127F7bC99eeab1781A5AB</td></tr><tr><td>Public Sale Tier 36</td><td>0xC5A35c756B3281bC9613b386fbB6603A3789340B</td></tr><tr><td>Public Sale Tier 37</td><td>0x8A4b87dfA44cC40B9654aB65557583b9793e62A6</td></tr><tr><td>Public Sale Tier 38</td><td>0x61c9A13e9690Cb8Ee5a351B67267608824A6A549</td></tr><tr><td>Public Sale Tier 39</td><td>0x60702643d1f15E0Df95C57C266AebC254f647841</td></tr><tr><td>Public Sale Tier 40</td><td>0xD7A17f51aC326c080428c7b7dF46ba9266827B94</td></tr></tbody></table>
# License Key (NFT)
Anyone can operate verifiers to validate results for their own use, but only authorized verifiers possessing a License Key are entitled to engage in on-chain consensus and earn rewards.
The purchase page is set to go live shortly.
After purchasing a node license, node licenses will be distributed as an NFT to the purchase wallet of the user. Only the wallet with the node license can then operate the node and earn tokens as rewards.
Node licenses are initially non-transferable.
### Burner Wallet
This is a hot wallet used to generate verification transactions. It must be connected to your primary wallet, which contains the License Key.
# Delegation
{% hint style="info" %}
You can now follow the [tutorial](/carv-ecosystem/verifier-nodes/join-mainnet-verifier-nodes/delegation-tutorial) to explore and try out the delegation feature.
{% endhint %}
## **Introduction to Delegation**
Delegating enhances the network by utilizing the verifier node license key (NFT) through delegating their NFT to Nodes-as-a-Service (NaaS) providers. In exchange, Delegators earn $CARV from the reward pool. CARV is forging partnerships with leading NaaS providers, allowing you to delegate your license key for them to manage nodes on your behalf. However, it's possible to choose NaaS providers that underperform, potentially yielding lower returns on investment. Delegators are advised to thoroughly evaluate potential NaaS providers. A reputation index is available to assist delegators in comparing node operators. Additionally, the CARV Governance Council will continue to oversee NaaS providers to ensure quality and reliability.
## **How are Delegators rewarded?**
NaaS Provider Commission Rate (NPCR) is a percentage share of the rewards received by NaaS providers from serving requests to node owners. After deducting the NPCR from total rewards, the remaining rewards will be shared with delegators(node owners). NaaS providers are free to set this rate to any value they desire. A lower NPCR means that the Naas provider shares more of their rewards with their delegators.
# Node Rewards
## **Verifier Node Rewards**
Verifier node operators will receive token rewards for their contributions to the network’s operation and security (data privacy protection). 
Up to **25%** of the total supply will be provided to verifier node operators in **4 years**. Emission adopts a release model of 25% reduction every 6 months.
<figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2Fd9S0qVJ2m5T60cJndGkg%2FCARV%20Token%20Rewards%20Estimation.jpg?alt=media&token=9d8a6630-b7b9-4e2f-a987-0a1ce8b63ac2" alt=""><figcaption></figcaption></figure>
{% hint style="info" %}
 It is expected to release about 50% token in the first year.
{% endhint %}
\
**Note: This is not a token sale. See** [**https://carv.io/node-disclaimer**](https://carv.io/node-disclaimer) **for more details.**
CARV Foundation is committed to compliance. Participants will receive $veCARV instead of receiving native token directly and convert it to $CARV through redemption, then claim the rewards.
Check [here ](/carv-token/utility)for more details about $veCARV and $CARV converting.
# Join Mainnet Verifier Nodes
The CARV test verifier is currently operational on the Arbitrum One network. Those who have purchased a Verifier License can explore and test the verifier nodes before the mainnet launch. There are two ways you can participate: either by delegating or by operating your own node:
* **Delegation**: You can delegate your node license to any active nodes listed on the explorer. Delegation is the simplest way to participate, as you don't need to manage the nodes. However, you must ensure the node you delegate to has sufficient uptime; otherwise, you will not receive any rewards. If the node maintains enough uptime, you will receive rewards minus the commission rate set by the node. Delegation can save you the costs associated with operating the node yourself.
* **Operating your own nodes**: If you prefer to operate your own node, you will be responsible for maintaining the node's uptime and handling any software upgrades. However, you will also have the opportunity to receive delegations from the community. We offer multiple ways to operate your own node; please see [more details](/carv-ecosystem/verifier-nodes/join-mainnet-verifier-nodes/operating-a-verifier-node) for further information.
**Prerequisites:**
* [Creating your first wallet](/carv-ecosystem/verifier-nodes/join-mainnet-verifier-nodes/prerequisites#create-a-wallet)
* [Buy a Verifier Node](/carv-ecosystem/verifier프로젝트로 돌아가기