@kyve/core-beta
TypeScript icon, indicating that this package has built-in type declarations

1.23.0 • Public • Published

@kyve/core

🚀 The base KYVE node implementation.

Architecture Overview

The KYVE protocol node is in general responsible for collecting data from various sources and submitting them for validation to the KYVE network. It does that by transforming the data, packaging it in bundles and storing them on permanent storage providers like Arweave, where other protocol nodes can retrieve and validate them for their correctness.

During all that time KYVE protocol nodes are communicating with the KYVE blockchain, a cosmos-sdk based PoS chain providing the main KYVE logic of registering bundle proposals and keeping track of votes.

General protocol node architecture

The basic architecture of a protocol node can be found below:





Overview

  • KYVE blockchain - a cosmos-sdk based PoS blockchain which has all the KYVE logic and is responsible for scheduling bundle proposal rounds and keeping track of bundle proposals and their respected votes from protocol nodes
  • Permanent Storage - usually web3 permanent storage providers like Arweave. This is the place where all validated data from KYVE will be archived
  • Local Node Cache - a local Key-Value-Store on the protocol node for caching all the data which is currently in the validation process
  • Data Sources - data sources defined by the storage pool. There can be multiple data sources or only one. Examples for data sources can be blockchain rpc endpoints or web2 api endpoints which need to be validated and archived
  • Proposal Round Cyclic Updates - schedules both main threads when to start collecting data or when to start validating/uploading bundle proposals. This schedule is dictated by the KYVE blockchain
  • Data Collection Thread - the main thread collecting the required data for the current proposal round. It requests all given data sources defined on the storage pool and writes them to the local node cache
  • Data Indexing Thread - the main thread validating proposed bundles proposals from other protocol nodes and proposing new bundle proposals to the network. It communicates closely with the KYVE blockchain and reads all the cached items for validation and proposition. Also for validation and proposition it reads and writes data to the permanent storage provider


Data collection thread overview

A more detailed architecture overview of the data collection thread can be found below:





  • core logic (red) - all the logic controlled by @kyve/core
  • runtime logic (blue) - all the custom logic defined by the runtime. This is very application specific
  • external data sources (green) - data sources defined on the storage pool which should be validated and archived
  • Key-Value-Store (yellow) - a local Key-Value-Store which serves as cache for the protocol node


Data indexing thread overview

A more detailed architecture overview of the data indexing thread can be found below:





  • core logic (red) - all the logic controlled by @kyve/core
  • runtime logic (blue) - all the custom logic defined by the runtime. This is very application specific
  • external data sources (green) - data sources defined on the storage pool which should be validated and archived
  • Key-Value-Store (yellow) - a local Key-Value-Store which serves as cache for the protocol node
  • Permanent Storage (grey) - a web3 permanent storage provider like Arweave where all the validated data from KYVE gets archived
  • KYVE blockchain (orange) - the KYVE chain which keeps track of bundle proposals and votes


Dependents (0)

Package Sidebar

Install

npm i @kyve/core-beta

Weekly Downloads

0

Version

1.23.0

License

MIT

Unpacked Size

684 kB

Total Files

197

Last publish

Collaborators

  • troykessler
  • johnletey
  • fabianriewe