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:

KIPWhat to read it for
KIP-16OpZkPrecompile: generic Groth16 (0x20); native RISC Zero STARK (0x21, deprecated)
KIP-17covenant opcode extensions and script expressiveness
KIP-20covenant IDs, output bindings, covenant contexts
KIP-21partitioned 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:

KCCStatusWhat to read it for
KCC-0FinalKCC governance, registries, and lifecycle
KCC-1Finalcovenant concepts, byte layouts, Program ABI, dispatch tags, virtual elements
KCC-2Finalcanonical authority schemes (0x00–0x04) and co-spend security notes
KCC-20Finalfungible token covenant standard, borrowed receive, and conformance vectors

rusty-kaspa code map

AreaFiles
Transaction modelconsensus/core/src/tx.rs, consensus/core/src/tx/serde_impl.rs
V1 txid and tx::hashconsensus/core/src/hashing/tx.rs
Sighashconsensus/core/src/hashing/sighash.rs
Compute budget and script unitsconsensus/core/src/mass/units.rs, consensus/core/src/mass/mod.rs
Transaction validationconsensus/src/processes/transaction_validator/
Subnetwork and lane IDsconsensus/core/src/subnets.rs
Covenant ID hashingconsensus/core/src/hashing/covenant_id.rs
Covenant contextscrypto/txscript/src/covenants.rs
Opcodescrypto/txscript/src/opcodes/mod.rs
Runtime resource metercrypto/txscript/src/runtime_resource_meter.rs
ZK precompile pricingcrypto/txscript/src/zk_precompiles/tags.rs, crypto/txscript/src/zk_precompiles/groth16/mod.rs
Toccata parametersconsensus/core/src/config/params.rs, consensus/core/src/constants.rs

Tooling repos

RepoWhat it is
silverscriptcovenant language, silverc, silverscript-abi, debugger
argentactor-based multi-contract compiler (argentc), ICC, runtime, and genesis tooling
argent-templatestarter Argent project template with setup script and Counter starter (episode-01 for Event/Ticket)
argent-playgroundworked Argent multi-actor and ICC demos (open-ICC DEX, badges, Chess Mux on chess branch)
kcc20-referenceKCC-20 fungible token reference in Argent with pinned .sil and conformance tests
vprogsevolving Rust framework and runtime for based computation
kaspa-r0-recursion-legacylegacy verifier-only RISC Zero 4.0.4 recursion crate for consensus compatibility
researchvProgs yellow paper and related research material

Source reading paths

For covenant developers:

For multi-contract covenant developers:

For KCC-20 token developers:

For based-app developers:

Narrative & security advisories

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.