Skip to content

Evaluate Rúnar compiler for on-chain contract logic #2

@b0ase

Description

@b0ase

Context

Rúnar is a multi-language Bitcoin Script compiler (MIT licensed) by @icellan (Siggi). Write contracts in TypeScript/Go/Rust/Python/Solidity/Move → compile to Bitcoin Script. All compilers produce byte-identical output.

Why this matters for $402

  1. Payment contracts in TypeScript — write $402 payment verification as typed contracts instead of raw opcodes
  2. Token contracts — BSV-21 token logic as proper TypeScript classes with IDE autocomplete
  3. Multi-signer flowsprepareCall()/finalizeCall() enables Divvy revenue distribution escrow
  4. BRC-100 wallet integration — WalletSigner delegates to BRC-100 wallets (HandCash compatible)
  5. Post-quantum — hybrid ECDSA + WOTS+ wallets (~19KB) verified on-chain
  6. Stateful contracts — state management + UTXO tracking for PoI mining state

Key features (v0.2)

  • 6 input languages, 4 compiler implementations
  • 4 deployment SDKs with real on-chain deployment
  • Teranode integration (Docker Compose testing)
  • 400+ integration tests on regtest
  • ANF EC optimizer (saves ~1500 bytes per ecMul)
  • Off-chain runtime simulation for testing without blockchain

Evaluation plan

  • Install and test TypeScript compiler with simple P2PKH contract
  • Prototype $402 payment verification contract
  • Test deployment SDK against BSV testnet
  • Evaluate integration path for @path402/client SDK
  • Benchmark compiled script sizes vs hand-written opcodes

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions