KRNL Platform Guidebook
KRNL Platformkrnl.xyz
  • Introduction
    • Introduction
    • How Does kOS Work?
  • Setup
    • Getting Started with KRNL
    • Quick Start (CLI)
    • Quick Start (Online IDE)
      • Quick Start (Remix IDE)
      • Quick Start (Atlas IDE)
    • create-krnl-app
    • Platform Registration
  • Kernel
    • What are Kernels?
    • Kernel Registration
      • Kernel Registration (on-chain)
      • Kernel Registration (off-chain)
    • Supported OpenAPI (Off-chain Kernel)
    • Staking
  • Smart Contract
    • Steps for Smart Contract Developers
    • Choosing Kernel(s)
    • Token Authority
      • What is a Token Authority?
      • How to Build a Token Authority?
      • Generic Token Authority
      • How to Deploy a Token Authority on Oasis?
    • Decoding Kernel Responses in Solidity
    • How to Integrate Your Smart Contract with kOS?
    • Smart Contract Registration
  • DApp
    • dApp Registration
    • KRNL SDK Installation
    • Usage
    • KRNL Node RPC
  • Miscellaneous
    • Overview
    • What is the KRNL Platform?
    • What are You Trying to BUIDL?
    • Smart Contract Fundamentals
      • Why Do I Have to Register a Smart Contract?
      • How to Deploy a Smart Contract?
    • Recommended Kernels List
  • Helpful Resources
    • New to Web3?
    • Dictionary
    • Testnet Faucets
    • How to Get Etherscan API Key?
  • Litepaper
    • Litepaper
      • Overview
      • Problem Statement
      • Current State Does Not Solve the Problem
      • Introducing Kernels
      • Ecosystem of Kernels
      • The KRNL Operating System (kOS)
      • Decentralization and Security Considerations
      • Use Cases for KRNL
  • Appendices
    • FAQ
    • Bounty Program
    • Social Medias
    • Thank You
  • Workshop
    • KRNL Workshop
    • Speed's Workshop
Powered by GitBook
On this page
  • Prerequisites
  • What is KRNL Platform?
  • How Does Our KRNL Platform Work?
  • Kernel Registry
  • Smart Contract Registry
  • dApp Registry
  • Where are the Registry Smart Contracts?
  • Why Do We Use Smart Contracts as Registries?
  • How KRNL Node Utilizes Registries?

Was this helpful?

  1. Miscellaneous

What is the KRNL Platform?

PreviousOverviewNextWhat are You Trying to BUIDL?

Last updated 10 days ago

Was this helpful?

Prerequisites


What is KRNL Platform?

In short, the KRNL Platform is a dApp which connects to smart contract registries so that users can register more easily. It helps users to connect their wallets through interactive interfaces, browse kernels, and explore.


How Does Our KRNL Platform Work?

From the figure above, this is how the KRNL Platform works in a nut shell. It is a dApp that can call to smart contract registries from each category.

Kernel Registry

The first example would be when Tom and Jerry, an on-chain kernel provider and off-chain kernel provider respectively, try to register on the KRNL Platform. Metadata, like OpenAPI Specifications, function return types, and more, will all be registered on the Kernel Registry smart contract.

Smart Contract Registry

The next example is when Bob, who is a smart contract developer, has already deployed both his Token Authority and his ABCcoin minting smart contract. When Bob registers his smart contract on the KRNL Platform, his smart contract details will also be registered on the Smart Contract Registry smart contract.

dApp Registry

Here's another example. A dApp developer, such as Alice, can register her dApp on the KRNL Platform. Similar to the above examples, metadata from her dApp registration gets stored on the dApp Registry smart contract.


Where are the Registry Smart Contracts?

At this current stage, all registries are on the Sepolia network.

The addresses of registry contracts can be found in the bottom-left corner of the KRNL Platform.


Why Do We Use Smart Contracts as Registries?

The reason why we are using registry smart contracts with kOS is because we aim for the goal of being a decentralized platform where users can easily register their kernels, smart contracts, or dApp via on-chain smart contracts.

It also leads to an architectural position for kOS where the KRNL node can access and use the metadata from calling the registry smart contracts. Read more in the following section for more details.


How KRNL Node Utilizes Registries?

The following steps will occur:

  1. The node receives an entry ID from the KRNL SDK

  2. The KRNL node will get information of that entry ID from the dApp Registry

  3. The fetched information from point 2 contains the smart contract ID

  4. Comparing the smart contract ID in the Smart Contract Registry will give out the kernel ID(s)

  5. At this point, the node will know the details of the kernel(s) from the kernel ID(s)

On the right side, we can see that the diagram looks similar to what you probably have seen on the page. It shows that when a user submits the executeKernels(...) request to the KRNL node, the node will fetch the metadata from registry smart contracts.

It is important to note here that the above process of a KRNL node fetching metadata from registries could be considered "step 1.5" on the page.

How Does kOS work?
How Does kOS work?
How Does kOS Work?
Overview