codex32: use "cl" instead of "ms" as our HRP.

This was strongly recommended by Russell O'Connor: the "ms" implies that
it's a BIP-32 master secret, and this is CLN specific.

If we changed the hrp to "cln" it would be better, but apparently that
means we no longer fit in a "standard billfold metal wallet" (and
our code assumes a 2-byte prefix anyway).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-08-02 12:27:43 +09:30
parent 67e43ea868
commit 0f6687ec7b
7 changed files with 58 additions and 28 deletions

View File

@@ -64,7 +64,7 @@ This hook is called whenever the node is started using the --recovery flag. So b
The payload consists of the following information:
```json
{
"codex32": "ms10leetsllhdmn9m42vcsamx24zrxgs3qrl7ahwvhw4fnzrhve25gvezzyqqtum9pgv99ycma"
"codex32": "cl10leetsllhdmn9m42vcsamx24zrxgs3qrl7ahwvhw4fnzrhve25gvezzyqqjdsjnzedu43ns"
}
```
@@ -628,4 +628,4 @@ The payload for a call follows this format:
All fields shown here are optional.
We suggest just returning `{'result': 'continue'}`; any other result will cause the message not to be handed to any other hooks.
We suggest just returning `{'result': 'continue'}`; any other result will cause the message not to be handed to any other hooks.