Overview
Last updated
Last updated
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.
The Kaspa wasm package, which can be gotten . Example usage below:
Link: