diff --git a/CODING-GUIDELINES.md b/CODING-GUIDELINES.md index 16d6fa6..9d81dbb 100644 --- a/CODING-GUIDELINES.md +++ b/CODING-GUIDELINES.md @@ -9009,15 +9009,17 @@ superproject; built on codecs, not merged).** - **crypto's key formats are codecs formats: `crypto::formats::raw`, `spki`, `pkcs8`, `der` and `pem(spki)` or `pem(pkcs8)` (RFC 7468's armor over the DER), each with `codecs::value_codec` specializations in the curve's - `formats.hpp`, and the verbs `crypto::encode` and `crypto::decode` (and the - members `encode` and `T::decode`) that check the pair, then call codecs'.** A - pair a type does not have stops the build with the type's list of formats; one - list, `detail::all_formats`, feeds the checks, the tests and the page's table. - The old names (`encode_spki`, `to_der`, `crypto::pem`, the pem defaults, the - `max_*_size` constants) are removed, each with its replacement in the guide's - migration table (`doc/formats.adoc`); no name stays as an alias. A program - that uses one curve's formats includes that curve's formats header and pulls - no other curve. + `formats.hpp`, read and written by codecs' verbs `codecs::encode` and + `codecs::decode` (and the members `encode` and `T::decode`), which check + every pair through crypto's declaration of the type to codecs; + `crypto::encode` and `crypto::decode` were removed by the one-verb change, + with no alias.** A pair a type does not have stops the build with the type's + list of formats; one list, `detail::all_formats`, feeds the checks, the tests + and the page's table. The old names (`encode_spki`, `to_der`, `crypto::pem`, + the pem defaults, the `max_*_size` constants) are removed, each with its + replacement in the guide's migration table (`doc/formats.adoc`); no name stays + as an alias. A program that uses one curve's formats includes that curve's + formats header and pulls no other curve. Source: `libraries/crypto/openspec/changes/formats/design.md` D1 to D8 (proposals); `doc/formats.adoc`, `doc/changelog.adoc` (libs/crypto). - **secp256k1's x-only key is a type, `curves::secp256k1::xonly_public_key`, @@ -10135,10 +10137,10 @@ The owner's decisions: webcpp::hash's, `hash::formats::base58_with_checksum`, which is `basic_base58<100, bitcoin_alphabet, hash::checksums::double_sha256>` (decision 26 renames decision 7's `base58check`); crypto registers its key formats through - `value_codec` in a change of its own, and `crypto::encode` and `crypto::decode` - are that change's verbs over codecs'. Both follow-ups are built (crypto's - `formats` change and hash's `base58-with-checksum`, chapter 17's crypto - entry), and hash depends on codecs, never the reverse. + `value_codec` in a change of its own, read and written by codecs' own verbs (the + one-verb change removed `crypto::encode` and `crypto::decode`). Both follow-ups + are built (crypto's `formats` change and hash's `base58-with-checksum`, chapter + 17's crypto entry), and hash depends on codecs, never the reverse. Source: design.md owner decisions 7 and 26 (proposals); `test/messages/base58_with_checksum_unseen` (libs/codecs). - **Owner decision 8: the tests.** RFC 4648 section 10, BIP-173's and BIP-350's diff --git a/libs/codecs b/libs/codecs index 570d539..8535c31 160000 --- a/libs/codecs +++ b/libs/codecs @@ -1 +1 @@ -Subproject commit 570d5392dd7a712353c9758e967452b0221830f1 +Subproject commit 8535c31c9dc5456b5166b2a3738e1c7d752379d0 diff --git a/libs/crypto b/libs/crypto index 7123aee..b19a26e 160000 --- a/libs/crypto +++ b/libs/crypto @@ -1 +1 @@ -Subproject commit 7123aee59f534a5a4b4400ba482b534382d2e951 +Subproject commit b19a26ed957cdd0ba06954f33abf1ee5202aab14