Navigating the Depths of RedStone: A Insider’s Guide to Its Pioneering Features

Polina_sch21
3 min readFeb 27, 2024

--

In the ever-evolving realm of blockchain and DeFi, real-time data is the heartbeat of innovation. RedStone, a standout Oracle solution, is at the forefront, offering a suite of groundbreaking features. Let’s dive into the essence of RedStone, exploring how it functions, its modular design, and three integration models, with a closer look at data flow, format, and security features. This insider’s guide will unveil the depth of RedStone’s capabilities, empowering DeFi and blockchain ecosystems.

How RedStone Operates

Revolutionizing Data Delivery: RedStone’s unique modular design redefines data delivery. Unlike traditional methods, it stores data in a separate layer, fetching it on-chain only when needed. This innovative approach allows RedStone to broadcast a myriad of assets at high frequencies to a more cost-effective layer.

Three Integration Models

RedStone Core:

  • Dynamically injects data into user transactions for maximum gas efficiency.
  • Streamlines the entire process into a single transaction, prioritizing a seamless user experience.

RedStone Classic:

  • Tailored for traditional Oracle models, pushing data into on-chain storage via a relayer.
  • Offers greater control over data sources and update conditions.

RedStone X:

  • Designed for advanced protocols like perpetuals, options, and derivatives.
  • Eliminates front-running risk by providing price feeds at the next block after users’ interactions.

Data Flow

Aggregating Diverse Sources: RedStone aggregates price feeds from off-chain and on-chain DEX’es, ensuring a diverse data pool. Independent nodes operated by data providers process the data, maintaining quality with methodologies like median, TWAP, and LWAP, alongside outlier detection. Feeds are distributed through the Streamr network, with on-chain verification for origin and timestamps.

Data Format

Seamless EVM Integration: To transfer data into an EVM environment, RedStone utilizes off-chain data encoding. The ContractWrapper automates the process, fetching relevant data from a decentralized cache layer. This data is structured, signed, and submitted to the network, with on-chain verification through extracted data packages.

On-Chain Aggregation

Enhancing Security: RedStone’s on-chain aggregation mechanism mandates multiple signatures from authorized data providers, ensuring security even if a subset is compromised. The parameters offer flexibility for system fine-tuning.

Security Considerations

Crucial Considerations:

  • Avoid overriding the getUniqueSignersThreshold function without a thorough understanding.
  • Validate timestamps to prevent arbitrage attacks.
  • Implement secure upgradability mechanisms based on multi-signatures or DAOs.
  • Continuously monitor the RedStone data services registry for potential changes.

Recommendations

Optimizing Performance and Security:

  • Design contracts to minimize multiple data feed requests in a single transaction.
  • Consider using around ten required unique signers for a balance between security and gas cost efficiency.

Conclusion

RedStone: Paving the Way for DeFi’s Future: In the dynamic landscape of blockchain and DeFi, RedStone shines as a versatile Oracle solution. Its modular design, integration flexibility, and robust security make it a powerful tool for DeFi protocols, DEXes, and blockchain applications. This insider’s guide demystifies RedStone’s core features, empowering developers and projects to seamlessly access real-time data and drive innovation in the blockchain space. RedStone stands as a fundamental building block for the future of DeFi and decentralized applications.

--

--