Giter VIP home page Giter VIP logo

libbitc's Introduction

libbitc

GitHub license Segregated Witness

Build Status Coverage Status Coverity Scan Build Status

Join the chat at https://gitter.im/libbitc/libbitc Join the chat at https://irc.gitter.im/#libbitc Join the chat at https://libbitc.slack.com

Open in Gitpod

An itsy-bitsy bitcoin library, with lightweight client and utils.

This contains several pieces of interest:

  • libbitc - C library for building bitcoin applications
  • bitsy - (WIP) Bitcoin HD wallet
  • brd - (WIP) Bitcoin network full node ("block relay daemon")
  • Comprehensive test suite.

libbitc library dependencies: GMP

bitsy client dependencies: GMP

block relay daemon (brd) dependencies: GMP

Command line and configuration file usage

The bitsy wallet is operated via command line, in a similar style to "git sub-command". To obtain a list of commands, run

$ ./bitsy --help

The program stores settings in a key/value map. These key=value parameters may be specified on the command line via --set, or in a configuration file. To view these settings, run

$ ./bitsy settings

Recognized parameters

addnode

Format: address SPACE port

Manually add P2P node to peer manager.

config (alias "c")

Specify a pathname to the configuration file.

wallet (alias "w")

Specify a pathname to the wallet data file. Default "bitsy.wallet"

AES encryption is applied to the wallet. Passphrase is specified via environment variable BITSY_PASSPHRASE.

debug

Enable additional debug output.

net.connect.timeout

TCP connect(2) timeout.

Recognized commands

chain-set

Select blockchain and network. Reads the "chain" settings variable. Acceptable values are "chain=bitcoin" and "chain=testnet3". Updates internal parameters (pchMessageStart / network magic, genesis block, ...)

dns-seeds

Query and display bitcoin DNS seeds, for P2P node addresses.

settings

Display settings map.

address

Generate a new bitcoin address (ECDSA keypair). Store it in the current wallet,

create

Initialize a new wallet. Refuses to initialize, if the filename already exists.

createAccount

Create new HD account.

netsync

Synchronize with network: send any pending payments, and check for new incoming payments.

addressList

List all legacy non-HD bitcoin addresses in wallet.

dump

Dump entire wallet contents, including all private keys.

info

Informational summary of wallet data.

libbitc's People

Contributors

aido avatar amiller avatar colindean avatar csjones avatar dtebbs avatar fanquake avatar grimd34th avatar hubslave avatar jaromil avatar jayschwa avatar jgarzik avatar jonasschnelli avatar libbitc avatar willricketts avatar xloem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

grisha xloem isgasho

libbitc's Issues

CSV tests failing

Adding either of the following two CSV tests from bitcoin core to test/script_tests.json file will cause make check to fail.

["0", "CHECKSEQUENCEVERIFY", "CHECKSEQUENCEVERIFY", "UNSATISFIED_LOCKTIME", "CSV fails if stack top bit 1 << 31 is set and the tx version < 2"],
["4294967296", "CHECKSEQUENCEVERIFY", "CHECKSEQUENCEVERIFY", "UNSATISFIED_LOCKTIME",
  "CSV fails if stack top bit 1 << 31 is not set, and tx version < 2"],

Project status

What's the status of maintenance on this project? It looks like there might be more contributors needed? Are there any plans to enable automatic merging of pull requests to facilitate community maintenance?

make install fail

when execute sudo make install,get error as below

/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 include/secp256k1.h '/usr/local/include'
/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 libsecp256k1.pc '/usr/local/lib/pkgconfig'
make[3]: Leaving directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/secp256k1'
make[2]: Leaving directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/secp256k1'
Making install in libbitc.github.io
make[2]: Entering directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/libbitc.github.io'
Making install in Doxygen
make[3]: Entering directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/libbitc.github.io/Doxygen'
make[4]: Entering directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/libbitc.github.io/Doxygen'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/libbitc.github.io/Doxygen'
make[3]: Leaving directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/libbitc.github.io/Doxygen'
make[3]: Entering directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/libbitc.github.io'
make[4]: Entering directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/libbitc.github.io'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/libbitc.github.io'
make[3]: Leaving directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/libbitc.github.io'
make[2]: Leaving directory '/home/localadmin/Downloads/newlibbitc/libbitc/external/libbitc.github.io'
make[2]: Entering directory '/home/localadmin/Downloads/newlibbitc/libbitc/external'
make[3]: Entering directory '/home/localadmin/Downloads/newlibbitc/libbitc/external'
make[3]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p 'cJSON'
/usr/bin/install -c -m 644 cJSON/cJSON.h 'cJSON'
/usr/bin/install: 'cJSON/cJSON.h' and 'cJSON/cJSON.h' are the same file
Makefile:621: recipe for target 'install-cJSON_libcjson_laHEADERS' failed
make[3]: *** [install-cJSON_libcjson_laHEADERS] Error 1
make[3]: Leaving directory '/home/localadmin/Downloads/newlibbitc/libbitc/external'

Makefile:852: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/localadmin/Downloads/newlibbitc/libbitc/external'
Makefile:691: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/localadmin/Downloads/newlibbitc/libbitc/external'
Makefile:473: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

OS:Ubentu18.04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.