Browse files

Move all wiki docs into docs folder of the repo.

This allows the docs to be updated via pull requests and makes it easier
to keep it in sync as a part of normal code updates.
  • Loading branch information...
davecgh committed Jan 18, 2015
1 parent f9f4d37 commit 8a50187bf1f58e70968333c3200abfc2ce896bd4
@@ -103,7 +103,7 @@ is used for this project.
## Documentation
The documentation is a work-in-progress. It uses the [github wiki]( facility.
The documentation is a work-in-progress. It is located in the [docs]( folder.
## GPG Verification Key
@@ -0,0 +1,209 @@
### Table of Contents
1. [About](#About)
2. [Getting Started](#GettingStarted)
1. [Installation](#Installation)
1. [Windows](#WindowsInstallation)
2. [Linux/BSD/MacOSX/POSIX](#PosixInstallation)
2. [Configuration](#Configuration)
3. [Controlling and Querying btcd via btcctl](#BtcctlConfig)
4. [Mining](#Mining)
3. [Help](#Help)
1. [Startup](#Startup)
1. [Using bootstrap.dat](#BootstrapDat)
2. [Network Configuration](#NetworkConfig)
3. [Wallet](#Wallet)
4. [Contact](#Contact)
1. [IRC](#ContactIRC)
2. [Mailing Lists](#MailingLists)
5. [Developer Resources](#DeveloperResources)
1. [Code Contribution Guidelines](#ContributionGuidelines)
2. [JSON-RPC Reference](#JSONRPCReference)
3. [Conformal Bitcoin-related Go Packages](#GoPackages)
<a name="About" />
### 1. About
btcd is a full node bitcoin implementation written in [Go](,
licensed under the [copyfree]( ISC License.
This project is currently under active development and is in a Beta state. It is
extremely stable and has been in production use for over 6 months as of May
2014, however there are still a couple of major features we want to add before
we come out of beta.
It currently properly downloads, validates, and serves the block chain using the
exact rules (including bugs) for block acceptance as the reference
implementation, [bitcoind]( We have taken
great care to avoid btcd causing a fork to the block chain. It passes all of
the '[official](' block acceptance
It also properly relays newly mined blocks, maintains a transaction pool, and
relays individual transactions that have not yet made it into a block. It
ensures all individual transactions admitted to the pool follow the rules
required into the block chain and also includes the vast majority of the more
strict checks which filter transactions based on miner requirements ("standard"
One key difference between btcd and bitcoind is that btcd does NOT include
wallet functionality and this was a very intentional design decision. See the
[blog entry]( for
more details. This means you can't actually make or receive payments directly
with btcd. That functionality is provided by the
[btcwallet]( and
[btcgui]( projects which are both under
active development.
<a name="GettingStarted" />
### 2. Getting Started
<a name="Installation" />
**2.1 Installation**<br />
The first step is to install btcd. See one of the following sections for
details on how to install on the supported operating systems.
<a name="WindowsInstallation" />
**2.1.1 Windows Installation**<br />
* Install the MSI available at:
* Launch btcd from the Start Menu
<a name="PosixInstallation" />
**2.1.2 Linux/BSD/MacOSX/POSIX Installation**<br />
* Install Go according to the installation instructions here:
* Run the following command to ensure your Go version is at least version 1.2: `$ go version`
* Run the following command to obtain btcd, its dependencies, and install it: `$ go get`<br />
* To upgrade, run the following command: `$ go get -u`
* Run btcd: `$ btcd`
<a name="Configuration" />
**2.2 Configuration**<br />
btcd has a number of [configuration](
options, which can be viewed by running: `$ btcd --help`.
<a name="BtcctlConfig" />
**2.3 Controlling and Querying btcd via btcctl**<br />
btcctl is a command line utility that can be used to both control and query btcd
via [RPC]( btcd does
**not** enable its RPC server by default; You must configure at minimum both an
RPC username and password:
* btcd.conf configuration file
[Application Options]
* btcctl.conf configuration file
[Application Options]
For a list of available options, run: `$ btcctl --help`
<a name="Mining" />
**2.4 Mining**<br />
btcd supports both the `getwork` and `getblocktemplate` RPCs although the
`getwork` RPC is deprecated and will likely be removed in a future release.<br />
**1. Add the payment addresses with the `miningaddr` option.**<br />
[Application Options]
**2. Add btcd's RPC TLS certificate to system Certificate Authority list.**<br />
`cgminer` uses [curl]( to fetch data from the RPC server.
Since curl validates the certificate by default, we must install the `btcd` RPC
certificate into the default system Certificate Authority list.
**Ubuntu**<br />
1. Copy rpc.cert to /usr/share/ca-certificates: `# cp /home/user/.btcd/rpc.cert /usr/share/ca-certificates/btcd.crt`<br />
2. Add btcd.crt to /etc/ca-certificates.conf: `# echo btcd.crt >> /etc/ca-certificates.conf`<br />
3. Update the CA certificate list: `# update-ca-certificates`<br />
**3. Set your mining software url to use https.**<br />
`$ cgminer -o -u rpcuser -p rpcpassword`
<a name="Help" />
### 3. Help
<a name="Startup" />
**3.1 Startup**<br />
Typically btcd will run and start downloading the block chain with no extra
configuration necessary, however, there is an optional method to use a
`bootstrap.dat` file that may speed up the initial block chain download process.
<a name="BootstrapDat" />
**3.1.1 bootstrap.dat**<br />
* [Using bootstrap.dat](
<a name="NetworkConfig" />
**3.1.2 Network Configuration**<br />
* [What Ports Are Used by Default?](
* [How To Listen on Specific Interfaces](
* [How To Configure RPC Server to Listen on Specific Interfaces](
* [Configuring btcd with Tor](
<a name="Wallet" />
**3.1 Wallet**<br />
btcd was intentionally developed without an integrated wallet for security
reasons. Please see [btcwallet]( for more
<a name="Contact" />
### 4. Contact
<a name="ContactIRC" />
**4.1 IRC**<br />
* [](irc://, port 6697, tls, channel #btcd
<a name="MailingLists" />
**4.2 Mailing Lists**<br />
* <a href="">btcd</a>: discussion
of btcd and its packages.
* <a href="">btcd-commits</a>:
readonly mail-out of source code changes.
<a name="DeveloperResources" />
### 5. Developer Resources
<a name="ContributionGuidelines" />
* [Code Contribution Guidelines](
<a name="JSONRPCReference" />
* [JSON-RPC Reference](
* [RPC Examples](
<a name="GoPackages" />
* Conformal Bitcoin-related Go Packages:
* [btcrpcclient]( - Implements a
robust and easy to use Websocket-enabled Bitcoin JSON-RPC client
* [btcjson]( - Provides an extensive API
for the underlying JSON-RPC command and return values
* [btcws]( - Custom types for btcd
websocket extension commands (registers the extension commands with
* [btcwire]( - Implements the Bitcoin
wire protocol
* [btcchain]( - Implements Bitcoin
block handling and chain selection rules
* [btcscript]( - Implements the
Bitcoin transaction scripting language
* [btcec]( - Implements support for the
elliptic curve cryptographic functions needed for the Bitcoin scripts
* [btcdb]( - Provides a database interface
for the Bitcoin block chain
* [btcutil]( - Provides Bitcoin-specific
convenience functions and types
Oops, something went wrong.

0 comments on commit 8a50187

Please sign in to comment.