rust-bitcoin library for Bitcoin data in Rust

Regulatory status
Not a financial service
Custody
Not applicable
Open source
Yes
Status
Active

Swiss angle

rust-bitcoin is a global open source project with no Swiss home. The rust-bitcoin repository, read on 4 October 2026, is run by its maintainers in the rust-bitcoin GitHub organisation and names no company behind it. It is a code library, holds no coins and offers no account, so it is not a financial service.

We found no Swiss maintainer or office named on the project's pages, so this listing claims none. The library matters to you in Switzerland only through what is built on it, and the technical deep dive chapter explains the transactions, scripts and keys it works with.

Who it is for

Rust developers who need to read or build Bitcoin data. The README describes it as a library "with support for de/serialization, parsing and executing on data-structures and network messages related to Bitcoin". It turns raw bytes into blocks, transactions, scripts and addresses, and back again, and it handles private keys and address creation, including full BIP-0032 support according to the same README.

Wallet builders who want a lower layer than a wallet kit. The BDK README says its crates are "built upon the excellent rust-bitcoin and rust-miniscript crates", so if you use the Bitcoin Dev Kit you already run this code underneath.

Projects that care about licence freedom. The README says "Our code is public domain", and the badge on the same page names CC0 1.0. You can fork it or sell a product built on it without asking anyone.

Teams that plan their toolchain. The README says the library should compile on Rust 1.74.0 with any combination of features, which tells you how old a compiler you can keep.

Who it is not for

Anyone looking for a wallet. rust-bitcoin is a library with no user interface; there is nothing to install on a phone or a laptop. Start with the wallet listings instead.

Developers writing code that fully validates the blockchain. The README says in bold that the library "must not" be used for consensus code, because there are known and unknown differences from the Bitcoin Core reference implementation. A node that decides which blocks are valid should use Bitcoin Core itself.

People working with other coins. The README states that the project does not support any altcoins, and it does not plan to.

Read the chapter

Verified facts

SourceChecked on
rust-bitcoin on GitHub

This directory carries no paid placements and no referral codes. No provider paid to be listed or to be described in a certain way. Each fact was checked against the primary source on the date shown next to it, and facts change after that date. This page is general information, not financial, legal or tax advice.

Want chapter updates?