Format and check markdown with prettier in make fmt and fmt-check (closes #110)
check / check (push) Failing after 3s
check / check (push) Failing after 3s
script/fmt and script/fmt-check follow the model scripts in the prompts repo: Go as before, plus prettier over every markdown file with 4-space tabs and proseWrap always. Prettier is pinned by hash in package.json and yarn.lock; script/bootstrap now installs node, yarn and prettier. The Dockerfile lint stage copies node and yarn from a node image pinned by hash and runs script/bootstrap, so its make fmt-check fails the build on unformatted markdown. Every markdown file is formatted once; wording is unchanged (CLAUDE.md's "*" list markers become "-"). Model: opus-5-5
This commit was merged in pull request #117.
This commit is contained in:
+17
-10
@@ -1,10 +1,15 @@
|
||||
# BIP85 - Deterministic Entropy From BIP32 Keychains
|
||||
|
||||
This package implements [BIP85](https://github.com/bitcoin/bips/blob/master/bip-0085.mediawiki), which allows for deterministic derivation of entropy from a BIP32 master key. This enables a single seed to generate multiple wallet keys, mnemonics, and random values in a fully deterministic way.
|
||||
This package implements
|
||||
[BIP85](https://github.com/bitcoin/bips/blob/master/bip-0085.mediawiki), which
|
||||
allows for deterministic derivation of entropy from a BIP32 master key. This
|
||||
enables a single seed to generate multiple wallet keys, mnemonics, and random
|
||||
values in a fully deterministic way.
|
||||
|
||||
## Overview
|
||||
|
||||
BIP85 enables a variety of use cases:
|
||||
|
||||
- Generate multiple BIP39 mnemonic seeds from a single master key
|
||||
- Derive Bitcoin HD wallet seeds (WIF format)
|
||||
- Create extended private keys (XPRV)
|
||||
@@ -114,15 +119,16 @@ m/83696968'/{app}'/{parameters}
|
||||
```
|
||||
|
||||
Where:
|
||||
|
||||
- `83696968'` is the BIP85 root path (BIP in ASCII)
|
||||
- `{app}'` is the application number:
|
||||
- `39'` for BIP39 mnemonics
|
||||
- `2'` for HD-WIF keys
|
||||
- `32'` for XPRV
|
||||
- `128169'` for HEX data
|
||||
- `707764'` for Base64 passwords
|
||||
- `707785'` for Base85 passwords
|
||||
- `828365'` for RSA keys
|
||||
- `39'` for BIP39 mnemonics
|
||||
- `2'` for HD-WIF keys
|
||||
- `32'` for XPRV
|
||||
- `128169'` for HEX data
|
||||
- `707764'` for Base64 passwords
|
||||
- `707785'` for Base85 passwords
|
||||
- `828365'` for RSA keys
|
||||
- `{parameters}` are application-specific parameters
|
||||
|
||||
## Test Vectors
|
||||
@@ -135,7 +141,8 @@ This implementation passes all the test vectors from the BIP85 specification:
|
||||
- XPRV
|
||||
- SHAKE256 DRNG output
|
||||
|
||||
The implementation is also compatible with the Python reference implementation's test vectors for the DRNG functionality.
|
||||
The implementation is also compatible with the Python reference implementation's
|
||||
test vectors for the DRNG functionality.
|
||||
|
||||
Run the tests with verbose output to see the test vectors and results:
|
||||
|
||||
@@ -149,4 +156,4 @@ go test -v git.eeqj.de/sneak/secret/pkg/bip85
|
||||
- [Python Reference Implementation](https://github.com/ethankosakovsky/bip85)
|
||||
- [Bitcoin Core](https://github.com/bitcoin/bitcoin)
|
||||
- [BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki)
|
||||
- [BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki)
|
||||
- [BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki)
|
||||
|
||||
Reference in New Issue
Block a user