1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9631],{3905:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>f});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var s=a.createContext({}),c=function(e){var t=a.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},p=function(e){var t=c(e.components);return a.createElement(s.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,s=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),u=c(n),m=r,f=u["".concat(s,".").concat(m)]||u[m]||d[m]||o;return n?a.createElement(f,i(i({ref:t},p),{},{components:n})):a.createElement(f,i({ref:t},p))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=m;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l[u]="string"==typeof e?e:r,i[1]=l;for(var c=2;c<o;c++)i[c]=n[c];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}m.displayName="MDXCreateElement"},8554:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>s,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var a=n(7462),r=n(3366),o=(n(7294),n(3905)),i=["components"],l={title:"Elastos Mainchain"},s="The Mainchain: A Secure Foundation for the Ecosystem",c={unversionedId:"learn/mainchain/intro",id:"learn/mainchain/intro",title:"Elastos Mainchain",description:"The Elastos mainchain is a completely open-source and sovereign blockchain protocol based on Bitcoin that provides cryptographic proofs and a secure foundation for the ecosystem.",source:"@site/../docs/2.learn/mainchain/intro.md",sourceDirName:"2.learn/mainchain",slug:"/learn/mainchain/intro",permalink:"/learn/mainchain/intro",draft:!1,editUrl:"https://github.com/elastos/Elastos.Wiki/edit/master/website/../docs/2.learn/mainchain/intro.md",tags:[],version:"current",lastUpdatedBy:"racollette",lastUpdatedAt:1677260880,formattedLastUpdatedAt:"Feb 24, 2023",frontMatter:{title:"Elastos Mainchain"},sidebar:"learnSidebar",previous:{title:"Elastos Architecture",permalink:"/learn/architecture"},next:{title:"Auxiliary Proof of Work (AuxPoW)",permalink:"/learn/mainchain/auxpow"}},p={},u=[{value:"Elastic Consensus",id:"elastic-consensus",level:2},{value:"Auxiliary Proof of Work",id:"auxiliary-proof-of-work",level:3},{value:"Bonded Proof of Stake",id:"bonded-proof-of-stake",level:3},{value:"Proof of Integrity",id:"proof-of-integrity",level:3},{value:"Relevant Links",id:"relevant-links",level:2}],d={toc:u},m="wrapper";function f(e){var t=e.components,n=(0,r.Z)(e,i);return(0,o.kt)(m,(0,a.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"the-mainchain-a-secure-foundation-for-the-ecosystem"},"The Mainchain: A Secure Foundation for the Ecosystem"),(0,o.kt)("p",null,"The Elastos mainchain is a completely open-source and sovereign blockchain protocol based on Bitcoin that provides cryptographic proofs and a secure foundation for the ecosystem."),(0,o.kt)("h2",{id:"elastic-consensus"},"Elastic Consensus"),(0,o.kt)("p",null,"The mainchain leverages a combination of three consensus mechanisms to ensure robust transaction execution:"),(0,o.kt)("h3",{id:"auxiliary-proof-of-work"},"Auxiliary Proof of Work"),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"/learn/mainchain/auxpow"},"Auxiliary Proof of Work (AuXPoW)")," is a mechanisn wherein Bitcoin miners compete to produce blocks for the Elastos mainchain in return for ELA. The security benefits of Bitcoin are integrated into solutions through merged-mining. The mainchain uses a PoW consensus mechanism based on SHA256, with blocks produced approximately every 2 minutes and 8 MB in size, compared to Bitcoin's 10-minute blocks and 1 MB size limit."),(0,o.kt)("admonition",{type:"info"},(0,o.kt)("p",{parentName:"admonition"},"Note: The mainchain's role is limited to serving as a root of trust, so transaction throughput is not a primary concern. Scalability is achieved through the use of sidechains.")),(0,o.kt)("h3",{id:"bonded-proof-of-stake"},"Bonded Proof of Stake"),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"/learn/mainchain/bpos"},"Bonded Proof of Stake (BPoS)")," is a hybrid consensus mechanism that blends elements of delegated proof of stake and proof of stake. It offers the following benefits:"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"Variable bonding time"),(0,o.kt)("li",{parentName:"ul"},"Improved profit share model"),(0,o.kt)("li",{parentName:"ul"},"Increased mobility between inactive and active sets"),(0,o.kt)("li",{parentName:"ul"},"Secure block finality")),(0,o.kt)("p",null,"On the mainchain, BPoS provides finality for PoW-solved blocks, while on sidechains it is responsible for both block production and validation."),(0,o.kt)("h3",{id:"proof-of-integrity"},"Proof of Integrity"),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"/start/governance/#council"},"Proof of Integrity")," is a moniker given to the consensus layer backed by the Cyber Republic, Elastos' decentralized autonomous organization (DAO). Councilors elected on an annual basis are automatically granted a slot in the block production rotation and participate in securing not only the mainchain, but also validate the sidechains and act as arbiters for cross-chain transfers."),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"By combining these three consensus mechanisms, the mainchain provides a secure and efficie
1nt foundation for decentralized applications.")),(0,o.kt)("h2",{id:"relevant-links"},"Relevant Links"),(0,o.kt)("table",null,(0,o.kt)("thead",{parentName:"table"},(0,o.kt)("tr",{parentName:"thead"},(0,o.kt)("th",{parentName:"tr",align:null},"Resource"),(0,o.kt)("th",{parentName:"tr",align:null},"Description"))),(0,o.kt)("tbody",{parentName:"table"},(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},(0,o.kt)("a",{parentName:"td",href:"https://blockchain.elastos.io/"},"Explorer")),(0,o.kt)("td",{parentName:"tr",align:null},"Mainchain block explorer")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},(0,o.kt)("a",{parentName:"td",href:"/api/mainchain/cli"},"APIs")),(0,o.kt)("td",{parentName:"tr",align:null},"CLI, JSON-RPC and REST API interfaces")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},(0,o.kt)("a",{parentName:"td",href:"https://github.com/elastos/Elastos.ELA"},"Github")),(0,o.kt)("td",{parentName:"tr",align:null},"Mainchain source code")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},(0,o.kt)("a",{parentName:"td",href:"https://www.elastos.org/downloads/elastos_whitepaper_en.pdf"},"Whitepaper")),(0,o.kt)("td",{parentName:"tr",align:null},"Original whitepaper")))))}f.isMDXComponent=!0}}]);
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.