Yoissame
446 posts






Overview of @NEARProtocol's Q4 developments: NEAR Protocol stands as a Layer-1 (L1) smart contract blockchain that couples a state-of-the-art sharded architecture with an emphasis on offering a user experience reminiscent of Web 2 platforms. While maintaining the security and decentralization integral to blockchains, NEAR aims to surpass the capabilities of prior chains, such as Ethereum, in terms of usability, efficiency, and scalability. Recognizing and aiming to overcome Ethereum's limitations, NEAR incorporates sharding. This key distinction allows the blockchain to significantly enhance its throughput, accommodating a more substantial transaction volume by dividing the blockchain into smaller, concurrent shards. A pivotal differentiator for the NEAR Protocol, sharding was introduced in November 2021 as Nightshade. This technique allows validators to process only transactions specific to their assigned shards, enabling potentially infinite scalability. For end users and investors, Nightshade ensures quicker transaction speeds at reduced fees. Diverging from traditional sharding methods that split the blockchain into multiple states, NEAR's design maintains the blockchain as a singularly sharded entity. Additionally, a synchronized state mechanism ensures that a change in one block's state prompts adjustments in other shards correspondingly. In March 2023, NEAR unveiled the Blockchain Operating System (BOS), a groundbreaking open-source platform that allows developers to craft applications across various blockchain environments using well-known programming languages. Moreover, it provides crypto users with an experience reminiscent of Web 2. Designed to be inclusive, BOS appeals to Web3 veterans and those new to the decentralized web. By ensuring easy onboarding, robust security, and seamless cross-chain interactions, BOS is setting a new paradigm for Web 3 application development. The NEAR Foundation, with the inception of the NEAR Digital Collective (NDC) and a pivot to community DAOs, is pioneering a transition to a more democratized and decentralized framework compared to the conventional Board-based system. Launched in Q3 2022, the NDC represents a concerted effort to decentralize decision-making within the NEAR network, emphasizing transparency through defined treasury management and embracing decentralized governance with on-chain voting. Furthermore, the NDC aspires to advance validator decentralization and stimulate the development of the core protocol and infrastructure. Looking forward into 2024, the Near protocol will introduce several pivotal milestones, including the next step in Nightshade sharding, meta transactions, zero-balance accounts, a Global Storage proposal, and more. Introduction to Near NEAR Protocol is a Layer-1 (L1) smart contract blockchain with a bleeding-edge sharded design and an emphasis on an intuitive Web 2-like customer experience, all while preserving the security and decentralization users expect with a blockchain. Established in 2018, it sets out to achieve improved usability, efficiency, and scalability over preceding chains like Ethereum. Founded by Illia Polosukhin and Alexander Skidanov and spearheaded by the Near Collective, the NEAR Protocol was envisioned to serve as a community-driven cloud computing PoS blockchain and a decentralized hub tailored explicitly for hosting innovative decentralized applications. The central motivation behind NEAR's technology is to prevent network congestion and furnish a conducive environment for developers, thereby promoting on-chain protocol development. Early on, NEAR identified certain operational challenges in Ethereum, particularly related to network congestion and high/volatile gas fees, that it looked to solve. To do so, Near turned towards sharding. A key differentiator for NEAR, sharding, in essence, provides the ability for a blockchain to increase its throughput and handle a larger number of transactions by partitioning the blockchain into smaller parallel shards. In its pursuits, Near introduced an original approach to sharding in November 2021 known as Nightshade, initially unveiled as Simple Nightshade. The underlying principle of Nightshade is that validators are not burdened with the task of processing every incoming transaction. Instead, they only handle transactions that are within specific shards. By doing so, Nightshade paves the way for theoretically limitless scalability. But what does this mean for the end user or investor? Primarily, this approach, which is entirely abstracted from the end-user experience, allows for reduced transaction fees while ensuring rapid transaction speeds. Additionally, Near recently launched a new initiative in early 2023 known as the Blockchain Operating System (BOS). This development represents a significant shift in how we perceive blockchain platforms. The BOS is designed to integrate seamlessly with various blockchain systems while facilitating decentralization and discoverability, which have historically been impossible to achieve together. Essentially, the BOS is grounded in blockchain technology but broadens its application by acting as a universal layer, making it adaptable to different blockchain frameworks. One of its primary features is the provision of a decentralized platform for front-end development. This platform aims to simplify the creation of blockchain applications by emphasizing clarity and flexibility. One of the core advantages of BOS is its potential to decentralize user interactions, improve security protocols, and enhance the modularity of components. Additionally, it prioritizes compatibility across diverse blockchains, presenting developers with a more intuitive and straightforward development environment. NEAR Technologies Blockchain Operating System (BOS) In March 2023, the NEAR protocol introduced the Blockchain Operating System (BOS), an open-source platform empowering developers with the flexibility to build across diverse blockchain environments using familiar programming languages and equipping crypto users with a familiar Web 2 UX. The BOS is designed to be inclusive and democratize the open, catering not only to seasoned web3 enthusiasts but also to the broader audience who might be newer to the decentralized web. A significant breakthrough in the system is eliminating the immediate need for a new user to own any cryptocurrency, substantially reducing the friction of user onboarding. Additionally, the BOS interface streamlines access and navigation, making it more user-friendly for both developers and the general populace. Moreover, it enables users to search through a portal to diverse communities and applications, all the while prioritizing data privacy. Further, the BOS's user-centric design, coupled with its focus on accessibility, does not just simplify the onboarding experience but also bolsters the discovery of new applications. Remarkably, the BOS functions both as a development platform and a social network. It’s an environment where users can both deploy and unearth new applications. In delivering straightforward onboarding procedures, unmatched security, and fluid interactions across all chains, the BOS is reshaping the framework for constructing Web 3 applications. BOS Under the Hood The Blockchain Operating System (BOS) by NEAR seeks to redefine the landscape of Web3 applications through its unique architecture based on three pivotal elements: components, blockchains, and gateways. Here, we will delve into the significance of each element and examine how they collectively shape the BOS framework. Components: The Building Blocks of BOS Components exist at the decentralized application (dApp) layer and can be equated with notable platforms such as Lido, Uniswap, Compound, and others. They stand out for their on-chain storage, high degree of transparency, and their ability for developers to fork these applications, harnessing their functionalities and composability to craft comprehensive web applications. Storing the entirety of a component's code on-chain not only ensures auditability but also bolsters security. With the code readily available for scrutiny in blockchain explorers, users can operate these applications locally, enjoying resilience against potential censorship and a streamlined user experience. This ability to natively audit and locally run the applications represents a paradigm shift in the user-app relationship. Blockchains: The Underlying Infrastructure The versatility of components and the BOS becomes apparent in their ability to interact with numerous blockchains and smart contracts instead of just one chain. Currently, BOS offers compatibility with all EVM chains, such as Ethereum, Polygon, Arbitrum, and Optimism, as well as, the native NEAR platform. As EVM chains dominate the TVL in the DeFi space, the BOS’ ability to work across nearly all enables users to tap into nearly all the liquidity and top dApps in the crypto economy. NEAR's capability to efficiently and cost-effectively store HTML/CSS/JS makes it the preferred choice for hosting app source codes. Gateways: Bridging the Gap to Decentralization Gateways, the third pillar of the BOS, facilitate the delivery of decentralized front-ends to a broader audience. Each gateway is underpinned by a bespoke virtual machine (VM) equipped to load and run frontends for protocols, be they Ethereum-based, Layer 2 solutions, or alt-L1 platforms like NEAR. All code pertaining to these frontends finds its home on the NEAR blockchain. The gateways are diverse, ranging from wallets and portfolio tools to distinct applications like SWEAT. They cater to tasks as rudimentary as adding swap functionality or as intricate as erecting decentralized app stores. Integrating this expansive functionality requires just the addition of a JavaScript library, followed by a selection of desired app front-ends. Prominent gateway exemplars include near.org, bos.gg, near.social, Cantopia, and nearpad.dev. The decentralization of composable front ends enabled by the BOS is unique to Near, filling a conspicuous and much-needed void in the crypto arena. Instead of relying on centralized data servers, these front ends are blockchain-stored, promoting both composability and resistance to potential censorship. Historical instances, such as Uniswap's token delisting and the sanctions imposed on Tornado Cash, underscore the vulnerabilities of front ends. BOS’s decentralized approach allows developers the flexibility to fork these front ends and build in the truly OSINT environment that the cryptocurrency movement was built upon. BOS Advantages The BOS aims to integrate decentralization with discoverability and developer flexibility. Central to the BOS framework is its array of Web3 development tools that are crafted with the intent of pushing Web3 mainstream. From the onset, the system is designed to enhance user onboarding, improve cross-chain development and app discoverability, and create a seamless UX for Web3 users. This last point on abstracting away different blockchains for a seamless Web3 experience has benefits beyond simply improving UX. It can potentially also reduce the liquidity fragmentation and tribalism associated with a fragmented crypto economy built around disparate, siloed blockchains. The BOS proposes a solution to this by striving for a consistent user experience across multiple blockchains and allowing developers globally to access and implement various Web3 components. With users and developers now (potentially) unable to discern which blockchain they are using, there is no longer a need to promote one over the other. None of this is possible without the composability offered by the BOS. The system aims to be chain and language-agnostic, allowing developers to reuse and adjust different components while utilizing the language of their choice. The BOS supports a variety of languages for smart contract development, including JavaScript, Rust, AssemblyScript, and Solidity. Complementing this are their collaborations with established cloud providers, namely Google, Seracle, and Alibaba Cloud, to make transitioning from Web2 to Web3 as comfortable as possible. In addition, NEAR has initiated the NEAR Dev Hub, a platform envisioned as a resource hub for developers. Preliminary outputs from this initiative include sponsored hackathons and the establishment of community groups. Thresholded Proof of Stake The NEAR Protocol operates on a distinct consensus mechanism known as "Thresholded Proof of Stake" (TPoS). Similar to other PoS implementations, TPoS still uses validators, who must stake NEAR tokens to participate, to validate transactions and ensure the integrity/security of the network. However, within the TPoS environment, validators can assume one of four pivotal roles: Chunk Producers: Their primary responsibility is to authenticate transactions on individual shards, subsequently crafting a chunk, often referred to as a "shard block", from their designated shard. Block Producers: These validators gather chunks from their chunk-producing counterparts associated with discrete shards. Their function culminates in the production of a block, which is then added to the primary chain. Hidden Validators: Operating under a veil of confidentiality, these validators authenticate random shards — shards whose identity remains a secret to them and is undisclosed to the public. This veil serves a dual purpose. Firstly, it considerably complicates the task for any malevolent entities attempting to compromise them. Secondly, it robustly augments the chain's overall security measures. Fishermen: Actively overseeing certain chain segments, these validators act as the guardians against fraudulent activities. They constantly monitor, ready to flag any nefarious activities. Interestingly, their operational requirements are modest — a minimal stake. However, this role, though critical, doesn't confer any rewards. Central to TPoS is its innovative auction system employed to select validators. This methodology, in essence, discourages the practice of pooling. When validators amass resources, they not only amplify their individual rewards but also consolidate control over the chain. Such centralization runs counter to the foundational principles of blockchain, which emphasize distributed control. The TPoS design confronts this challenge head-on by placing natural barriers against pooling. Additionally, TPoS tackles the issue of consensus forking — a scenario in which multiple validators simultaneously contribute blocks to the chain. Such events can elongate the time required for transaction finality. By minimizing the possibility of these forking instances, TPoS ensures swifter transaction finality. Validator Requirements Validators bear the critical responsibility of validating and executing transactions across the entirety of NEAR's sharded blockchain. Additionally, they monitor their peers (other validators), ensuring no invalid blocks are produced or alternate chains are formed. Validators found compromising network stability undergo "slashing," where part or all of their staked assets are confiscated. To compensate for their services and inherent risks, NEAR validators receive a inflationary protocol rewards, amounting to 4.5% of the total supply annually. Given the complexity of the validator role, there are stringent hardware requirements (e.g. costs) for anyone looking to run one. To effectively run a validator, a robust system configuration, consisting of an 8-Core CPU, 16GB of RAM, and 1 TB SSD storage, is necessary. Current estimates indicate that the monthly expenditure for hosting a block-producing validator node stands at $330+. Potential and existing validators can gain insights into the current active validators by visiting the Explorer. For those considering becoming a block-producing validator, the seat price is a crucial factor. This price is derived from the 300th proposal and is subject to real-time updates, which are also available for viewing on the Explorer. Notably, only validator nodes that stake an amount surpassing this seat price are eligible to join the active validator cohort. On the other hand, the more specialized chunk-only producers, introduced in September 2022, have lower hardware and stake requirements. The introduction of chunk-only producers increased the network's validator capacity ~3x, with ~120 chunk-only producers. This rise in validating entities can be attributed to the lowered operational requirements for these validators (an 8-core CPU, with 16GB of RAM, and 500 GB SSD of storage) and a consequent reduction in the validator seat price. Validator Selection and Seat Price Thresholded Proof of Stake (TPoS) forms the backbone of the NEAR Protocol’s consensus mechanism. Designed to foster increased network engagement, TPoS distributes rewards equitably by capping them per shard relative to the staked NEAR quantity. This system, in theory, curbs the dominance of larger validator pools by proffering higher rewards for shards with minimal stakes. Furthermore, the concept of storage staking is integral to the NEAR ecosystem. Here, account owners pay for smart contract storage through tokens. These tokens, corresponding to the volume of stored data, are locked, consequently reducing both the tokens available for general staking and the overall circulating supply. As of Q3 2023, approximately 600 million NEAR tokens have been staked, encompassing about 51% of the entire supply. This staked amount is distributed among 217 validators, seemingly highlighting the protocol's decentralized nature. TPoS endeavors to cultivate an extensive participant pool, comprised of witnesses (an individual participant) that are designated for election during consensus deliberations. These elections follow a prescribed structure over a 24-hour period, segmented into 1,440 slots, implying a slot a minute. An impressive tally of 1,024 witnesses is allocated per block, cumulatively providing 1,474,560 individual witness opportunities (seats). The price of each seat is inherently anchored to the aggregate NEAR staked by the aspiring witnesses. A compulsory lock-in period of three days is imposed on any NEAR earmarked for this purpose. This design, while intended to promote decentralization, is not immune to centralizing forces. Let’s look at an example. If each of the 1,474,560 witnesses pledged 10 NEAR, the requisite seat cost would be 10 NEAR. However, if this stake were concentrated among ten individuals, each staking in 1,474,560 tokens, the seat value would still remain unchanged at 10 NEAR, but the distribution and power skew dramatically. In the latter scenario, while the price-per-seat is comparable, each of these ten participants holds a staggering 147,456 seats. Actual Validator Decentralization NEAR Protocol has ~ 217 validators, a relatively small absolute number when compared to some other blockchains. This inevitably leads to a certain level of centralization, especially if a significant percentage of these validators are hosted by a few entities. The empirical results regarding the efficacy of TPoS’ ability to mitigate pooling and enhance decentralization are mixed. Data from 2023 highlights that the lion's share (~35%) of the stake is held by the top eight staking pools in NEAR. Such concentration is arguably similar to Bitcoin’s PoW hashrate distribution and other PoS designs, like Ethereum. However, a retrospective glimpse to early 2022 shows that approximately 33% was under the control of just six entities, suggesting a gradual yet positive trajectory for overall stake distribution. This model certainly accentuates network involvement but seemingly falters in promoting true decentralization. While incentivizing widespread participation potentially aids in spreading block validation tasks across the NEAR Protocol, it doesn't necessarily decentralize the decision-making authority. The inherent design of NEAR’s TPoS ensures that seats are apportioned based on the NEAR amount each entity stakes. Consequently, entities with large stakes invariably dominate the majority of the available seats. Additionally, the concentration of validators among a few hosting sites can introduce central points of failure and diminish the decentralized ethos of blockchain. Per the image below, three hosting services account for over 50% of Near’s validator set. Because Near’s hardware requirements and seat price (~26,600 NEAR or ~$26,600 USD at the time of writing) preclude most individuals from becoming a validator, a more balanced distribution among several providers would be preferable. Nightshade Sharding The NEAR Protocol's solution to scalability is a sharding technique, which seeks to alleviate computational strain by segmenting the network's data into more manageable fragments, termed "shards." While many sharded blockchain architectures operate each shard as an independent blockchain with its unique set of validators, NEAR has introduced an innovative variant dubbed "Nightshade." To fully appreciate the intricacies of sharded architectures, it's essential to delve into the functions of nodes within a blockchain network and the accruing resource demands they shoulder over time. Nodes, in their quintessential role, shoulder three primary responsibilities in the decentralized expanse of a blockchain: Compute: Engaging in the processing of incoming transactions. Consensus: Disseminating validated blocks to the interconnected nodes spanning the network. Storage: Chronicling the comprehensive state and historical tapestry of the entire network. Each facet of a node's operation, however, is accompanied by escalating demands. A surge in transactional volume necessitates enhanced computational prowess, the relaying of blocks and transactions amplifies bandwidth requirements, and an expanding ledger accentuates storage prerequisites. Within a typical sharded blockchain infrastructure, each shard becomes a custodian of its localized state, ensuring it only broadcasts transactions intrinsic to its jurisdiction. This delegation inherently lightens the resource commitment on individual nodes and augments scalability. Nevertheless, it also ushers in an intricate challenge - the need for efficient cross-shard collaboration. In a dynamically sharded environment, it's imperative for shards to remain cognizant of the location of all or specific states continuously and synchronize in tasks like validator selection and punitive measures. Frameworks such as Ethereum and Polkadot have sought to streamline this coordination by anchoring their architecture around a central Beacon or Relay chain, respectively. These serve as epicenters of communication, ensuring fluid interoperability and coordination among the myriad shards. However, there are limiting factors around the scalability of such a design. However, the ingenuity of NEAR’s Nightshade implementation lies in its differing approach to shards and cross-shard consensus. Here's a more granular look into why it stands out: Unified Blockchain Sharding: Unlike some sharding methodologies that segment the blockchain into multiple states, NEAR's approach ensures the blockchain remains sharded as a single-state entity. Inter-shard Transactions: Every block within the NEAR protocol can accept transactions from all other shards. This not only promotes interoperability but also enhances the holistic functioning of the network. Synchronized Shard States: An intriguing feature of NEAR’s protocol is its synchronized state mechanism. When the state of one block undergoes a change, other shards within the network are triggered to adjust their states correspondingly. Instead of segmenting the chain, Nightshade functions as one cohesive blockchain. In this setup, every block amalgamates transactions from all shards and synchronously updates the complete state of every shard. This design choice ensures no single node is responsible for downloading the entire network state. The implications of Nightshade's design are profound, conferring NEAR with three distinct advantages: Enhanced Network Stability: With fewer opportunities for network forking, security gets a substantial boost. Optimized Speed: Since network participants manage only their respective shards, the network operates at an expedited pace. Improved Cross-Shard Composability: This feature allows for better interoperability between different shards.















