Archive of the libbitcoin Slack #general channel.
[kk@kk ~]$ rm -fr usr/share/bs/blockchain/ [kk@kk ~]$ ls usr/share/bs/ [kk@kk ~]$ cat usr/etc/bs.cfg [database] directory = /home/kk/usr/share/bs/blockchain/ [log] archive_directory = /home/kk/usr/log/bs/archive/ debug_file = /home/kk/usr/log/bs/debug.log error_file = /home/kk/usr/log/bs/error.log [network] hosts_file = /home/kk/usr/share/bs/hosts.cache [kk@kk ~]$ bs --config usr/etc/bs.cfg --initchain 08:47:37.768798 INFO [server] ================= startup ================== 08:47:37.768834 WARNING [server] ================= startup ================== 08:47:37.768902 ERROR [server] ================= startup ================== 08:47:37.768926 FATAL [server] ================= startup ================== 08:47:37.768945 INFO [server] Using config file: "usr/etc/bs.cfg" 08:47:37.769024 ERROR [server] Failed because the directory "/home/kk/usr/share/bs/blockchain/" already exists.
% bx seed -b 256
9acfd31c269f5314505faf6c2a3d1aa7d679a7db1fe135ae06ff0334fd432de8
% echo 9acfd31c269f5314505faf6c2a3d1aa7d679a7db1fe135ae06ff0334fd432de8 | bx ec-to-ek "my passphrase"
6PYT9cmibbGwWUgmype9KQpoBpvgZnnqzTfcoBXZ4ENu8tRqR5y4K9dqZz
% echo 6PYT9cmibbGwWUgmype9KQpoBpvgZnnqzTfcoBXZ4ENu8tRqR5y4K9dqZz | bx ek-to-ec "my passphrase"
9acfd31c269f5314505faf6c2a3d1aa7d679a7db1fe135ae06ff0334fd432de8
Now comes the issue:
% bx seed -b 256 | bx ec-to-ek "my passphrase"
6PYWUL4BgdFMz2AME2UhDqLpTZy4yKd1gDBaMXWxc85n1KK2ZNoNKz9b6B
% echo 6PYWUL4BgdFMz2AME2UhDqLpTZy4yKd1gDBaMXWxc85n1KK2ZNoNKz9b6B | bx ek-to-ec "my passphrase"
b570afec3135f807be67109b60857a540fc9d8215b3cbcef645080c1b173754abx seed -b 256 returns a new random number when used.--with-docs=no
--with-docs=yes
asciidoc.conf not being found on OSX. I suspect this doc is portable, can someone ship me the one associated with a successful build?July 2018 bitcoin-dev Archive
https://github.com/sipa/bips/blob/bip-schnorr/bip-schnorr.mediawiki. I assume this is what is being talked about.-Werror switch. Else, they will keep coming back; especially if there are existing warnings that make it hard to spot new ones in the noise.
There is a workflow to softly transition to using -Werror effectively:
1. enable -Werror switch
2. disable errors for warnings that already exist using -Wno-error=$WARNING, e.g. -Wno-error=reorder (this doesn't disable the warning; it just makes it a non-error)
3. Then, over time, remove the -Wno-error=$WARNING switches one by one and fix the warnings alongside. This is a bit trickier in projects where the build flags are not maintained in the same repo as the project itself but still doable I think.
I'm aware that sometimes warnings can be false positives but it's possible to selectively disable them using #pragma statements alongside a comment that explains why a warning is being a false positive. Pragmas are supported by all relevant compilers.
There is one drawback when using -Werror: in refactorings where the code is changed heavily it can take some additional effort to make it compile (e.g. unused variables, etc.). I think that this annoyance is far outweighed by the benefit of getting helpful feedback from the complier and by preventing warnings from slipping back into the code base.
Last but not least, there's the possibility that some warnings are not emitted by all compilers and therefore someone might accidentally break the build. However, it's the whole point of CI to prevent that from happening. If one warning behaves very inconsistently across compilers then it can be made a no-error warning as described above.
What do you guys think? 🙂include_directories(SYSTEM ) and it does the right thing.https://dashvotetracker.com/ . From the examination of the BitGo project, asking $50K to $75K in funding is not too unrealistic.
Dash superblocks, the Treasury payouts, occur once a month. The next superblock is scheduled for around August 1st. Maybe we could shoot for this October’s or November’s Superblock? The process for submitting a proposal is at https://dashpay.atlassian.net/wiki/spaces/DOC/pages/8585246/Governance+and+Budget+System .v.0.12.3.2 - https://github.com/dashpay just a few weeks old) indicates it was forked from Bitcoin. I believe, the 1st objective should be to get libbitcoin to interoperate with the latest Dash Core full node, signed binaries are at https://www.dash.org/wallets/. Guessing @evoskuil, @neillm, and @narodnik will be the ones to make a technical risk assessment if this idea is worth pursuing.void MyClass::startTimer()
{
std::weak_ptr<MyClass> weak = shared_from_this();
timer_.async_wait( [weak, this](const boost::system::error_code& ec)
{
auto self = weak.lock();
if (self)
{
self->handleTimeout();
}
else
{
std::cout << "Target object no longer exists!\n";
}
} );
} (edited)@codablock (Alexander Block) indicted that https://github.com/herumi/bls is being used by Dash . He also indicated I've created wrappers around the libraries which allow us to use the optimizations in a more convenient way, and code will be published in a few weeks.(edited)
$ cat archive/debug-00002.log 14:41:40.741500 DEBUG [node] ================= startup Tue Jul 24 15:41:40 2018 ================== 14:41:40.745623 INFO [node] ================= startup Tue Jul 24 15:41:40 2018 ================== 14:41:40.746129 WARNING [node] ================= startup Tue Jul 24 15:41:40 2018 ================== 14:41:40.746999 ERROR [node] ================= startup Tue Jul 24 15:41:40 2018 ================== 14:41:40.747077 FATAL [node] ================= startup Tue Jul 24 15:41:40 2018 ================== 14:41:40.747099 INFO [node] Using config file: "/home/user/libbitcoin4/build/etc/libbitcoin/bn.cfg" 14:41:40.747182 INFO [node] Press CTRL-C to stop the node. 14:41:40.747240 INFO [node] Please wait while the node is starting... 14:41:40.750573 DEBUG [database] Buckets: block [650000], transaction [110000000], address [107000000] 14:41:40.758881 DEBUG [database] Mapping: "blockchain/block_table" [2600143] (4096) 14:41:40.759204 DEBUG [database] Mapping: "blockchain/candidate_index" [4] (4096) 14:41:40.759236 DEBUG [database] Mapping: "blockchain/confirmed_index" [8] (4096) 14:41:40.759258 DEBUG [database] Mapping: "blockchain/transaction_index" [12] (4096) 14:41:40.760845 DEBUG [database] Mapping: "blockchain/transaction_table" [880000265] (4096) 14:41:40.763334 ERROR [node] Failure starting blockchain. 14:41:40.763949 ERROR [node] Node failed to start with error, operation failed. 14:41:40.765004 INFO [node] Please wait while the node is stopping... 14:41:40.769637 DEBUG [database] Unmapped: "blockchain/block_table" [2600143, 2600143] 14:41:40.769858 DEBUG [database] Unmapped: "blockchain/candidate_index" [4, 4] 14:41:40.770061 DEBUG [database] Unmapped: "blockchain/confirmed_index" [8, 8] 14:41:40.770265 DEBUG [database] Unmapped: "blockchain/transaction_index" [12, 12] 14:41:40.777032 DEBUG [database] Unmapped: "blockchain/transaction_table" [880000265, 880000265] 14:41:40.778612 INFO [node] Node stopped successfully.
$ cat archive/error-00002.log 14:41:40.746129 WARNING [node] ================= startup Tue Jul 24 15:41:40 2018 ================== 14:41:40.746999 ERROR [node] ================= startup Tue Jul 24 15:41:40 2018 ================== 14:41:40.747077 FATAL [node] ================= startup Tue Jul 24 15:41:40 2018 ================== 14:41:40.763334 ERROR [node] Failure starting blockchain. 14:41:40.763949 ERROR [node] Node failed to start with error, operation failed.
bx support converting compressed pubkeys to uncompressed ones? I didn't find a subcommand but maybe I've overlooked it.bx supports both compressed and uncompressed public key synthesis and associated addresses.sed 's/$/01/' operation converts an uncompressed private hex key a compressed private key.% echo shit | bx base16-encode | bx sha256 | cut -c 1-32 | 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 base58check-encode -v 128
% echo shit | bx base16-encode | bx sha256 | cut -c 1-32 | 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 shit | bx base16-encode | bx sha256 | cut -c 1-32 | 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 shit | bx base16-encode | bx sha256 | cut -c 1-32 | 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 shit | bx base16-encode | bx sha256 | cut -c 1-32 | 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-public -i 0 | bx hd-to-ec | bx ec-to-address -v 0
% echo shit | bx base16-encode | bx sha256 | cut -c 1-32 | 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-public -i 0 | bx hd-public -i 0 | bx hd-to-ec | bx ec-to-address -v 0
% echo shit | bx base16-encode | bx sha256 | cut -c 1-32 | 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
sx !PCI-DSS just got a hell of a lot easier with crypto commerce servers, no private keys required! Just need to ensure the integrity of extended public keys, associated public key synthesis code, and indexes being used.