Questions tagged [libbitcoin]

21 questions
3
votes
1 answer

How to update an older C++ code from Antonopoulos' book to work with current libraries?

I am trying to compile a code in C++ from the Book "Mastering Bitcoin" by Antonopoulos (page 69). I am new to all of this, including C++, python, etc. I see it as a way of doing something interesting and alongside it learning a bit about different…
bomben
  • 498
  • 2
  • 4
  • 11
2
votes
1 answer

How to understand wallets?

I'm trying to generate a mnemonic seed, and everything that goes with that. I'm using c++ / libbitcoin, using the following code - https://github.com/libbitcoin/libbitcoin-system/wiki/Examples-from-Addresses-and-HD-Wallets When I compile & run the…
btcq4u
  • 21
  • 2
1
vote
1 answer

Why I'm getting different merkleroot?

I'm using merkle.cpp code (which uses the libbitcoin library for some helper functions) from Mastering Bitcoin book. I was trying to re-create Merkleroot hash for Bitcoin block #100000 containing 4 transactions: "tx": [ …
Remis
  • 137
  • 4
1
vote
0 answers

If I install libbitcoin-explorer will it be seperate from other libbitcoin repositories?

I am installing libbitcoin-explorer on a Raspberry Pi with the ./install.sh script and I wonder if this does anything to my existing installation of libbitcoin-system. Which files will be installed? Also, I wonder what happened to my bitcoind…
bomben
  • 498
  • 2
  • 4
  • 11
1
vote
2 answers

Was libbitcoin a part of bitcoin core in the past?

I am trying to use c++ code from the book of Antonopoulos for some time now and I seem to lack an include named bitcoin/bitcoin.hpp. To compile the code the g++ compiler gets a pkg-config input with libbitcoin. So I suspect I would have to install…
bomben
  • 498
  • 2
  • 4
  • 11
1
vote
0 answers

When installing libbitcoin is there an option to deactivate the warnings?

When installing libbitcoin from here with $ ./install.sh --prefix=/home/me/myprefix --build-boost --disable-shared after most of the compilation is done there are checks of the sourcecode with warnings like this one: In file included from…
bomben
  • 498
  • 2
  • 4
  • 11
1
vote
1 answer

How to determine right address from address hash

I'm using private libbitcoin server and libbitcoin explorer. When I use bx fetxh-transaction, it returns something like: I'm trying to figure out, how to get right address from address_hash. When I use bx base58check-encode for input address_hash…
Ramirez
  • 13
  • 2
1
vote
2 answers

error code: -26 error message: 16: mandatory-script-verify-flag-failed (Signature is found in scriptCode)

I am building a simple p2pkh transaction using libbitcoin. Trying to pass it through my regtest node. I am getting the following error message. error code: -26 error message: 16: mandatory-script-verify-flag-failed (Signature is found in…
1
vote
0 answers

Bitcoin Cash tx with bx

Is there a way to craft a transaction with bitcoin explorer (bx) on the Bitcoin Cash blockchain ?
bm842
  • 111
  • 1
1
vote
1 answer

Libbitcoin How to generate addresses on demand from xpub?

Well, I am really new to this. Just installed libbitcoin and I am reading trough the wiki and everything. Could someone really quick hint me how to generate addresses whenever I want from xpub that was exported from Electrum wallet? And/or Ledger…
Dan
  • 27
  • 4
0
votes
0 answers

problem to compil code addr.cpp

Trying to compile with g++ -o addr addr.cpp -std=c++11 $(pkg-config --cflags --libs libbitcoin) is getting me this error: /home/user/myprefix/lib/libsecp256k1.a(libsecp256k1_la-secp256k1.o) : Dans la fonction « secp256k1_num_mod_inverse »…
xubu1957
  • 1
  • 2
0
votes
2 answers

Problem to link to libsecp256k1 on ARM architecture

Trying to compile with g++ -o addr 69_addr2.cpp $(pkg-config --cflags --libs libbitcoin) is getting me this error: /usr/bin/ld: /home/pi/libbitcoininstall/lib/libsecp256k1.a(libsecp256k1_la-secp256k1.o): in function…
bomben
  • 498
  • 2
  • 4
  • 11
0
votes
2 answers

When installing libbitcoin there are checks of the code, why is this?

When installing libbitcoin from here with $ ./install.sh --prefix=/home/me/myprefix --build-boost --disable-shared after most of the compilation is done there seem to be checks of the sourcecode with warnings like thise one: In file included from…
bomben
  • 498
  • 2
  • 4
  • 11
0
votes
1 answer

How to convert a python example with getinfo to a usable function?

From Antonopoulos' book I try to use the example 3-3 on page 49 which uses a python skript called rpc_example.py to show the usage of the JSON-RPC API: from bitcoin.rpc import RawProxy p = RawProxy() info = p.getinfo() …
bomben
  • 498
  • 2
  • 4
  • 11
0
votes
1 answer

Number of bitcoins mined algorithm

Is there a library to know the number of bitcoin mined at a given block number ?
franck
  • 117
  • 3
1
2