Cartesi 백서

Cartesi

원문

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

to a proxy, it has no way to guarantee its interests will be defended in good faith. The only solution is to align the interests of the principal and proxy. This is why proxy roles must be purchased by the principal’s stake in the dispute. If the proxy is honest and wins the dispute on the principal’s behalf, the only cost to the principal is the fee. He may receive further benefits from the contract where the dispute originated. If the proxy loses the dispute, whether on purpose or by negligence, the principal keeps the stake. His interest in the original contract becomes moot. Naturally, no proxy will ever buy disputes from principals playing dishonest roles. They are, as they should, on their own defending their interests. Even honest principals may fail to sell disputes if the fee is too low or the stakes too high. To guarantee service availability to honest principals, Cartesi will maintain a number of nodes with the dispute proxy DApp installed. These nodes will be configured to purchase, up to a maximum stake, advertised disputes that are profitable but have not found a proxy within a preset deadline. 7 Future work The focus of this document on the core functionality, and on the interfaces DApps use to directly specify, control, and verify off-chain computations. The Cartesi platform will offer several additional components built over the core, or extending its reach. These will be described in more detail in future publications [ Teixeira and Nehab 2019a,b]. Data availability Cartesi remedies the severe storage limitations of the blockchain by keeping on-chain only Merkel tree hashes of off-chain data. As mentioned in section 5.2, Cartesi assumes that all parties involved in a verification role have access to these data. In certain applications, this is difficult to guarantee. In particular, the risk for data withholding attacks, where one of the parties submits a hash to the blockchain while refusing to make this data available to others, must be mitigated. The problem of data availability is a major concern in the design of blockchain consensus algorithms [Buterin 2012]. However, the issue becomes much simpler in the context of local consensus. Teixeira and Nehab [2019a] provide several design patterns for dealing with data availability during verification. Data channels, device encryp- tion, and the data ledger ensure availability in all scenarios likely to be encountered by Cartesi DApps. Usability One of the key barriers to the wide adoption of block- chain technology is the inconvenience experienced by DApp users. Although the literature on usability of centralized applications still applies to decentralized ones, blockchain idiosyncrasies have not yet been fully addressed from the perspective of user experience. Teixeira and Nehab [2019a] describe several design patterns for the development of simple and intuitive DApps. As an example, Cartesi will offer an automatic infrastructure for trad- ing tokens. This will free the users from concerns over the different tokens used inside each DApp. A system for outsourcing deferred actions will also be provided. This will enable users to turn their ma- chines off even when engaged in a protocol that requires interacting with the blockchain within strict deadlines. In this situation, a proxy party will act on the users’ behalf in exchange for a fee. (Much like the dispute delegation market described in section 6.2.) The use of cryptographic time-locks [Rivest et al. 1996] will also accommodate situations in which the user must reveal a secret in the future that should not be immediately passed to the proxy party. Other usability constructs will be described to facilitate file transfers and reduce gas costs. Together, these facilities will bring the user experience of Cartesi DApps closer to that of current centralized solutions. The Cartesi SDK A variety of higher-level APIs that encapsulate typical uses for the core will be available with the release of the Cartesi SDK. These will include the usability and data availability solutions described above, as well as the containers for the Cartesi Node and for the development of Cartesi Machines. In time, the APIs available within the SDK will greatly reduce the size and complexity of DApps blockchain components. In turn, this will significantly increase the portability of DApps to multiple blockchains. The Cartesi SDK will be distributed in open source and extensively documented [Teixeira and Nehab 2019b]. Extensions to the Cartesi Machine Cartesi Machines can be extended with two exciting new devices. The dehashing device gives applications the power to traverse hash pointer data structures. Programs running inside a Cartesi Machine can use the dehashing device to read the contents of a block given only its hash. Although this operation is impossible in general, it becomes possible when the universe of allowed blocks is known by all parties in advance. The most direct application is to blockchains themselves. When a Cartesi Machine is running, the dehashing device queries a hash table, preloaded in the host, for the block that matches the hash. If a dispute arises, any party can propose the block as proof it matches the required hash. In this way, the dehashing device enables blockchain introspection. Parties can enter into contracts that depend on the entire state of the blockchain where the contracts are themselves defined. This has a variety of valuable applications, notably in futures markets. Another planned device is the timely data port . The port enables reproducible communication between Cartesi Machines by tying the data packets entering or leaving the machine to the value of mcycle at the event. DApps can schedule packet delivery to happen at a given future mcycle. Cartesi Machines can also be rolled back to the mcycle for delivery. The timely data port breaks new ground in the progress towards the Web 3.0. It will enable DApps that involve the direct collaboration between multiple Cartesi Machines. Crowd disputes It is possible to envision applications that involve many independent participants, each with some stake in the results of an off-chain computation. In such cases, it is vital to prevent a coordinated crowd of dishonest participants from using sequential disputes over an honest result as a denial-of-service attack on the contract. We have developed a variant of the verification game that enables any honest participant to defend his result against an entire crowd at negligible cost. When demand becomes apparent, the Cartesi platform will be extended to support this variant. 8 Conclusions This paper laid the foundations on which the Cartesi platform stands. Cartesi’s mission is to help DApp developers build ever more com- pelling products to their clients. As any paradigm shift, the block- chain brings both opportunity for real innovation and the risk of “wheel reinvention”. In a direct application of the principle of least astonishment, Cartesi’s core enables developers to leverage pre- existing knowledge and tools to boost their productivity. The re- maining components of the Cartesi platform, described in a future document [Teixeira and Nehab 2019a], will help developers unleash their creativity when taking advantage of the blockchain’s unique potentials. 14 V ersion 1.01 References BELLARD ,F . 2016. Softfp library. Webpage. https://bellard. org/softfp/. BELLARD ,F . 2017. Riscvemu. Source code. https://bellard. org/riscvemu/. BELLARD ,F . 2018. A generic and open source machine emulator and virtualizer. Webpage. https://www.qemu.org. BEN -SASSON ,E . , BENTOV,I . , HORESH ,Y . , and RIABZEV ,M . 2018. Scalable, transparent, and post-quantum secure computa- tional integrity. IACR Cryptology ePrint Archive, 2018:46. BEN -SASSON ,E . , CHIESA ,A . , TROMER ,E . , and VIRZA ,M . 2013. Succinct non-interactive zero knowledge for a von neu- mann architecture. Cryptology ePrint Archive, Report 2013/879. https://eprint.iacr.org/2013/879. BITANSKY ,N . , CANETTI ,R . , CHIESA ,A . , and TROMER ,E . 2012. From extractable collision resistance to succinct non- interactive arguments of knowledge, and back again. In Pro- ceedings of the 3rd Innovations in Theoretical Computer Science Conference, ITCS ’12, New Y ork, NY , USA. ACM, 326–349. ISBN 978-1-4503-1115-1. http://doi.acm.org/10.1145/ 2090236.2090263. BLUM ,M . , FELDMAN ,P ., and MICALI ,S . 1988. Non-interactive zero-knowledge and its applications. In Proceedings of the Twen- tieth Annual ACM Symposium on Theory of Computing , STOC ’88, New Y ork, NY , USA. ACM, 103–112. ISBN 0-89791-264-0. http://doi.acm.org/10.1145/62212.62222. BRASSER ,F . , MÜLLER ,U . , DMITRIENKO ,A . , KOSTIAINEN , K., CAPKUN ,S . , and SADEGHI ,A . - R .2017. Software grand exposure: SGX cache attacks are practical. In 11th USENIX Workshop on Offensive Technologies. BUTERIN ,V . 2012. A note on data availability and erasure cod- ing. https://github.com/ethereum/research/wiki/A- note-on-data-availability-and-erasure-coding . BUTERIN ,V . 2018. On sharding blockchains. Wiki. https:// github.com/ethereum/wiki/wiki/Sharding-FAQs. BUTERIN ,V . 2018. Sharding. GitHub repository. https: //github.com/ethereum/sharding.git. CANETTI ,R . , RIV A,B . , and ROTHBLUM ,G .N . 2011. Practical delegation of computation using multiple servers. In Proceed- ings of the ACM Conference on Computer and Communications Security, 445–454. CARDANO ’S VM. 2017. IELE OpCodes. Source code. https://github.com/runtimeverification/iele- semantics/blob/master/iele.md. CHENG ,R . , ZHANG ,F ., KOS ,J . , HE,W ., HYNES ,N . , JOHNSON , N. M. , JUELS ,A . , MILLER ,A . , and SONG ,D .X . 2018. Eki- den: A platform for confidentiality-preserving, trustworthy, and performant smart contract execution. CoRR, abs/1804.05141. DTS PEC . 2017. Devicetree specification. Power.org, Freescale Semiconductors, IBM, Linaro, and ARM. http://devicetree. org. DWORKIN ,M .J . 2015. SHA-3 standard: Permutation-based hash and extendable-output functions. Technical report. ENIGMA ,T . 2018. Enigma documentation. https://enigma.co/ protocol/. FEIGE ,U . and KILIAN ,J . 1997. Making games short. In Proceed- ings of STOC, 506–516. GOLEM ,T . 2016. The golem project. https://golem.network/ crowdfunding/Golemwhitepaper.pdf. HOUSER ,J . 2017. Berkeley softfloat. Webpage. http://www. jhauser.us/arithmetic/SoftFloat.html. Release 3d. IEEE, C. S. 2008. Standard for floating-point arithmetic, IEEE Std 754-2008. IEXEC ,T . 2017. Blockchain-based decentralized cloud computing. https://iex.ec/whitepaper/iExec-WPv3.0- English.pdf. LARIMER ,D . 2017. Dpos consensus algorithm - the missing white paper. https://steemit.com/dpos/@dantheman/dpos- consensus-algorithm-this-missing-white-paper . LEE ,S . , SHIH ,M . - W ., GERA ,P ., KIM ,T ., KIM ,H . , and PEINADO , M. 2017. Inferring fine-grained control flow inside sgx enclaves with branch shadowing. In 26th USENIX Security Symposium, USENIX Security, 16–18. MERKLE ,R .C . 1979. Secrecy, Authentication, and Public Key Systems. PhD thesis, Stanford University. MIERS ,I . , GARMAN ,C . , GREEN ,M . , and RUBIN ,A .D . 2013. Zerocoin: Anonymous distributed e-cash from bitcoin. http: //zerocoin.org/media/pdf/ZerocoinOakland.pdf. MOGHIMI ,A . , IRAZOQUI ,G . , and EISENBARTH ,T . 2017. CacheZoom: How SGX amplifies the power of cache attacks. In International Conference on Cryptographic Hardware and Embedded Systems, 69–90. MORRISON ,D .R . 1968. Patricia—Practical Algorithm To Retrieve Information Coded in Alphanumeric. Journal of the ACM , 15(4): 514–534. NAKAMOTO ,S . 2009. Bitcoin: A peer-to-peer electronic cash system. Whitepaper. http://bitcoin.org/bitcoin.pdf. NEO’ S VM. 2017. OpCodes. Source code. https://github. com/neo-project/neo-vm/blob/master/src/neo- vm/OpCode.cs. PARNO ,B . , HOWELL ,J . , GENTRY ,C . , and RAY KOVA,M . 2013. Pinocchio: Nearly practical verifiable computation. In 2013 IEEE Symposium on Security and Privacy , 238–252. PETAZZONI ,T . 2018. Buildroot. Website. https://buildroot. org. RISC-V. 2018. GNU toolchain. GitHub repository. https:// github.com/riscv/riscv-gnu-toolchain . RISC-V. 2018. Linux. GitHub repository. https://github.com/ riscv/riscv-linux. RISC-V. 2018. Poky: port of the Y octo project. GitHub repository. https://github.com/riscv/riscv-poky. RISC-V. 2018. Project home. GitHub repository. https:// github.com/riscv. RISC-V. 2018. Proxy Kernel. GitHub repository. https:// github.com/riscv/riscv-pk. RIVEST ,R .L . , SHAMIR ,A . , and WAGNER ,D .A . 1996. Time-lock puzzles and timed-release crypto. SCHAEFFER ,T . 2018. Zokrates. https://github.com/ JacobEberhardt/ZoKrates. SONG ,C . , WU,S . , LIU ,S . , FANG ,R . , and LI,Q . - L .2018. Dis- tributed cloud computing in trusted hardware. https://ankr. network/. SONM, T. 2018. Sonm documentation. https://docs.sonm. com/. TEEX, T. 2018. TEEX—TEE-enabled eXecution platform for public blockchain. https://teex.io. TEIXEIRA ,A . and NEHAB ,D . 2019. Cartesi design patterns. 15 V ersion 1.01 Whitepaper. To appear. TEIXEIRA ,A . and NEHAB ,D . 2019. The Cartesi SDK. To appear. TEUTSCH ,J . and REITWIESSNER ,C . 2017. A scalable verification solution for blockchains. Whitepaper. https://people.cs. uchicago.edu/⇠teutsch/papers/truebit.pdf. TILLEY ,A . 2018. Google, Tesla get behind chal- lenge to Arm chip design. The Information . https: //www.theinformation.com/articles/google-tesla- get-behind-challenge-to-arm-chip-design . TRÖGER ,J . , MIHO ˇCKA ,D . , and KEPPEL ,D . 2011. Fast mi- crocode interpretation with transactional commit/abort. In 4th Workshop on Architectural and Microarchitectural Support for Binary Translation, San Jose, CA. http://www.emulators. com/docs/amas-bt2011.pdf. VA N SABERHANGEN , N. 2013. Cryptonote v 2.0. VLASENKO ,D . 2018. Busybox. Website. https://busybox.net. WAT E R M A N,A . and ASANOVI ´C,K . 2017. The RISC-V Instruction Set Manual , volume I: User-Level ISA. RISC-V Foundation. V ersion 2.2. WAT E R M A N,A . and ASANOVI ´C,K . 2017. The RISC-V Instruc- tion Set Manual , volume II: Privileged Architecture. RISC-V Foundation. V ersion 1.10. WAT E R M A N,A . and LEE ,Y . 2011. Spike, a RISC-V ISA simula- tor. GitHub repository. https://github.com/riscv/riscv- isa-sim. WEBASSEMBL Y ,C .G . 2018. WebAssembly specification, release 1.0. https://webassembly.github.io/spec/core/index. html. WEICHBRODT ,N . , KURMUS ,A . , PIETZUCH ,P . , and KAPITZA , R. 2016. AsyncShock: Exploiting synchronisation bugs in Intel SGX enclaves. In European Symposium on Research in Computer Security, 440–457. WOOD ,G . 2018. Ethereum: A secure decentralised generalised transaction ledger. Y ellowpaper. https://ethereum.github. io/yellowpaper/paper.pdf. Byzantium version e94ebda – 2018-06-05. 16
프로젝트로 돌아가기