Fabric works best when installed globally (or on your $PATH). For most use
cases, we can install Fabric with simply:
$ npm i -g FabricLabs/fabric
$ fabric --keygen
This should create (or read) a folder ~/.fabric with a JSON configuration
file. Take care, as this file is not (currently) encrypted.
You may use the following environment variables for simple configuration:
FABRIC_SEEDto specify a BIP 39 seed phrase for your Fabric nodeFABRIC_PORTto specify the TCP port upon which to listen
FABRIC_PASSPHRASEto specify the derivation passphrase
First, we must ensure Bitcoin Core's RPC interface is available to us. We will rely on it to provide consensus over the Bitcoin blockchain.
- Install Bitcoin Core
0.21.1 - Add
rpcuserandrpcpasswordtobitcoin.conf - Run
bitcoind -regtest -server -txindex=1
In your local Fabric repository, complete the following:
- Configure
settings/local.jsonwith your Bitcoin RPC URL - Ensure global availability:
npm i -g - Run
fabric chat