What is RedStone?
RedStone is an innovative Oracle protocol created to deliver accurate and reliable data feeds for decentralized applications (DApps) and smart contracts, operating across multiple blockchains. In this overview, we’ll dive into the project, its key features, and its functionality.
Modular DesignRedStone is built with a flexible architecture that allows seamless integration with various DApps and smart contracts across different blockchain ecosystems.
ScalabilityThe protocol efficiently handles large volumes of data requests, making it ideal for DApps that experience high transaction loads.
SecurityRedStone incorporates several layers of protection to ensure the accuracy and trustworthiness of its data feeds.
TransparencyThe system operates with transparency, enabling users to track and verify data origins, enhancing trust.
Support for Multiple Data SourcesRedStone can pull information from a wide array of sources, both real-world and on-chain, including over 50 platforms such as Binance, Coinbase, Uniswap, and CoinMarketCap.
1. Modular Design

Traditionally, smart contracts stored data directly in memory, a method that worked when data volumes were smaller. However, with the rise of decentralized finance (DeFi) and the need for real-time updates, this approach became less efficient and more expensive.
RedStone’s solution? It stores data in a separate layer and only moves it to the blockchain when needed, allowing for more frequent updates at a lower cost.
2. Data Flow

Price feeds are collected from a range of platforms. The data is aggregated by independent nodes, then validated for quality. This information is then broadcast via Streamr and other open-source gateways. Users, bots, or relays can push the data on-chain, where it undergoes cryptographic verification for origin and timestamp.
3. Data Format
To introduce data into the Ethereum Virtual Machine (EVM) environment, additional data is appended to user transactions. These messages are processed on-chain.
4. Data Packing

Data is retrieved from a decentralized cache provided by the Streamr Network and RedStone cache nodes. This data is packed into structured messages, added to the original transaction messages, signed, and sent across the network.
5. Data Unpacking
Once received, data packages are extracted from the msg.data field. Signatures from trusted providers are verified, and timestamps are checked to ensure the data isn’t outdated. Unique signatures from each data source are counted, and median values are calculated, using efficient assembly code to minimize gas costs.
6. On-Chain Aggregation
To further enhance security, RedStone requires signatures from multiple trusted providers for each data source. Data is aggregated (often using a median value) to ensure consistency, even if some providers fail to deliver accurate information.
RedStone is a highly advanced Oracle protocol that solves many data-related challenges faced by blockchain-based applications. Its modular design, scalability, and multi-source data integration make it a promising solution in the decentralized ecosystem. However, like any protocol, there are certain drawbacks to consider before implementation.
