Case Study: How Pyth is Catalyzing a New Era of Permissioned Environments

by Solana Foundation

Case Study: How Pyth is Catalyzing a New Era of Permissioned Environments

Highlights

  • Solana Permissioned Environments (SPEs) are private environments tailored to enterprise needs, offering customization, control and scalability within the Solana ecosystem.
  • The Pyth Network was the first SPE on Solana’s stack. It was designed specifically for oracle services and uses the Solana Virtual Machine connect to external data sources, serving as a crucial aggregator for real-world smart contract execution.
  • Pyth's requirements for rapid data processing and minimal latency are perfectly met by Solana's high-throughput infrastructure.
  • Solana's robust security model, combined with Pyth's dedicated oracle services, ensures reliable and secure data for smart contracts.
  • Thanks to native scalability and tools in the Solana ecosystem, Pyth can expand its services and accommodate a growing range of applications and data demands.

The term "oracle" conjures images of mystic wizards, divine messengers with direct links to universal truth. But today, one emerging web3 use case gives the term new meaning as an invisible algorithmic force, quietly crunching numbers and keeping up with the day-to-day data of asset pricing. 

Pyth Network, a high-frequency oracle built using Solana ecosystem technology, presents a compelling use case in data sharing for decentralized finance (DeFi), offering products like real-time price feeds and benchmarks to be used by a host of financial service providers. Its ecosystem is a thriving community hub where users can leverage information contributed by vetted data providers, become providers themselves, or simply access desired statistics from the network. And not only is Pyth Network enabling near-instant, open-source data at your fingertips, but it is growing the concept of a self-sustaining, crowdsourced DeFi resource powered by onchain governance and user participation.

If all this activity sounds, well, fast — it is. As Yaser Jazouane, head of product at Douro Labs, puts it, a blockchain oracle is less about a wizard’s clairvoyance and more about the precision of deep, real-time computer analytics, which is only possible on a high-throughput, low-latency blockchain like Solana. 

In DeFi, the Pyth Network’s role is crucial: It aggregates diverse data points in order to sync on the most accurate price for any given asset. Without oracles, decentralized exchanges and other DeFi protocols would have no consensus, says Jazouane.

“There's no global, universal truth in the world for what any asset is worth,” he explained, adding that “data-driven solutions must come to a consensus about what is the most prevalent price out there — that's what makes an oracle."

That’s where Pythnet comes in. Oracles like the Pyth Network aggregate “many, many views around the price,” in order to provide decentralized applications (dApps) with the most universally agreed-upon information possible.

How a Solana Permissioned Environment (SPE) empowers Pythnet

Pythnet is a Solana Permissioned Environment (SPE), a specialized Solana appchain environment designed for custom uses. This flexibility allows for the creation of a permissioned — or as Jazouane prefers to call it, a "governed" network — where access is permissionless yet managed through the use of tokens. 

Pythnet's main job is to gather different prices and combine them into one reliable price for each item it tracks. To do this, it actively delivers real-time market data that anyone can track, encompassing 292 feeds in cryptocurrencies, 68 in equities, 16 in foreign exchange, two in commodities, and eight in fixed income/rates at the time of publication. It distributes this data across more than 45 blockchains, enhancing a wide range of DeFi ecosystems. 

Over 90 major market players contribute to Pythnet, ensuring that over 269 applications, like perpetuals and lending protocols, receive secure, accurate and reliable data.

According to Jazouane, the choice of a Solana permissioned environment for Pythnet was influenced by several factors:

  • Solana’s fast block time — the chain creates blocks every 400 milliseconds — allows Pythnet to produce high-frequency price updates.
  • A culture of collective, collaborative expertise found within Solana’s developer community.
  • Flexibility and control provided by the Solana protocol, especially in terms of gas configuration and the cost of deploying applications to ensure focus and security for its intended use.

Known for its high scalability, rapid transaction speeds, and low fees, the Solana protocol provides an ideal foundation for Pythnet. Like the Solana blockchain, Pythnet is designed to update very quickly with almost no delay. Pyth’s oracle services enhance Solana's ecosystem by providing the rapid-fire data that allows for seamless communication between different blockchains — a critical feature for a decentralized, multi-chain future.

From its inception, Pythnet has always been developed in close alignment with the Solana ecosystem, says Jazouane. The initial version of Pyth, which is still operational, was built directly on Solana. Pyth Network’s primary target for sharing this data is high-throughput trading applications, which require the capacity for demand require capabilities for high-frequency data exchange trading and lightning-fast transaction rates. Thankfully, says Jazouane, Solana was designed to deliver low latency, high throughput, and optimal block rates, making it well-suited for these kinds of demanding applications.

