BitcoinLib

BitcoinElixir

Want to interact with the Bitcoin network through a DIY app? Look no further, this library is about doing it with Elixir in a very abstract way. It keeps the cryptography jargon to a minimum, while sticking to the Bitcoin glossary.

The easiest way to start is to try the wallet operations livebook.

How to use

First, make sure you've got elixir set up and that you know the language's basics.

Then, create a project and add the dependency in mix.exs.

def deps do
[
{:bitcoinlib, "~> 0.3.2"}
]
end

Finally, head to the private key creation documentation to get started.

Here are the most useful links

Technicalities

This lib can

Mid term goals

Supported address types

Address TypeDescriptionStarts WithSupported
P2PKHPay to Primary Key Hash1
P2WPKH-nested-in-P2SHNested Segwit3
P2WPKHNative Segwitbc1q
P2TRTaprootbc1pEventually...

Referenced bips

A bip is a Bitcoin Improvement Proposal. Here is a list of those that are at least partially implemented in this library:

PSBT bips, in the process of being implemented

Running static analysis

$ mix deps.get
$ mix test
$ mix dialyzer