• Stars
    star
    3,135
  • Rank 14,333 (Top 0.3 %)
  • Language
    Jupyter Notebook
  • Created almost 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A complete course for learning Bitcoin programming and usage from the command

Learning Bitcoin from the Command Line 2.2.0

by Christopher Allen and Shannon Appelcline

Learning Bitcoin from the Command Line is a tutorial for working with Bitcoin (and Lightning) that teaches direct interaction with the servers themselves, as the most robust and secure way to begin cryptocurrency work.

NOTE: This is a draft in progress, so that I can get some feedback from early reviewers. It is not yet ready for use.

This tutorial assumes that you have some minimal background of how to use the command line interface. If not, there are many tutorials available, and I have one for Mac users at https://github.com/ChristopherA/intro-mac-command-line.

Translations

If you'd like to make your own translation, please see Contributing, below.

Table of Contents

PART ONE: PREPARING FOR BITCOIN

Status: Finished. Updated for 0.20.

PART TWO: USING BITCOIN-CLI

Status: Finished. Updated for 0.20.

PART THREE: BITCOIN SCRIPTING

Status: Finished. Updated for 0.20 and btcdeb.

PART FOUR: PRIVACY

Status: Finished.

PART FIVE: PROGRAMMING WITH RPC

Status: Finished.

PART SIX: USING LIGHTNING-CLI

Status: Finished.

APPENDICES

Status: Finished.

Status - Beta

v2.1.0 of Learning Bitcoin from the Command Line is feature complete and has undergone full editing and integration. It is ready for learning

We are also tentatively considering what we could include in a v3.0 of the course. If you'd like to support work of that sort, become a GitHub Sponsor or support us at our BTCPay Server, and let us know that Learning Bitcoin was the reason why.

Version History

2.2.0 (November 17, 2021)

2.1.0 (October 12, 2021)

  • New chapter 15 (i2p).
  • Added fixes to wallet usage from 0.21
  • Updated install to new Bitcoin Scripts for 22.0
  • Incorporated numerous fixes revealed by first translation projects

2.0.1 (June 15, 2021)

  • Numerous small patches following 2.0
  • Intended as baseline for translations (2.2.0), but 2.1.0 material on i2p slipped in

2.0.0 (November 3, 2020)

  • Second major release of Learning Bitcoin
  • Added material on Segwit, Tor, hardware wallets, lightning, regtest
  • Completely previous unfinished work on programming using a variety of languages

1.0.0 (pre-2020)

  • Original, extensive but incomplete version
  • Contained comprehensive sections on setup, bitcoin-cli, and scripting

Origin, Authors, Copyright & Licenses

