Skip to content

hash: base58_with_checksum, Bitcoin's Base58Check registered into codecs, over a double SHA-256 checksum - #17

Merged
pinhopro merged 11 commits into
mainfrom
hash/base58-with-checksum
Dec 2, 2026
Merged

pinhopro merged 11 commits into
mainfrom
hash/base58-with-checksum

Conversation

@pinhopro

@pinhopro pinhopro commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

hash's change base58-with-checksum (proposals: libraries/hash/openspec/changes/base58-with-checksum), delivered by the formats stream before crypto's formats change.

  • hash::checksums::double_sha256 (<webcpp/hash/checksums.hpp>, on hash's base target): the first 4 bytes of SHA-256(SHA-256(payload)) over Boost.Hash2, constant time, under secure's guard, its digests and hashers' states wiped.
  • hash::formats::base58_with_checksum (<webcpp/hash/base58_with_checksum.hpp>, target /webcpp/hash//base58_with_checksum): codecs' basic_base58<100, bitcoin_alphabet, double_sha256>, Base58Check; the only hash header that includes codecs (an include boundary).
  • Tests: Bitcoin Core's key_io_valid.json (22 addresses, 16 WIF keys, public and secret), the wiki's address, every single-character change refused, the 100-byte bound before any checksum, the secret path's scratch wipe pinned; the page's WIF and address example.
  • BearSSL pinned (canary) at webcpporg/bearssl ae63032, upstream 7bea48e plus the bits2int fix the owner submitted upstream on 2026-12-02; the pin returns to upstream once applied.

Verified locally on every lane (the final heads' table is in proposals' reference/STATUS.md of crypto's formats change); no CI ran: the owner's one CI on main comes at the end.

🤖 Generated with Claude Code

@pinhopro
pinhopro merged commit 33b8f9e into main Dec 2, 2026
1 of 3 checks passed
@pinhopro
pinhopro deleted the hash/base58-with-checksum branch December 2, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant