4 votes
Accepted

Why I'm getting different merkleroot?

You actually did get the same hash. It's just that every Bitcoin software displays hashes byte swapped. If you look closely, you'll see that the first byte of your result (66) matches the last byte of ...
Ava Chow's user avatar
  • 70.4k
3 votes
Accepted

Was libbitcoin a part of bitcoin core in the past?

libbitcoin is not, and was never a part of Bitcoin Core. Both are standalone implementations of the Bitcoin protocol. Bitcoin Core, in its build process, will create a number of files named "...
Pieter Wuille's user avatar
3 votes
Accepted

Number of bitcoins mined algorithm

There is a fixed rate for how many bitcoins are mined each block. The block reward halves every 210,000 blocks, see Controlled Supply. Here is a short term bitcoin distribution projection from the ...
JBaczuk's user avatar
  • 7,388
2 votes
Accepted

How to determine right address from address hash

Your address 32feVAD9Haq1CtfT6JCLTt4L5qef3UnVpY is a P2SH mainnet address, with a 05 address prefix and represents the base58 encoding of the following data: [05][20-byte hash][4-byte checksum] So, ...
James C.'s user avatar
  • 2,511
2 votes

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

Even though this question is a bit old by now, it might be useful to add a couple of things for future readers who might encounter the same Signature is found in scriptCode error. First, the error ...
arubi's user avatar
  • 1,864
2 votes
Accepted

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

These are not tests. They are simply warnings generated by the compiler indicating there may be an issue with the code being compiled. Most likely, it's just being overzealous and the developers are ...
Pieter Wuille's user avatar
2 votes

How to understand wallets?

The address 13ggzjqKyFGQZtxNWUoG4BFDPAgdBijUe4 is generated from a different word list, not the one you mentioned.
yahiheb's user avatar
  • 169
2 votes
Accepted

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

I just found out there is a github where the code is updated. The specific code for addr.cpp is this. Compilation works with --static e.g. g++ -o addr addr.cpp $(pkg-config --cflags --libs --static ...
bomben's user avatar
  • 518
2 votes
Accepted

Unable to `make` libbitcoin on Debian VPS

Some background on this error can be found here: link. To fix it, you could either subtract 1 from the length being copied, or disable the warning. However, this library is certainly not maintained. ...
meshcollider's user avatar
  • 11.8k
1 vote
Accepted

Libbitcoin How to generate addresses on demand from xpub?

Did you try this section from their documentation? https://github.com/libbitcoin/libbitcoin-system/wiki/Addresses-and-HD-Wallets // Load mnemonic sentence into word list std::string my_sentence = &...
m1xolyd1an's user avatar
  • 5,646
1 vote

Problem to link to libsecp256k1 on ARM architecture

It seems like pkg-config found libsecp256k1 in the build-libbitcoin directory. which is part of libbitcoin, so they probably build libsecp25k61 there. The reason your code doesn't compile is because ...
elichai2's user avatar
  • 111
1 vote

Was libbitcoin a part of bitcoin core in the past?

The libbitcoin library is a completely separate library and it is not part of the Bitcoin core reference implementation code. The book code examples has an accompanying actively maintained github repo ...
daparic's user avatar
  • 181
1 vote

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

That message mentions -Wunused-function which is a compiler flag that invokes testing for useless functions that are defined in the source code but not used anywhere in the project. See stackoverflow ...
RedGrittyBrick's user avatar
1 vote
Accepted

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

Your code works well, but you have an error when you go to call the function getBlock(), with the bitcoin core reference the getBlock() function have a parameter and this parameter is the hash of the ...
vincenzopalazzo's user avatar
1 vote
Accepted

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

A standard P2PKH requires the following script in scriptPubKey ref: OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG Your scriptPubkey is currently short and malformed. ...
Coding Enthusiast's user avatar
1 vote

Not able to use bitcoin/bitcoin.hpp

The book code examples has an accompanying actively maintained github repo here. However, extra care is needed for the libbitcoin library dependency as it has new breaking changes. For example, #...
daparic's user avatar
  • 181
1 vote

Not able to use bitcoin/bitcoin.hpp

Try adding the -std=c++11 flag. I had the same problem and the following worked for me: g++ -std=c++11 -o test test.cpp $(pkg-config --cflags --libs libbitcoin)
fotiosp's user avatar
  • 11
1 vote
Accepted

How can I create uncompressed public key in C++?

I don't know much about c++ or libbitcoin, but I found a public method in the bc::wallet::ec_public class bool to_uncompressed(ec_uncompressed& out) const; So I guess you can probably convert ...
Rod Lin's user avatar
  • 130
1 vote
Accepted

Building libbitcoin libraries on Arch linux fails

Library modules provided by github/libbitcoin (incl. forked version of libsecp256k1) are by default installed using prefix /usr/local. configure script, that is run during build process, however, ...
jakob's user avatar
  • 303
1 vote
Accepted

What causes this error when installing libbitcoin?

It looks like there are issues with gcc on Mac. On an issue in the libbitcoin github repository 'evoskuil' states: gcc on osx is problematic because the ABI implementation is incomplete. It is ...
Murch's user avatar
  • 75.3k

Only top scored, non community-wiki answers of a minimum length are eligible