Unless otherwise noted (either in this /README.md or in the file's header comments) the contents of this repository are Copyright Β© 2020 by Blockchain Commons, LLC, and are licensed under CC-BY.

Financial Support

Learning Bitcoin from the Command Line is a project of Blockchain Commons. We are proudly a "not-for-profit" social benefit corporation committed to open source & open development. Our work is funded entirely by donations and collaborative partnerships with people like you. Every contribution will be spent on building open tools, technologies, and techniques that sustain and advance blockchain and internet security infrastructure and promote an open web.

To financially support further development of Learning Bitcoin from the Command Line and other projects, please consider becoming a Patron of Blockchain Commons through ongoing monthly patronage as a GitHub Sponsor. You can also support Blockchain Commons with bitcoins at our BTCPay Server.

Contributing

We encourage public contributions through issues and pull requests! Please review CONTRIBUTING.md for details on our development process. All contributions to this repository require a GPG signed Contributor License Agreement.

if you would like to provide a translation of Learning Bitcoin into another language, please additionally see TRANSLATING.md.

Discussions

The best place to talk about Blockchain Commons and its projects is in our GitHub Discussions areas.

Blockchain Commons Discussions. For developers, interns, and patrons of Blockchain Commons, please use the discussions area of the Community repo to talk about general Blockchain Commons issues, the intern program, or topics other than those covered by the Gordian Developer Community or the Gordian User Community.'

Other Questions & Problems

As an open-source, open-development community, Blockchain Commons does not have the resources to provide direct support of our projects. Please consider the discussions area as a locale where you might get answers to questions. Alternatively, please use this repository's issues feature. Unfortunately, we can not make any promises on response time.

If your company requires support to use our projects, please feel free to contact us directly about options. We may be able to offer you a contract for support from one of our contributors, or we might be able to point you to another entity who can offer the contractual support that you need.

Credits

The following people directly contributed to this repository. You can add your name here by getting involved. The first step is learning how to contribute from our CONTRIBUTING.md documentation.

Name Role Github Email GPG Fingerprint
Christopher Allen Lead Author @ChristopherA <[email protected]> FDFE 14A5 4ECB 30FC 5D22 74EF F8D3 6C91 3574 05ED
Shannon Appelcline Lead Author @shannona <[email protected]> 7EC6 B928 606F 27AD

Additional contributions are listed below:

Role Names
Contributors: gg2001 (Go, Node.js sections), gorazdko (Rust section), Javier Vargas (C, Java, Lightning, Tor sections), jodobear (Appendix: Compiling Bitcoin, Python section), Prayank (i2p sections)
Reviewers: Glen Willem @gwillem
Sponsors: Blockstream Corporation

Translation Credits

Thanks to the volunteers who spent extensive time writing and reviewing other-language translations of the original English-language course.

Portuguese Translation

Name Role Github
Namcios Translator & Reviewer @namcios
Korea Translator & Reviewer @KoreaComK
Luke Pavsky Translator & Reviewer @lukedevj
hgrams Translator & Reviewer @hgrams

Spanish Translation

Name Role GitHub
Ian Culp Translator & Reviewer @icculp
Maxi Goyheneche Translator @maxcrowar
Said Rahal Translator @srahalh
CΓ©sar A. Vallero Translator & Reviewer @csralvall
Javier Vargas Translator & Reviewer @javiervargas

Responsible Disclosure

We want to keep all of our software safe for everyone. If you have discovered a security vulnerability, we appreciate your help in disclosing it to us in a responsible manner. We are unfortunately not able to offer bug bounties at this time.

We do ask that you offer us good faith and use best efforts not to leak information or harm any user, their data, or our developer community. Please give us a reasonable amount of time to fix the issue before you publish it. Do not defraud our users or us in the process of discovery. We promise not to bring legal action against researchers who point out a problem provided they do their best to follow the these guidelines.

Reporting a Vulnerability

Please report suspected security vulnerabilities in private via email to [email protected] (do not use this email for support). Please do NOT create publicly viewable issues for suspected security vulnerabilities.

The following keys may be used to communicate sensitive information to developers:

Name Fingerprint
Christopher Allen FDFE 14A5 4ECB 30FC 5D22 74EF F8D3 6C91 3574 05ED

You can import a key by running the following command with that individual’s fingerprint: gpg --recv-keys "<fingerprint>" Ensure that you put quotes around fingerprints that contain spaces.

More Repositories

1

Research

Blockchain Commons Research papers
Mathematica
118
star
2

Gordian

An entire architecture focused on user agency and security.
Shell
112
star
3

Pseudonymity-Guide

How to securely create and operate a pseudonymous identity.
95
star
4

SmartCustodyWhitePapers

#SmartCustody White Papers, which have been consolidated into the #SmartCustody Book
83
star
5

LifeHash

A beautiful method of hash visualization based on Conway’s Game of Life: reference library in Swift
Mathematica
78
star
6

Community

Discussions & shared documents for stakeholders in Blockchain Commons
68
star
7

Gordian-Developer-Community

Discussions of Gordian principles, Gordian specifications, Gordian references, and making it all a reality.
Swift
64
star
8

GordianServer-macOS

Tor-protected full-node GordianServer for macOS
Swift
63
star
9

SmartCustodyBook

Manuscript for Book "#SmartCustody: The Use of Advanced Cryptographic Tools to Improve the Care, Maintenance, Control, and Protection of Digital Assets"
58
star
10

Bitcoin-Standup-Scripts

UNIX Scripts to install a Bitcoin-Core full node and Tor
Shell
54
star
11

lethekit

Open source DIY hardware box for offline cryptographic tools.
C++
52
star
12

GordianWallet-iOS

iOS wallet linked by Torgap to your own full-node server
Swift
47
star
13

SmartCustody

Overview of SmartCustody Topics, for Responsible Key Management
42
star
14

GordianSeedTool-iOS

Cryptographic Seed Manager for iOS
Swift
38
star
15

crypto-commons

Gordian Reference Code & CLI Utilities
34
star
16

spotbit

Self-Sovereign cryptocurrency price discovery tool leveraging Tor.
CSS
34
star
17

bc-lifehash

A beautiful method of hash visualization based on Conway’s Game of Life: reference library in C/C++
C++
29
star
18

seedtool-cli

Cryptographic Seed Tool for the command line
C++
28
star
19

QRCodeGenerator

A QR code generator written in pure Swift. Unlike Apple's built-in APIs for QR code generation, this package allows more sophisticated and tunable encoding techniques.
Swift
23
star
20

lifehash.info

A web-based demo of the LifeHash visual hash algorithm, written in C++ and compiled to WebAssembly.
C++
18
star
21

bc-sskr

Sharded Secret Key Reconstruction (SSKR) reference library in C
C
17
star
22

iOS-Bitcoin

libbitcoin bindings for Swift
Swift
12
star
23

bc-ur

UR reference library in C++
C++
11
star
24

GordianCosigner-iOS

Offline PSBT signer for iOS or MacOS
C
8
star
25

bc-bip39

BIP-39 mnemonics reference library in C
C
8
star
26

URKit

UR (Uniform Resources) reference framework for Swift
Swift
8
star
27

torgap

Torgap architecture & products
8
star
28

BCSwiftFoundation

A collection of useful primitives for cryptocurrency wallets.
Swift
7
star
29

BCSwiftTor

Opinionated pure Swift controller for Tor, including full support for Swift 5.5 and Swift Concurrency.
Swift
7
star
30

Secure-Development-Setup-macOS

Documentation & scripts for setting up secure developer tool environment for a macOS Catalina including git, github, gpg & ssh
Shell
7
star
31

URDemo

URKit demo of sending and receiving long binary messages via animated QR codes for iOS
Swift
7
star
32

bc-shamir

Shamir Secret Sharing reference library in C
C
6
star
33

www.SmartCustody.com

Website for #SmartCustody: the use of advanced cryptographic tools to improve the care, maintenance, control, and protection of digital assets.
SCSS
6
star
34

did-method-onion

Onion DID Method specification
HTML
5
star
35

bc-dcbor-rust

Deterministic CBOR ("dCBOR") for Rust.
Rust
5
star
36

iOS-CBitcoin

libbitcoin bindings for C
C++
5
star
37

musign-cli

ECDSA and Schnorr signing on libsecp256k1 for the command line
Rust
5
star
38

GordianQRTool-iOS

UR & QR code storage for iOS and MacOS
C
5
star
39

mori-cli

A CLI descriptor-based wallet to be used to safely inherit bitcoin
Rust
4
star
40

LifeHashTool

A command line tool written in Swift that generates LifeHash images as PNG files.
Swift
4
star
41

bc-libs-java

Blockchain Commons C libraries in Opinionated Java/Android wrapper
Java
4
star
42

keytool-cli

Cryptocurrency key & address derivation for the command line
C++
4
star
43

BCSwiftSecureComponents

A collection of useful primitives for cryptography, semantic graphs, and cryptocurrency in Swift.
Swift
3
star
44

BCLibwallySwift

Libwally in Opinionated Swift wrapper
Swift
3
star
45

bc-crypto-base

Audited cryptographic functions reference library in C
C
3
star
46

bc-bytewords

Bytewords reference library in C
C
3
star
47

secure-template

Template for future repositories to ensure provenance of commits through GPG
3
star
48

bytewords-cli

Bytewords reference tool for the command line
Shell
3
star
49

bc-dcbor-cli

A command line Deterministic CBOR ("dCBOR") validation and diagnostic tool.
Rust
3
star
50

www.blockchaincommons.com

Website for Blockchain Commons
SCSS
3
star
51

seedtool-cli-rust

A command-line tool for generating and transforming cryptographic seeds.
Rust
3
star
52

GordianSigner-macOS

Offline PSBT signer for MacOS (temporary repo)
C
2
star
53

bc-sskr-rust

Sharded Secret Key Reconstruction (SSKR) for Rust.
Rust
2
star
54

Bitcoin-Camouflage

HTML
2
star
55

bc-envelope-rust

Rust implementation of Gordian Envelope.
Rust
2
star
56

BCLibsSwift

Blockchain Commons C libraries in Opinionated Swift framework
Swift
2
star
57

bc-bech32

BIP-173 address format reference library in C
C
2
star
58

deployment-scripts

Scripts for Deploying Various Blockchain Commons Servers
Python
2
star
59

bc-tor

Tor project fork for use with Blockchain Commons projects, particularly Tor.framework and Mac Catalyst builds
C
2
star
60

argp-standalone

GNU Argp made available as a Git submodule
C
2
star
61

bc-slip39

SLIP-39 Shamir Secret Sharing reference library in C (deprecated)
C
2
star
62

bc-ur-java

UR encoding/decoding Java wrapper library
C++
2
star
63

bc-crypto-rust

A Rust crate that exposes a uniform API for the cryptographic primitives used in higher-level Blockchain Commons projects.
Rust
2
star
64

bc-components-rust

A collection of useful primitives for cryptography, semantic graphs, and cryptocurrency in Rust.
Rust
2
star
65

bc-libwally-swift

Libwally in Swift
C
1
star
66

BCSwiftEnvelope

Gordian Envelope - Swift Reference Implementation
Swift
1
star
67

BCSwiftNFC

A modern Swift library for reading and writing NFC tags.
Swift
1
star
68

bc-ur-rust

Wrapper around the `ur` crate for use in higher-level Blockchain Commons projects.
Rust
1
star
69

law-and-advocacy

Blockchain Commons Law & Advocacy Work
SCSS
1
star
70

www.FiduciaryComputing.com

HTML
1
star
71

bc-dcbor-ts

Blockchain Commons Deterministic CBOR ("dCBOR") for TypeScript
TypeScript
1
star
72

QRCodeGeneratorDemo

An iOS app that demonstrates use of the Blockchain Commons QRCodeGenerator.
Swift
1
star
73

Open-Development

Standard Terms for Open Development Agreements with Blockchain Commons
Makefile
1
star
74

lifehash-cli

A command line tool written in C++ that generates LifeHash images as PNG files.
Shell
1
star
75

.github

Default Community Health Files for all Blockchain Commons repos
1
star
76

sweeptool-cli

Descriptor based tool for sweeping bitcoin
Rust
1
star
77

BlockchainCommonsLLC

Information about "Blockchain Commons, LLC", a "not-for-profit" benefit organization chartered in the State of Wyoming, United States of America.
1
star
78

bc-shamir-rust

Shamir Secret Sharing (SSS) for Rust.
Rust
1
star
79

bc-depo-api-rust

API for the Blockchain Commons Depository ('depo') server.
Rust
1
star
80

WIPs-IETF-draft-envelope

The envelope protocol specifies a format for hierarchical binary data built on CBOR.
Shell
1
star
81

iOS-GordianCoordinator

Multisig Bitcoin transaction coordinator for iOS
Swift
1
star