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
722 downloads per month
Used in 25 crates
(22 directly)
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