bitcoin-rs是一个用Rust编写的Bitcoin全节点实现项目1,旨在在保持Bitcoin共识的基础上探索大胆的架构创新1。该项目采用AI辅助开发方式,通过与Bitcoin Core、历史链数据以及共识测试向量的对比验证来构建替代实现1。
项目的技术设计围绕多个核心方向展开1。脚本验证支持Legacy、SegWit v0和Taproot格式,利用rayon workers实现脚本检查的并行运行1。存储层默认采用LSM树存储方案(fjall),同时支持redb和rocksdb等替代选项1。在API接口方面,项目提供与Bitcoin Core兼容的RPC接口以及Esplora兼容API,支持JSON-RPC和Rust类型化嵌入等多种调用方式1。项目的主要关注点包括性能优化、UTXO集所有权、模块化设计和Rust原生集成1。
项目使用Apache-2.0许可证1,用户可通过cargo build --profile quickstart -p bitcoin-rs命令快速启动编译1。
A new open-source project called bitcoin-rs has been introduced, offering a Bitcoin full node implementation written in Rust that aims to explore bold architectural innovations while maintaining Bitcoin consensus 1. The project leverages AI-assisted development methodology and validates its implementation through comparison with Bitcoin Core, libbitcoinkernel, historical chain data, consensus test vectors, fuzzing, and differential testing 1.
The implementation supports Legacy, SegWit v0, and Taproot script verification, with script validation executed in parallel using rayon workers 1. For storage, bitcoin-rs defaults to an LSM tree approach via fjall but also supports redb and rocksdb as alternatives 1. The project emphasizes key architectural priorities including performance optimization, UTXO set ownership, modular design, and native Rust integration 1.
Users can quickly build the project using the command cargo build --profile quickstart -p bitcoin-rs 1. The software provides dual API compatibility, supporting both Core-compatible RPC and Esplora-compatible APIs, alongside JSON-RPC and Rust-typed embedding for integration 1. Bitcoin-rs is distributed under the Apache-2.0 license 1.
评论
还没有评论,欢迎留下第一条。