New answers tagged

0

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 = "market parent marriage drive umbrella custom leisure fury recipe steak have enable"; auto my_word_list = split(my_sentence, " ", true); // ...


3

My understanding is that the public key can start with 04 if it's uncompressed, or 02(x-coor) or 03(y-coor) if it's compressed. That's not exactly right. There are two encodings: Uncompressed encoding: (0x04, X coordinate, Y coordinate) Compressed encoding: (0x02, X coordinate) if Y is even (0x03, X coordinate) if Y is odd What's the purpose of this? ...


4

the code could have a way to order transactions and if an attacker decides to do the opposite intentionally and decides to spam the network This is the crux of the issue: how do you achieve this? It isn't a trivial problem to solve in a decentralized network. The more generalized version of this non-trivial problem is called the Byzantine General's Problem, ...


0

Put some comments embedded with code, still, some questions remain, hopefully, to be improved time by time. The below code used in public key recovery method, is aiming for recover the R (rx, ry) from provided r and recid (0 or 1), for recid (2or3) case, simply reduce (provided r)-n. { if (recid & 2) { /* if recid=2 or 3 */ if (...


Top 50 recent answers are included