iExec RLC 백서

iExec RLC

원문

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

ty. Workerpools ​ Explore Workerpools Explore the decentralized computing infrastructure: Infrastructure Overview : Monitor the distributed network of computing nodes Worker Metrics : Analyze execution success rates Resource Availability : Check computational resources and capacity Usage Statistics : Analyze workerpool utilization ## /get-started/tooling-and-explorers/bridge RLC Bridge ​ RLC (RLC Token) powers all iExec protocol interactions. You need RLC tokens whether you're executing tasks, accessing protected data, or participating in the iExec confidential computing network. This guide helps you bridge RLC tokens to Arbitrum using the Stargate Bridge. 🧪 Testing on Arbitrum Sepolia For development and testing purposes, you can get free RLC tokens on Arbitrum Sepolia testnet using the iExec RLC Faucet . This allows you to test your iApps, pay for workerpool executions, and access protected datasets without spending real tokens. Available Bridges ​ iExec provides officially supported bridges for seamless token transfer across networks: Stargate Bridge Live Bridge RLC tokens between Ethereum and Arbitrum using LayerZero protocol Access Bridge Stargate Bridge ​ The Stargate Bridge powered by LayerZero enables cross-chain transfers of RLC tokens between Ethereum and Arbitrum mainnet in both directions. Ethereum <> Arbitrum (RLC <> RLC) ​ Visit Stargate : Go to Stargate UI Connect Wallet : Connect your wallet to the Stargate interface Select Networks : Choose your source network (Ethereum or Arbitrum) and destination network Select Token : Choose RLC as the token to bridge Enter Amount : Specify the amount of RLC to transfer Confirm Transaction : Approve the bridge transaction and wait for confirmation Security & Audits ​ The Stargate Bridge uses the LayerZero protocol under the hood, which provides secure cross-chain communication infrastructure. LayerZero is a decentralized protocol that enables trustless cross-chain messaging without requiring intermediate chains or wrapped tokens. The RLC multichain bridge implementation has been thoroughly audited by Halborn , a leading blockchain security firm. The audit report is accessible at halborn.com/audits . Open source ​ The complete source code for the RLC multichain bridge system is publicly available and open source on GitHub: RLC Bridge Repository Security features ​ LayerZero Protocol : Battle-tested cross-chain messaging protocol Smart Contract Audits : Professional security audits by Halborn Open Source : Transparent codebase for community review UUPS Upgradeable : Secure upgrade mechanism for future improvements Role-Based Access Control : Granular permission management Emergency Pause : Dual-level pause system for security incidents ## /get-started/tooling-and-explorers/faucet RLC Faucet ​ Get free RLC tokens on Arbitrum Sepolia testnet to test your iApps, pay for workerpool executions, and access protected datasets without spending real tokens. What are RLC Tokens Used For? ​ In the iExec ecosystem, RLC tokens are used to pay for various services: Pay Workerpools - Compensate computational resources for executing your iApps Pay Protected Data Providers - Access and use protected datasets in your applications Pay iApp Providers - Use decentralized applications deployed on the network These testnet RLC tokens allow you to test all these payment flows without spending real tokens. Eligibility Requirements ​ To be eligible for RLC claims, builders must meet these criteria: GitHub login required for verification Maximum 1 RLC in your wallet to claim (prevents abuse and ensures fair distribution) One claim per 24 hours per authenticated account Claim Details ​ 🚰 iExec RLC Faucet Get 5 RLC tokens per claim on Arbitrum Sepolia testnet for testing your iExec applications and services. 5 RLC per claim GitHub authentication 24-hour cooldown period Balance verification (max 1 RLC) Arbitrum Sepolia testnet only Access Faucet 💡 Development Workflow Use the RLC Faucet for development and testing, then bridge real RLC tokens when ready for production deployment on Arbitrum mainnet. ## /get-started/tooling-and-explorers/important-addresses Important Addresses ​ Quick reference guide to all important iExec protocol addresses. Find RLC token addresses, PoCo smart contracts, and application addresses for Ethereum and Arbitrum networks. 💡 Quick Access Bookmark this page for easy access to all iExec protocol addresses when building on the platform. RLC Token Addresses ​ RLC (RLC Token) is the native cryptocurrency powering the iExec protocol. Use these addresses to interact with RLC tokens on each network. Network Chain ID RLC Address Ethereum Mainnet 1 0x607F4C5BB672230e8672085532f7e901544a7375 Arbitrum Mainnet 42161 0xe649e6a1F2afc63ca268C2363691ceCAF75CF47C Arbitrum Sepolia 421614 0x9923eD3cbd90CD78b910c475f9A731A6e0b8C963 PoCo Smart Contracts ​ Proof of Contribution (PoCo) smart contracts manage the iExec protocol's decentralized computing marketplace. Arbitrum Mainnet ​ Contract Address Diamond Proxy 0x098bFCb1E50ebcA0BaA92C12eA0c3F045A1aD9f0 AppRegistry 0x9950D94fb074182ee93ff79A50Cd698C4983281F DatasetRegistry 0x07Cc4E1EA30dD02796795876509A3BfC5053128D WorkerpoolRegistry 0xe3c13bb4A5068601c6A08041Cb50887B07B5F398 Arbitrum Sepolia ​ Contract Address Diamond Proxy 0xB2157BF2fAb286b2A4170E3491Ac39770111Da3E AppRegistry 0x9950D94fb074182ee93ff79A50Cd698C4983281F DatasetRegistry 0x07Cc4E1EA30dD02796795876509A3BfC5053128D WorkerpoolRegistry 0xe3c13bb4A5068601c6A08041Cb50887B07B5F398 Ethereum Mainnet ​ Contract Address Diamond Proxy 0x3eca1B216A7DF1C7689aEb259eFB04Ad753aafE5 AppRegistry 0x9950D94fb074182ee93ff79A50Cd698C4983281F DatasetRegistry 0x07Cc4E1EA30dD02796795876509A3BfC5053128D WorkerpoolRegistry 0xe3c13bb4A5068601c6A08041Cb50887B07B5F398 Data Protector Contracts ​ Smart contracts for managing protected data and access control. Arbitrum Mainnet ​ Contract Address Core 0xF08f91F7646FDb95a4E24977b8Db91318252A667 Sharing: AddOnlyAppWhitelistRegistry 0xe4f319aDf2f3DbFD3270f35CEc90575dC858A0dA Sharing Contract 0x2dA2D268281d79b81D609D68e4507e7ACDfd7E05 Arbitrum Sepolia ​ Contract Address Core 0x168eAF6C33a77E3caD9db892452f51a5D91df621 Sharing: AddOnlyAppWhitelistRegistry 0x36a1544cE8c72f9b80dB39Fd8A193b6B94FD92B3 Sharing Contract 0x34AD9D161E815D7696777a9D2d668aF2d6e675e9 Application Addresses ​ Web3Mail ​ Web3Mail enables decentralized email communication with privacy-preserving features. Network Whitelist Address Arbitrum Mainnet 0xfa9cceff9431ee0e2a3fe58911073f1357f24e31 Arbitrum Sepolia 0x09d59e1b696d0cb69f46bf762412636e8652ab58 Web3Telegram ​ Web3Telegram enables decentralized Telegram messaging with Web3 integration. Network Whitelist Address Arbitrum Mainnet 0xa7101cf61d4602d55a715be4f2b9e1bc71d22301 Arbitrum Sepolia 0x7f67e78a4b0a98c50333b8b72851952c396601a1 Workerpool Addresses ​ Default workerpool addresses for each network. Network Workerpool Address Arbitrum Mainnet 0x8ef2ec3ef9535d4b4349bfec7d8b31a580e60244 Arbitrum Sepolia 0x2956f0cb779904795a5f30d3b3ea88b714c3123f TIP These are the default workerpools for each network. You can specify a different workerpool when processing protected data or running iApps. Additional Resources ​ iExec Explorer - Explore deals, tasks, and assets RLC Bridge - Bridge RLC tokens between networks Blockchain Explorers - View contracts on block explorers ## /get-started/tooling-and-explorers/subgraph-explorer The Graph Explorer ​ The iExec protocol uses The Graph as a decentralized protocol for indexing and querying blockchain data across multiple networks. This powerful tool allows developers and users to efficiently retrieve and analyze on-chain data through GraphQL queries. What is the Graph? ​ The Graph is a decentralized protocol for indexing and querying blockchain data. It enables developers to build and publish open API called subgraphs that applications can query using GraphQL. This makes it easy to access blockchain data without having to run your own indexing infrastructure. Key Benefits for iExec ​ Decentralized Indexing : Data is indexed by a network of decentralized indexers Real-time Queries : Get up-to-date information about deals, tasks, apps, and protected data GraphQL Interface : Powerful query language for flexible data retrieval Multi-network Support : Access data across different blockchain networks Available Subgraphs ​ iExec has deployed several subgraphs across different networks to provide comprehensive data access. Each subgraph indexes specific aspects of the iExec protocol. iExec PoCo - Arbitrum Live Indexes Proof of Contribution (PoCo) data on Arbitrum mainnet, including apps, deals, tasks and workerpools Explore Subgraph iExec DataProtector - Arbitrum Live Comprehensive indexing service for iExec DataProtector on Arbitrum mainnet, tracking protected data assets, their schemas and owner Explore Subgraph iExec PoCo - Arbitrum Sepolia Live Indexes Proof of Contribution (PoCo) data on Arbitrum Sepolia testnet, including apps, deals, tasks and workerpools Explore Subgraph iExec DataProtector - Arbitrum Sepolia Live Comprehensive indexing service for iExec DataProtector on Arbitrum Sepolia testnet, tracking protected data assets, their schemas and owner Explore Subgraph GraphQL Explorer Interface ​ The Graph provides an interactive GraphQL explorer that allows you to build and test queries directly in your browser. This powerful interface makes it easy to explore the available data and construct complex queries. How to Use the GraphQL Explorer ​ Navigate to a Subgraph : Click on any of the subgraph links above to access the GraphQL explorer Explore the Schema : Use the "Schema" tab to browse available entities and their fields Build Queries : Use the "Query" tab to construct and test GraphQL queries View Results : Execute queries to see real-time data from the blockchain Copy Queries : Use the generated queries in your applications Example Queries ​ Here are some example queries you can try in the GraphQL explorer: Query iApp ​ graphql query { apps { id name owner { id } appType appUri } } Query Protected Data ​ graphql query { protectedDatas { id name owner { id } dataType dataUri } } Query Deals and Tasks ​ graphql query { deals { id requester { id } app { name } dataset { name } workerpool { id } tasks { id status } } } 💡 Pro Tip Use the GraphQL explorer's auto-completion feature to discover available fields and build complex queries. The schema documentation is always up-to-date with the latest protocol changes. ## /get-started/tooling-and-explorers/blockchain-explorer Blockchain Explorers ​ Monitor iExec protocol smart contracts on all supported networks through verified blockchain explorers. All protocol contracts have been verified and are publicly auditable. Supported Networks ​ 🔷 Arbitrum One Production network for mainnet operations with verified smart contracts and comprehensive transaction tracking. Verified Contracts Transaction History Token Tracking Contract Interactions Visit Arbiscan 🔷 Arbitrum Sepolia Test network for development and testing with verified smart contracts and comprehensive transaction tracking. Verified Contracts Transaction History Token Tracking Contract Interactions Visit Arbiscan 💡 Dev Tip Use Arbitrum Sepolia for development and testing then deploy to Arbitrum for production workloads. ## /guides/manage-data/manage-access Manage Access ​ Want to keep your data private while still using it in confidential applications? DataProtector lets you encrypt data and control access through orders - specifying who can use it, how many times, and at what price. Protected data is only accessible in TDX Trust Domains (TEEs) by authorized users and iApp. Prerequisites ​ First, install DataProtector in your project (for more details see DataProtector Getting Started ): npm yarn pnpm bun bash npm install @iexec/dataprotector bash yarn add @iexec/dataprotector bash pnpm add @iexec/dataprotector bash bun add @iexec/dataprotector Protect your Data ​ Here's what happens: Your data gets encrypted client-side and stored as an NFT. Only you control who can decrypt and use it. ts const protectedData = await dataProtectorCore . protectData ({ name : 'My Email Contact' , data : { email : 'alice@example.com' , firstName : 'Alice' , lastName : 'Smith' , }, }); console . log ( 'Protected data address:' , protectedData . address ); What you Can Protect ​ Data : Any kind of data you want to keep private and make available for computations by authorized users and iApp. Supported types : Common data types like text, numbers, true/false values, and files. See the full list here . Storage : Store your data on IPFS or Arweave. For larger files, you can use your own IPFS node. TIP Need Help ? Check our Schema and Dataset Types guide for detailed formatting instructions. Grant access ​ By default, your protected data is private. To let others use it, you need to grant access to both: An authorized user (who can trigger the processing) An authorized iApp (the application that will process the data in the private environment) This ensures that only specific users can use specific applications to process your data. Here's how to set it up: ts const grantedAccess = await dataProtectorCore . grantAccess ({ protectedData : '0x123abc...' , // Your protected data address authorizedApp : '0x456def...' , // iApp that can process the data authorizedUser : '0x789cba...' , // User who can trigger the processing pricePerAccess : 0 , // Cost per use (in nRLC) numberOfAccess : 10 , // Maximum number of uses }); Parameters ​ ts import { type GrantAccessParams } from '@iexec/dataprotector' ; protectedData Required * ​ Type: Address The ethereum address of the protected data supplied by the user (returned when you created it). You must own this data to grant access. authorizedApp Required * ​ Type: Address What it is : The iApp address that's allowed to process your data inside the TDX Trust Domain. Why needed : This ensures only specific, audited applications can access your data. No random code can touch it. Pro tip : Use app whitelists for production. Instead of a single app address, you can specify a whitelist contract that contains multiple app versions. Very useful for when you need to upgrade your iApp, without losing all the granted access. text // Single app authorizedApp: 0xe7945ddc8241A877c6e59F50a61e91eBb57AfD84; // Or use a whitelist (recommended for production) authorizedApp: 0xfa9cceff9431ee0e2a3fe58911073f1357f24e31; // Web3Mail whitelist authorizedUser Required * ​ Type: Address What it is : The wallet address of the user that is allowed to process this data. Why needed : Even with an authorized app, only specific users can trigger the computation. This gives you granular control over who uses your data. Don't forget : Even if you are the owner of the data, you need to authorize yourself! Special case : Set to 0x0000000000000000000000000000000000000000 to allow any user to trigger processing (useful for public datasets). pricePerAccess Optional ​ Type: number Default: 0 Quick explanation : How much you charge per data usage (in nano RLC - nRLC). Set to 0 for free access, or specify a price to monetize your data automatically. Example : pricePerAccess: 1_000_000_000 = 1 RLC per access → Want to learn more monetization capabilities? See our detailed Monetize Protected Data guide numberOfAccess Optional ​ Quick explanation : Maximum number of times this authorization can be used. WARNING Important If someone tries to process your data more times than allowed, they'll get a "no dataset orders" error. Set this high enough for your use case. Example values : 1 - Single use (great for one-time data analysis) 100 - Limited campaign (email marketing with usage cap) 10000 - Effectively unlimited for most use cases What's Next? ​ You now have protected data with controlled access. Here are your next steps: Process the data : Use processProtectedData to run computations Manage access : Revoke or modify permissions anytime Learn data types : Deep dive into schemas and dataset types Monetize data : Explore data monetization strategies ## /guides/manage-data/handle-schemas-dataset-types Handle Schemas and Dataset Types ​ Schemas are like content labels that describe what's inside your protected data. They define the structure and types of your data automatically when you protect it, making it easy for iApp to know what they're working with. Think of schemas as data fingerprints - they tell iApp "this protected data contains an email address and a phone number" without revealing the actual values. Use the iExec explorer to browse protected data and see their asset types. Make filtered searches based on schema to find data that fits your needs. How schemas work ​ When you protect data with DataProtector, the SDK automatically analyzes your JSON object and generates a schema. No manual schema definition needed - it's all handled for you. ts const protectedData = await dataProtectorCore . protectData ({ name : 'User Contact' , data : { email : 'alice@example.com' , phoneNumber : '+1234567890' , preferences : { newsletter : true , notifications : false , }, }, }); console . log ( '✅ Protected data created!' ); console . log ( '📍 Address:' , protectedData . address ); 🏷️ Generated Schema: json { "email" : "string" , "phoneNumber" : "string" , "preferences" : { "newsletter" : "bool" , "notifications" : "bool" } } Schema Structure The schema automatically maps your data structure to types that iApp can understand and validate. Supported data types ​ The schema automatically detects these types: Type Description Example string Text data "alice@example.com" bool Boolean values true , false f64 Numbers 42 , 3.14 i128 Big integers BigInt(123456789) application/octet-stream Binary data File contents image/jpeg , image/png , etc. Media files Images, videos Auto-Detection The SDK automatically detects file types based on content. No need to specify MIME types manually. Why schemas matter ​ Clarity : Makes your data easier to understand and reuse Safety : Ensures iExec apps don’t process the wrong data Structure : Facilitates structured communication between front-end and iApp logic For iApp Development ​ Schemas let your iApp validate and process data safely: ts // Inside your iApp const email = await deserializer . getValue ( 'email' , 'string' ); const preferences = await deserializer . getValue ( 'preferences.newsletter' , 'bool' ); For Type Safety ​ Prevents your iApp from processing incompatible data types. For Data Discovery ​ Users can find relevant protected data without seeing the actual content: ts const listProtectedData = await dataProtectorCore . getProtectedData ({ requiredSchema : { email : 'string' , }, }); Real examples ​ For real-world applications built by developers using various asset types, check out the iExec case studies to see how schemas are used in production environments. Simple User Profile ​ ts const userData = await dataProtectorCore . protectData ({ data : { email : 'user@example.com' , age : 25 , isSubscribed : true , }, }); 🏷️ Generated Schema: json { "email" : "string" , "age" : "f64" , "isSubscribed" : "bool" } Nested Contact Information ​ ts const contactData = await dataProtectorCore . protectData ({ data : { personal : { firstName : 'Alice' , lastName : 'Smith' , }, contact : { email : 'alice@example.com' , phone : '+1234567890' , }, preferences : { marketing : false , notifications : true , }, }, }); 🏷️ Generated Schema: json { "personal" : { "firstNam
프로젝트로 돌아가기