Silverscript is a CashScript-inspired language and compiler that targets Kaspa script.
Status: Experimental — the project is unstable and may introduce breaking changes without notice. Use with caution and expect language syntax, APIs and output formats to change.
Note: The compiled scripts produced by this repository are valid only on Kaspa Testnet 12. Do not assume compatibility with other Kaspa networks or mainnet.
This repository is a Rust workspace. The main crate is silverscript-lang.
cargo test -p silverscript-langThe workspace includes a source-level debugger for stepping through scripts:
cargo run -p cli-debugger -- \
silverscript-lang/tests/examples/if_statement.sil \
--function hello \
--ctor-arg 3 --ctor-arg 10 \
--arg 1 --arg 2silverscript-lang/– compiler, parser, and testsdebugger/session/–DebugSessionruntime (stepping, variable inspection)debugger/cli/–sil-debugCLI REPLsilverscript-lang/tests/examples/– example contracts (.silfiles)
See TUTORIAL.md for a full language and usage tutorial, and DECL.md for the covenant declaration spec.
See CREDITS.md for acknowledgements and credits.
- Kaspa dependencies are pulled from https://github.com/kaspanet/rusty-kaspa.