Commit ad2f234
committed
docs: Compress the descriptor QR
The watch-only wallet file from exportwatchonlywallet does not fit in a
QR even compressed (12,288 bytes; 2,365 gzipped against qr's 2,331-byte
limit), so the guide sends the public descriptors. gzip shrinks them
from 1,975 to 619 bytes, which takes qr's code from version 37 to 19,
about half the width, and makes the scan more reliable.
The online side reads the QR with zbarcam -Sbinary and pipes it through
gunzip. Without -Sbinary, ZBar rewrites the bytes as text and gunzip
fails. qrencode needs -8 for the same data; without it the input stops
at the first zero byte.
Validation: on two separate Bitcoin Core 32.0rc2 regtest nodes with the
BIP-93 test vector, the gzipped listdescriptors output went through qr
and back through zbarimg with the guide's flags and gunzip, all 8
descriptors imported with success, and both wallets gave the same first
address. qrencode -8 round-tripped the same bytes. Docs-only change.
Refs #92
Claude-Session: https://claude.ai/code/session_01T233rKgZqE5wzDm3EVTHL11 parent d4641c4 commit ad2f234
1 file changed
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
| 219 | + | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
230 | 230 | | |
231 | | - | |
232 | | - | |
| 231 | + | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
376 | 378 | | |
377 | 379 | | |
378 | 380 | | |
| |||
0 commit comments