项目作者: nayutaco

项目描述 :
Lightning Network (BOLT)
高级语言: C++
项目地址: git://github.com/nayutaco/ptarmigan.git
创建时间: 2017-07-21T10:59:52Z
项目社区:https://github.com/nayutaco/ptarmigan

开源协议:Apache License 2.0

下载


Ptarmigan

Build Status
License
PRs Welcome
Issue Welcome

Ptarmigan

About

Setup

  • Ubuntu 18.04
  • bitcoind
    • above v0.17 (getnetworkinfo version >= 170000)
    • bitcoin mainnet / testnet / regtest
    • NOTE
      • not support bitcoin.conf section format

Install

  1. sudo apt install -y git autoconf pkg-config build-essential libtool python3 wget jq bc
  2. git clone https://github.com/nayutaco/ptarmigan.git
  3. cd ptarmigan
  4. make full
  5. # takes a lot of time...

NOTE and details

Starting bitcoind

At first, start bitcoind.
ptarmd use bitcoind JSON-RPC, so need rpcuser and rpcpassword.

  • bitcoin.conf sample
  1. rpcuser=bitcoinuser
  2. rpcpassword=bitcoinpassword
  3. server=1
  4. txindex=1
  5. testnet=1
  1. bitcoind -daemon
  2. # check started chain
  3. bitcoin-cli getblockchaininfo | jq -e '.chain'

Starting ptarmd

For starting ptarmd, you should make new node as follows.

  1. cd ptarmigan/install
  2. ./new_nodedir.sh [NODENAME]
  3. cd [NODENAME]
  4. # start ptarmigan daemon
  5. # CHAIN=mainnet, testnet or regtest
  6. ../ptarmd --network=testnet

How to use

Note: ptarmigan has interfaces of CLI, JSON-RPC and REST API.
But CLI and JSON-RPC will change in the near future.
Try the newer REST API interface.

Dependency

libraries

application

  • bitcoind
    • JSON-RPC
      • getrawtransaction
      • signrawtransactionwithwallet
      • sendrawtransaction
      • gettxout
      • getblock
      • getblockhash
      • getblockcount
      • getnewaddress
      • estimatesmartfee
      • getnetworkinfo
      • listunspent
      • lockunspent

Security

If you find any issues regarding security,
please disclose the information by sending an (possibly encrypted) email to security at nayuta dot co.
Our PGP key 3C95B178758342844787766AAF91183E1DCC4222.