Solana has a block time that basically produces blocks every 400 milliseconds. Pyth also produces prices every 400 milliseconds. This feature of Solana is perfect for a high-throughput data use case like Pyth. This is one of the reasons why the marriage made sense.

Yaser Jazouane HEAD OF PRODUCTDouro Labs

A customized, trusted validator set

As an SPE, Pythnet can be customized to its own specific parameters — including a validator set optimized for oracles. Pythnet is a proof-of-authority (PoA) network, in which a select group of validators known for their reliability and strong reputation are responsible for verifying and approving transactions. This approach streamlines the transaction process for Pythnet’s needs.

The Pythnet oracle is managed by the Pyth DAO, a decentralized organization governed through tokens, which makes sure only certain vetted groups can update prices. Once publishers are admitted, they are provided with Pythnet’s native token (PGAS) to perform their functions. PGAS is used as the token for transaction fees within the Pythnet environment. It acts as a gating factor, ensuring that only authorized publishers and validators can participate in the network. The token is considered valueless outside its specific use within Pythnet, emphasizing its role as a control mechanism rather than a tradable asset.

PoA environments are useful for protocols who want to use blockchain without everyone seeing their information. In the Pyth Network, only permissioned publishers can publish data, but anyone can read and utilize.

The benefits of Solana Permissioned Environments (SPEs)

The key advantage of SPEs lies in their ability to provide customizable, governable blockchain environments using Solana Virtual Machine (SVM) architecture. They are ideally suited for specific applications that demand customizable environments.

While Pyth operates on both Solana mainnet and Pythnet, it also retains the ability to transfer prices constructed on Pythnet to over 45 other blockchains — a function that is only possible from a high-performance mainnet such as Solana. This cross-chain capability is crucial for wider accessibility and usability of the data Pyth provides.

Utilizing an SPE model, Pyth can enable new uses for financial data sharing:

  • Distributed: Pythnet presents a new, fully crowdsourced and transparent oracle system.
  • High-frequency updates: Traditional oracles didn’t update fast enough for many financial applications, leading to inaccuracies and vulnerabilities. Pyth offers low-latency, high-frequency price feeds, a feature that requires a high-throughput blockchain like Solana to operate effectively and deliver real-time data.
  • Coverage and availability: Developers have often lacked access to necessary price feeds for their specific blockchain, limiting the development of financial services. Solana's versatile environment supports a wide range of applications with the ability to integrate with Pyth data, such as exchanges, lending platforms, and analytics tools.
  • Sourcing and quality: Previous data sources were opaque, often aggregated from third-party sources, undermining trust and accountability. Pythnet sources from multiple data publishers for each product, thereby enhancing the accuracy and robustness of its system. Meanwhile, Solana's decentralized infrastructure invites various publishers to submit pricing information securely and reliably. This combined decentralized approach helps in reducing the risk of manipulation or single points of failure.
  • Transparency: Solana's permissionless environment aligns with Pyth's ethos of open access, allowing developers to integrate with Pyth data seamlessly and without barriers. Pyth data from Price Feeds can be viewed online. 
  • Gas efficiency: Pyth’s Pull Oracle architecture is highly gas efficient, as users only pay for the prices they request. Solana's low-cost transaction environment complements this design, making it cost-effective for users to access data.

It's important to note that SPEs operate separately from the Solana mainnet, which means they do not inherently benefit from interoperability with the broader Solana ecosystem. Bridging SPEs to the mainnet is possible through the use of a bridge called Wormhole.

"We don't bridge currently back and forth between the two [Pythnet and mainnet] because there is no need," Jazoune said, explaining that two versions run in parallel. "We are bridging out from the appchain to other blockchains through the Wormhole bridge.”

According to Jazouane, the Wormhole bridge helps Pyth access as many as 45 other blockchains. 

“This is the power of [a permissioned environment] is connected to other blockchain worlds through bridging,” said Jazouane. 

The strategy, he says, allows Pythnet to operate directly within the Solana protocol’s high-throughput ecosystem while still participating in a broader multichain industry.

Enabling multichain DeFi application 

The integration of Solana and Pyth has enabled various applications in DeFi. Platforms like Synthetix utilize Pyth's high-fidelity data for efficient and accurate trading operations, along with a number of traditional financial institutions. These applications highlight the practical benefits of combining Solana's high-speed blockchain with Pyth's reliable data feeds, which are updated by members every day.

Pythnet is just one use case of Solana Permissioned Environments. Enterprises curious to know more about whether an SPE would fit their needs are encouraged to consult with the Solana Foundation to learn more.

Solana Permissioned Environments are a new solution for businesses using Solana.

Want to learn more? Get in touch.