Загрузка видео...

Не удалось загрузить видео

На главную

Introducing reference functions: a new type of composability in UTXO👀 It enables use-cases where data is locked based on a conditions Ex: oracles (pay to access data) and games video & thread ↓

30,851 просмотров • 1 год назад •via X (Twitter)

Комментарии: 12

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

While UTXOs have a lot of advantages, they also require developers to think about concurrency If two users try to access the same UTXO at the same time, only one transaction can succeed

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

There are many ways to mitigate this But a common way to tackle this to avoid it happening in the first place! Enter reference inputs: specify you're reading from a UTXO's data without modifying it (aka do not consume it)

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

Problem with reference inputs: they unconditionally access the data (cannot run any code) This is annoying when trying to build something like an oracle (where you users to pay for data) Or a game where you want data to only be accessible if a user meets some requirements

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

Starstream, the new UTXO-based zkVM we're bringing, solves this by introducing a new concept: reference functions But how do they work?

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

Starstream instead represents UTXOs using coroutines: programs that can pause & resume at any time When you use a dApp's UTXO, its program runs until the next pause point, and the continuation becomes the transaction output (the next UTXO to continue later)

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

The way Starstream achieves this is by storing an extra field in UTXOs: the frame This part encodes all the data required to continue the program from where it paused later

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

Starstream enables devs to specify different points the contract can resume from in order to provide utility functions That means things like NFT contracts can define utility functions directly inline into the contract like getSupply 👀

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

In the Starstream model, a utility function that doesn't modify the UTXO's storage can automatically be marked as a reference input👍 However, we can do even better! Any function that leaves both storage AND frame the same value as where it started can be a reference function

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

This kind of reference function is very useful, as Starstream also enables native composition between UTXOs in the same transaction (using effects) This means you can guard data between a "RequirePayment" error that has to be handled by another UTXO that pays the oracle 👍

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

This just one of the many developer experience improvements that Starstream will bring! If you haven't heard about Starstream before, you can find an overview video below

Фото профиля Sebastien Guillemot
Sebastien Guillemot1 год назад

Additionally, if you find learning more about the next generation of UTXO-based VMs interesting Consider joining the Starstream Working Group which is filled with discussions like this 👀

Фото профиля RTTS
RTTS1 год назад

API testing of interfaces is critical to determine if they meet requirements for functionality, reliability, performance, and security. Check out RTTS - the automated testing experts since 1996. #API #testautomation #integrationtest

Похожие видео

A new roadmap. A New Era of The Graph 🗺️ The Graph’s new roadmap introduces a bold and transformative vision for the future of The Graph! The new R&D roadmap details an expansion of The Graph’s ability to serve web3’s growing demands for data access, while better serving builders and protocol contributors, and improving the overall simplicity and efficiency of the network. After three years of serving builders, The Graph Network is mature, reliable, and performant. The Graph ecosystem has followed through on its commitment to democratize access to blockchain data while also establishing subgraphs as a web3 standard. But The Graph’s innovation journey doesn’t end there. The New Era of The Graph is organized into five core objectives: 1️⃣ World of Data Services: Expanding to provide new data services beyond subgraphs to deliver a rich market of data on the network, serving novel use cases for data scientists and more. This will include more data sources, new query languages, and support for LLMs. 2️⃣ Developer Empowerment: Supporting developers through enhanced DevEx and tooling by introducing streamlined billing, clear pricing models, a new free query plan, and reduced gas fees. A more SaaS-like experience for devs, without compromising on decentralization! 3️⃣ Protocol Evolution & Resiliency: Delivering improvements resulting in a more resilient, flexible, and simple protocol, including updates to delegation. 4️⃣ Optimized Indexer Performance: Boosting network performance with improved Indexer tooling and operational capabilities to deliver increased scalability, reduce costs, and enhanced network reliability. 5️⃣ Interconnected Graph of Data: Creating tools for composable data and a global, organized knowledge graph – interlinking open data and making it easier to build upon. The new roadmap sets in motion an exciting evolution in web3 data infrastructure. In a phased rollout, The Graph will introduce many new features and benefits, including the integration of new data services, new query languages, enhanced developer tooling, improved UX + UI, alongside greater protocol efficiency and resilience. As this new era unfolds, The Graph crystallizes as the connective tissue across the many layers of the web3 stack, evolving into a comprehensive, interwoven graph of data equipped to serve every project dreamt up by web3’s innovators. Read the full announcement linked in the comment below!

The Graph

425,326 просмотров • 2 лет назад