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

KIPWhat to read it for
KIP-16OpZkPrecompile, Groth16, RISC Zero Succinct
KIP-17covenant opcode extensions and script expressiveness
KIP-20covenant IDs, output bindings, covenant contexts
KIP-21partitioned sequencing commitments and user lanes
KIP-24transaction v1 fields and hashing
KIP-25compute budget and script pricing

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
silverscripthigher-level covenant language, compiler, examples, debugger
argentexperimental actor-style frontend for multi-contract covenant apps
vprogsevolving runtime for based computation and RISC Zero proving
researchvProgs yellow paper and related research material

Local reading paths

For covenant developers:

silverscript/docs/TUTORIAL.md
silverscript/docs/DECL.md
silverscript/silverscript-lang/tests/examples/kcc20.sil
silverscript/examples/chess/book/src/patterns.md

For multi-contract covenant developers:

argent/docs/argent-design.md
argent/examples/stones/README.md
argent/build/stones/manifest.json
argent/build/stones/sil/*.sil

For based-app developers:

vprogs/README.md
vprogs/docs/proving-pipeline.md
vprogs/zk/backend/risc0/transaction-processor/src/main.rs
vprogs/zk/backend/risc0/batch-processor/src/main.rs
vprogs/zk/backend/risc0/batch-aggregator/src/main.rs
vprogs/zk/abi/src/batch_aggregator/journal/state_transition.rs

Narrative source

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.