#bitcoin #vm #account #run-time-environment #instructions #utxo #logging #core-functionality

arch_program

A Rust library for building programs that run inside the Arch Virtual Machine. Provides core functionality for creating instructions, managing accounts, handling program errors, and interacting with the Arch runtime environment. Includes utilities for logging, transaction handling, and Bitcoin UTXO management.

17 unstable releases (3 breaking)

new 0.5.15 Nov 11, 2025
0.5.12 Sep 23, 2025
0.5.5 Jul 21, 2025
0.4.0 Mar 31, 2025
0.1.0 Dec 6, 2024

#14 in #core-functionality

Download history 83/week @ 2025-07-22 15/week @ 2025-07-29 10/week @ 2025-08-05 2/week @ 2025-08-12 12/week @ 2025-08-19 175/week @ 2025-08-26 386/week @ 2025-09-02 373/week @ 2025-09-09 237/week @ 2025-09-16 250/week @ 2025-09-23 377/week @ 2025-09-30 102/week @ 2025-10-07 390/week @ 2025-10-14 208/week @ 2025-10-21 75/week @ 2025-10-28 37/week @ 2025-11-04

722 downloads per month
Used in 25 crates (22 directly)

MIT license

345KB
6.5K SLoC

Arch Program

A Rust library for building programs that run inside the Arch Virtual Machine. This crate provides core functionality for creating instructions, managing accounts, handling program errors, and interacting with the Arch runtime environment.

Features

  • Bitcoin transaction and UTXO management
  • Account data manipulation and ownership verification
  • System instruction creation and processing
  • Program error handling
  • Logging utilities
  • Cryptographic operations including secp256k1 signature recovery
  • Memory management for on-chain programs

Usage

Add this crate to your Cargo.toml:

[dependencies]
arch_program = "0.4.0"

Then import the modules you need in your code:

use arch_program::account::AccountInfo;
use arch_program::pubkey::Pubkey;
use arch_program::instruction::Instruction;
// ... other imports as needed

Dependencies

~14MB
~228K SLoC