Archive of the libbitcoin Slack #general channel.
src/.libs/libbitcoin.so: undefined reference to `secp256k1_ec_pubkey_parse'
template <typename... Args>
void subscriber<Args...>::relay(Args... args)
{
// This enqueues work while maintaining order.
dispatch_.ordered(&subscriber<Args...>::do_invoke,
this->shared_from_this(), args...);
}
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new | bx mnemonic-to-seed -p "sucks" | bx hd-new | bx hd-private -d -i 44 | bx hd-private -d -i 0 | bx hd-private -d -i 0 | bx hd-private -i 0 | bx hd-private -i 0 | bx hd-to-ec | sed 's/$/01/' | bx base58check-encode -v 128
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new | bx mnemonic-to-seed -p "sucks" | bx hd-new | bx hd-private -d -i 44 | bx hd-private -d -i 0 | bx hd-private -d -i 0 | bx hd-private -i 0 | bx hd-private -i 0 | bx hd-to-ec | bx ec-to-public | bx ec-to-address -v 0
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new | bx mnemonic-to-seed -p "sucks" | bx hd-new | bx hd-private -d -i 44 | bx hd-private -d -i 0 | bx hd-private -d -i 0 | bx hd-private -i 0 | bx hd-private -i 0 | bx hd-to-ec | bx ec-to-public -u | bx ec-to-address -v 0
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new | bx mnemonic-to-seed -p "sucks" | bx hd-new | bx hd-private -d -i 44 | bx hd-private -d -i 0 | bx hd-public -d -i 0 | bx hd-public -i 0 | bx hd-public -i 0 | bx hd-to-ec | bx ec-to-address -v 0
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new | bx mnemonic-to-seed -p "sucks" | bx hd-new | bx hd-private -d -i 49 | bx hd-private -d -i 0 | bx hd-private -i 0 | bx hd-private -i 0 | bx hd-to-ec | sed 's/$/01/' | bx base58check-encode -v 128
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new | bx mnemonic-to-seed -p "sucks" | bx hd-new | bx hd-private -d -i 49 | bx hd-private -d -i 0 | bx hd-public -d -i 0 | bx hd-public -i 0 | bx hd-public -i 0 | bx hd-to-ec | bx bitcoin160
% echo "0 [2228fd761aaf4da7471d3f08aeb33bf05d3ec2b5]" | bx script-to-address -v 5
cMymKXVtSusSVaBpLyUgrtpHy3esXf9ME5jj14twKxQJaCga9HLv
echo “This is a really bad low entropy brain wallet” | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new | bx mnemonic-to-seed -p “sucks” | bx hd-new | bx hd-private -d -i 44 | bx hd-private -d -i 0 | bx hd-private -d -i 0 | bx hd-private -i 0 | bx hd-private -i 0 | bx hd-to-ec | bx ec-to-public | bx ec-to-address -v 111
miP6BawYTMZBntPf1BWCs8ANtUZp17BnxL% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-32 | bx mnemonic-new
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-48 | bx mnemonic-new
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new
wallet::ec_private(key.secret(), network, true).encoded(); to get the encoded private key, the key variable is a hd_private object. Any ideas what am I doing wrong?http://aaronjaramillo.org/libbitcoin-working-with-altcoins
2. https://github.com/jachiang/LibbitcoinDocumentation/blob/master/AddressesWallets/AddressesWallets.mdbc::der_signature in Libbitcoin
-DER encoding in BIP66: https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki. // * R: arbitrary-length big-endian encoded R value. It must use the shortest
// possible encoding for a positive integers (which means no null bytes at
// the start, except a single one when the next byte has its highest bit set).
// * S: arbitrary-length big-endian encoded S value. The same rules apply.bc::der_signature is a variable length data_chunk (https://github.com/libbitcoin/libbitcoin/blob/master/include/bitcoin/bitcoin/math/elliptic_curve.hpp#L55)bitcoin-cli -regtest generate, and then have them propagate to the peer-connected Libbitcoin Server? https://github.com/libbitcoin/libbitcoin-server/issues/404 Thanks!Hashes have no meaningful comparison apart from equality.
I believe bitcoind manipulates bitcoin hashes as numbers, which is a bit strange, since the values are arbitrary except in one pow function.
PoW converts a hash to a number for an inequality relation (less than).
There is similarly a summation of branch work in blockchain, with comparison.
2018-08-23T17:35:14.871481 INFO [network] Connected manual channel [127.0.0.1:18444] as [127.0.0.1:18444] (1) 2018-08-23T17:35:14.872014 INFO [node] The chain is stale, send sendcmcpt low bandwidth [127.0.0.1:18444] 2018-08-23T17:35:14.936866 WARNING [network] Failure fetching new address: object does not exist 2018-08-23T17:35:14.937004 WARNING [network] Failure fetching new address: object does not exist
2018-08-23T17:35:14.872014 INFO [node] The chain is stale, send sendcmcpt low bandwidth [127.0.0.1:18444]
version3: /home/tim/src/experiments/libbitcoin-install//include/boost/multiprecision/cpp_int.hpp:548:56: error: right operand of shift expression '(1 << 63)' is >= than the precision of the left operand [-fpermissive]
In file included from ./include/bitcoin/bitcoin/machine/operation.hpp:159,
from ./include/bitcoin/bitcoin/chain/script.hpp:31,
from ./include/bitcoin/bitcoin/chain/output.hpp:28,
from ./include/bitcoin/bitcoin/chain/output_point.hpp:25,
from src/chain/output_point.cpp:19:install.sh scriptsrc/populate/populate_chain_state.cpp: In member function 'bool libbitcoin::blockchain::populate_chain_state::populate_all(libbitcoin::chain::chain_state::data&, const header&, size_t, bool) const':
src/populate/populate_chain_state.cpp:192:67: error: 'const class libbitcoin::settings' has no member named 'net_sample'
bitcoin_settings_.retargeting_interval, bitcoin_settings_.net_sample,15:27:06.158060 DEBUG [node] Rejected block [1c18eac728abe7ae6e435d00d0d11b6a89dea9f29de858ab0e06b3f496a98c53] from [127.0.0.1:18444] transaction inputs or outputs empty
{
"amount": 50.00000000,
"confirmations": 104,
"generated": true,
"blockhash": "1c18eac728abe7ae6e435d00d0d11b6a89dea9f29de858ab0e06b3f496a98c53",
"blockindex": 0,
"blocktime": 1535124339,
"txid": "223e7ae1577df1afa3cec023d4a44b65868d341d523468e1ae47b19d461633e2",
"walletconflicts": [
],
"time": 1535124339,
"timereceived": 1535124339,
"bip125-replaceable": "no",
"details": [
{
"address": "miAewNuBf7omffAictCFbG6S9ZR1qkrMQa",
"category": "generate",
"amount": 50.00000000,
"vout": 0
}
],
"hex": "020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff03510101ffffffff0200f2052a010000002321029f3b44528ce59338ec02a2ce98293c495aa0c691079c6e04aa897e12670c4dfaac0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000"
}{
"hash": "1c18eac728abe7ae6e435d00d0d11b6a89dea9f29de858ab0e06b3f496a98c53",
"confirmations": 104,
"strippedsize": 226,
"size": 262,
"weight": 940,
"height": 1,
"version": 536870912,
"versionHex": "20000000",
"merkleroot": "223e7ae1577df1afa3cec023d4a44b65868d341d523468e1ae47b19d461633e2",
"tx": [
"223e7ae1577df1afa3cec023d4a44b65868d341d523468e1ae47b19d461633e2"
],
"time": 1535124339,
"mediantime": 1535124339,
"nonce": 0,
"bits": "207fffff",
"difficulty": 4.656542373906925e-10,
"chainwork": "0000000000000000000000000000000000000000000000000000000000000004",
"nTx": 1,
"previousblockhash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
"nextblockhash": "6e557eee16d21aec738f98ac41ef2acdd0b76f9d26800037adc898a8c11e7f42"
}0000002006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910fe23316469db147aee16834521d348d86654ba4d423c0cea3aff17d57e17a3e227323805bffff7f200000000001020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff03510101ffffffff0200f2052a010000002321029f3b44528ce59338ec02a2ce98293c495aa0c691079c6e04aa897e12670c4dfaac0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000
[log] archive_directory = ./archive debug_file = ./debug.log error_file = ./error.log rotation_size = 100000000 minimum_free_space = 0 verbose = true [network] protocol_maximum = 70013 protocol_minimum = 31402 services = 9 #identifier = 118034699 identifier = 3669344250 outbound_connections = 2 inbound_connections = 10 inbound_port = 18445 hosts_file = hosts.cache peer = 127.0.0.1:18444 host_pool_capacity = 0 self = 0.0.0.0:0 [database] directory = blockchain flush_writes = true [blockchain] # Testnet-btc checkpoint = 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206:0 [fork] easy_blocks = false retarget = false bip16 = true bip30 = true bip34 = false bip66 = true bip65 = true bip90 = true bip68 = true bip112 = true bip113 = true bip141 = true bip143 = true bip147 = true [node] relay_transactions=true #compact_blocks_high_bandwidth = true
CC=gcc-5 CXX=g++-5libbitcoin-build? What exactly is the purpose of that repo?generate.sh script and then just run make && make install in each repo?/usr/local/lib and /usr/local/includeconsole/executor.cpp file and I see that the node_ member is a shared_ptr, is that because there will be multiple threads accessing it and potentially trying to deallocate it when they finish or is there another reason I'm maybe missing?