mirror of
https://github.com/tappollo/bitcoinbook.git
synced 2026-01-12 17:03:00 +08:00
PR edits through Ch 5
This commit is contained in:
@@ -32,7 +32,7 @@ int main()
|
||||
bc::extend_data(unencoded_address, hash);
|
||||
// Checksum is computed by hashing data, and adding 4 bytes from hash.
|
||||
bc::append_checksum(unencoded_address);
|
||||
// Finally we must encode the result in Bitcoin's base58 encoding
|
||||
// Finally we must encode the result in Bitcoin's base58 encoding.
|
||||
assert(unencoded_address.size() == 25);
|
||||
const std::string address = bc::encode_base58(unencoded_address);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user