1"use strict";(globalThis.webpackChunkredstone_docs||=[]).push([[8024],{7172(e,t,n){n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>l,frontMatter:()=>s,metadata:()=>o,toc:()=>h});const o=JSON.parse('{"id":"network-tokenomics/restaking-avs/redstone-avs","title":"RedStone AVS","description":"RedStone AVS is an innovative solution that leverages the concept of restaking to create a decentralized process for delivering price data to the blockchain.","source":"@site/docs/network-tokenomics/restaking-avs/redstone-avs.md","sourceDirName":"network-tokenomics/restaking-avs","slug":"/network-tokenomics/restaking-avs/redstone-avs","permalink":"/docs/network-tokenomics/restaking-avs/redstone-avs","draft":false,"unlisted":false,"editUrl":"https://github.com/redstone-finance/redstone-docs/tree/main/docs/network-tokenomics/restaking-avs/redstone-avs.md","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"sidebar_position":2,"sidebar_label":"RedStone AVS"},"sidebar":"tutorialSidebar","previous":{"title":"Restaking","permalink":"/docs/network-tokenomics/restaking-avs/restaking"},"next":{"title":"Service Components","permalink":"/docs/network-tokenomics/restaking-avs/service-components"}}');var i=n(4848),a=n(8453);const s={sidebar_position:2,sidebar_label:"RedStone AVS"},r="RedStone AVS",c={},h=[{value:"Implementation of the Push Model with AVS",id:"implementation-of-the-push-model-with-avs",level:2}];function d(e){const t={a:"a",h1:"h1",h2:"h2",header:"header",p:"p",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"redstone-avs",children:"RedStone AVS"})}),"\n",(0,i.jsxs)(t.p,{children:["RedStone AVS is an innovative solution that leverages the concept of restaking to create a decentralized process for delivering price data to the blockchain.\nThis system is built on the ",(0,i.jsx)(t.a,{href:"https://www.othentic.xyz/",children:"Othentic"})," framework, ensuring that the price feeds are both reliable and secure."]}),"\n",(0,i.jsx)(t.p,{children:"The process begins with the collection of price data from multiple oracle nodes.\nThese collected data points are then subjected to a series of verifications, including checks for accuracy, consistency, and the validity of digital signatures.\nOnce the data passes these initial checks, the median price and the corresponding timestamp are calculated from the gathered information.\nThis calculated result is then verified by the AVS o
1perators.\nIf the operators confirm the correctness of the result, it is subsequently transmitted to the blockchain.\nThis method ensures that the price data reaching the blockchain is both accurate and verified, providing a high level of trust and security in decentralized financial applications."}),"\n",(0,i.jsx)(t.h2,{id:"implementation-of-the-push-model-with-avs",children:"Implementation of the Push Model with AVS"}),"\n",(0,i.jsxs)(t.p,{children:["The RedStone AVS solution represents a novel implementation of the ",(0,i.jsx)(t.a,{href:"/docs/stage1-market-data/price-feeds/push-model",children:"Push"})," model for delivering data to the blockchain.\nIn the Push model, an off-chain relayer collects data and sends it to the blockchain, where the validation process takes place.\nThis method, while effective, often resulted in higher data usage on-chain due to the need for comprehensive validation processes."]}),"\n",(0,i.jsx)(t.p,{children:"In contrast, the new implementation through AVS moves the validation of data off-chain, significantly reducing on-chain gas consumption.\nIn this model, the price data collected from oracle nodes undergo rigorous off-chain validation to ensure its accuracy and consistency.\nThis validation process also includes checking digital signatures to confirm the authenticity of the data.\nOnce this off-chain validation is complete, the results \u2014 specifically the median price and timestamp \u2014 are then verified by AVS operators. These operators ensure that the off-chain calculations have not been tampered with.\nAfter validation, the results, along with signed confirmations of their accuracy, are sent to the blockchain."}),"\n",(0,i.jsx)(t.p,{children:"On-chain, the system verifies only the aggregated BLS signature from the AVS operators.\nThis streamlined process greatly enhances the scalability of the solution, as it allows data to be gathered from an unlimited number of oracle nodes.\nIn the traditional implementation, the relayer typically selects a specific subset of prices closest to the median and transmits only that subset to the blockchain.\nHowever, with the AVS approach, only the final median price and timestamp are directly submitted to the blockchain, meaning the gas consumption does not scale with the number of oracle nodes used to calculate the median.\nThis approach not only reduces the cost associated with on-chain operations but also enables the system to handle a larger volume of data inputs without compromising efficiency."})]})}function l(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},8453(e,t,n){n.d(t,{R:()=>s,x:()=>r});var o=n(6540);const i={},a=o.createContext(i);function s(e){const t=o.useContext(a);return o.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),o.createElement(a.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.