KNS Docs
  • KNS Documentation
  • Introduction
  • How to Use KNS
    • Step by Step Tutorial
    • Search
    • .kas Inscribe Tool
    • Text Inscribe Tool
    • Dashboard
  • OTHERS
    • Supporting Wallet
    • FAQ
  • Fee Model
  • Reserved List
  • KNS Indexer API
  • Ownership
    • Verfied Domains
    • First Come First Served
  • Inscriptions
    • Overview
    • Operations
      • Create
      • Send
      • List
      • Transfer
Powered by GitBook
On this page
  • Prerequisites
  • The KNS Resolver utilizes Supertypo's Simply-Kaspa-Indexer
  1. Inscriptions

Overview

PreviousFirst Come First ServedNextOperations

Last updated 1 month ago

KNS Inscription Mechanism

KNS uses a two-step "Commit-Reveal Scheme" to embed data into the Kaspa network:

Commit Transaction: A hashed "Redeem Script" is created and stored on-chain, serving as a placeholder for the data.

Reveal Transaction: The data is revealed by spending the output of the commit transaction, making the content visible on-chain.

The mechanism supports structured "envelopes" to encapsulate data, ensuring compatibility and ease of retrieval. For KNS-specific data, the identifier "kns" is included in the envelope.

This process enables secure and organized insertion of arbitrary data into the Kaspa network.

Prerequisites

  • The Kaspa wasm package, which can be gotten . Example usage below:

import {
  Opcodes,
  ScriptBuilder,
  XOnlyPublicKey,
  type HexString,
} from "wasm/nodejs/kaspa/kaspa";

The KNS Resolver utilizes Supertypo's Simply-Kaspa-Indexer

Link:

here
https://github.com/supertypo/simply-kaspa-indexer