Expand description
Rúnar smart contract development crate.
Provides types, mock crypto functions, and real hash functions for developing and testing Rúnar contracts in Rust. Import the prelude to get everything:
ⓘ
use runar::prelude::*;Modules§
- ec
- Real secp256k1 elliptic curve operations for testing.
- ecdsa
- Real ECDSA signing and verification for contract testing.
- prelude
- Prelude — import everything needed for Rúnar contract development.
- rabin
- Real Rabin signature verification for contract testing.
- sdk
- Rúnar deployment SDK — deploy and interact with compiled contracts on BSV.
- slh_dsa
- SLH-DSA (FIPS 205) SHA-256 reference implementation.
- test_
keys - Pre-generated deterministic test keys for use across all Rust test suites.
- wots
- WOTS+ (Winternitz One-Time Signature) reference implementation.
Functions§
- compile_
check - Runs the Rúnar frontend (parse → validate → typecheck) on a
.runar.rssource string. ReturnsOk(())if the contract is valid Rúnar, or an error describing what failed.
Attribute Macros§
- contract
- Marks a struct as a Rúnar smart contract.
- methods
- Marks an impl block as containing Rúnar contract methods.
- public
- Marks a method as a public spending entry point.
- stateful_
contract - Marks a struct as a stateful Rúnar smart contract.