References
The source map for Toccata consensus, tooling, proofs, and the local repos behind this guide.
This guide is a synthesis. The sources of truth are the KIPs and the implementation.
When the guide and code disagree, follow the code and fix the guide.
KIPs
Browse KIPs on kips.dev or directly in kaspanet/kips:
| KIP | What to read it for |
|---|---|
| KIP-16 | OpZkPrecompile: generic Groth16 (0x20); native RISC Zero STARK (0x21, deprecated) |
| KIP-17 | covenant opcode extensions and script expressiveness |
| KIP-20 | covenant IDs, output bindings, covenant contexts |
| KIP-21 | partitioned sequencing commitments and user lanes |
| KIP-24 (Draft PR #41) | transaction v1 fields and hashing |
| KIP-25 (Draft PR #42) | compute budget and script pricing |
KCCs
Browse KCCs on kccs.dev or directly in kaspanet/kccs:
| KCC | Status | What to read it for |
|---|---|---|
| KCC-0 | Final | KCC governance, registries, and lifecycle |
| KCC-1 | Final | covenant concepts, byte layouts, Program ABI, dispatch tags, virtual elements |
| KCC-2 | Final | canonical authority schemes (0x00–0x04) and co-spend security notes |
| KCC-20 | Final | fungible token covenant standard, borrowed receive, and conformance vectors |
rusty-kaspa code map
| Area | Files |
|---|---|
| Transaction model | consensus/core/src/tx.rs, consensus/core/src/tx/serde_impl.rs |
V1 txid and tx::hash | consensus/core/src/hashing/tx.rs |
| Sighash | consensus/core/src/hashing/sighash.rs |
| Compute budget and script units | consensus/core/src/mass/units.rs, consensus/core/src/mass/mod.rs |
| Transaction validation | consensus/src/processes/transaction_validator/ |
| Subnetwork and lane IDs | consensus/core/src/subnets.rs |
| Covenant ID hashing | consensus/core/src/hashing/covenant_id.rs |
| Covenant contexts | crypto/txscript/src/covenants.rs |
| Opcodes | crypto/txscript/src/opcodes/mod.rs |
| Runtime resource meter | crypto/txscript/src/runtime_resource_meter.rs |
| ZK precompile pricing | crypto/txscript/src/zk_precompiles/tags.rs, crypto/txscript/src/zk_precompiles/groth16/mod.rs |
| Toccata parameters | consensus/core/src/config/params.rs, consensus/core/src/constants.rs |
Tooling repos
| Repo | What it is |
|---|---|
| silverscript | covenant language, silverc, silverscript-abi, debugger |
| argent | actor-based multi-contract compiler (argentc), ICC, runtime, and genesis tooling |
| argent-template | starter Argent project template with setup script and Counter starter (episode-01 for Event/Ticket) |
| argent-playground | worked Argent multi-actor and ICC demos (open-ICC DEX, badges, Chess Mux on chess branch) |
| kcc20-reference | KCC-20 fungible token reference in Argent with pinned .sil and conformance tests |
| vprogs | evolving Rust framework and runtime for based computation |
| kaspa-r0-recursion-legacy | legacy verifier-only RISC Zero 4.0.4 recursion crate for consensus compatibility |
| research | vProgs yellow paper and related research material |
Source reading paths
For covenant developers:
- Silverscript Tutorial
- Silverscript Covenant Declarations (
DECL.md) - Silverscript Constructor Argument JSON
- Silverscript Fungible Token Book
For multi-contract covenant developers:
- Argent Episode 1 Walkthrough (YouTube) (
argent-templateepisode-01branch) - Argent Design Doc
- Argent Route Planner
- Argent ICC Semantics
- Argent Genesis Proof Tooling
- Argent Security Invariants
For KCC-20 token developers:
- KCC-20 Interactive Walkthrough (
kcc20.manyfest.dev) - KCC-20 Hash-Chain Borrow Demo (
kcc20.manyfest.dev/hash-chain) - KCC-20 Reference Implementation (
argent-lang/kcc20-reference)
For based-app developers:
Narrative & security advisories
- Kaspa Covenants: Toccata Hard Fork Outlook
- What the RISC Zero Advisory Means for Kaspa's ZK Covenants (GHSA-g6qg-9j8p-7j87,
rusty-kaspaPR #1176)
What still needs hardening
This v1 guide is a working snapshot.
Likely next hardening passes:
- verify every Silverscript snippet against the current compiler;
- add transaction-builder examples for v1 covenant spends;
- add concrete launch-proof/indexer recipes;
- replace several Mermaid sketches with reusable static diagrams;
- deepen the vprogs chapter as the runtime API stabilizes;
- add worked examples for one L1 covenant app and one based app.