mirror of
https://github.com/mineracks/seedhammer-v1-companion.git
synced 2026-06-26 22:01:05 +10:00
Twelve packages lifted from seedhammer/seedhammer @ v1.3.0
(commit 2f071c1d8f23eb7fd39b15fc0acb8874113f801e):
address/ — bitcoin address parsing
backup/ — v1 plate dimensions + UR-coded multi-plate backup
bc/ — Blockchain Commons: ur, fountain, bytewords, urtypes,
xoshiro256 (5 subpkgs)
bip32/ — HD-key derivation
bip39/ — mnemonic seed phrases + 2048-word wordlist
engrave/ — text/QR → MoveTo/LineTo command stream conversion
seedqr/ — SeedQR / CompactSeedQR encoders
image/ — paletted, rgb565, alpha4, ninepatch image formats
nonstandard/ — bitcoin descriptor + script parsing
font/ — bitmap + vector font runtime
font/{comfortaa,poppins,constant,bitmap,vector}/ — actual fonts
driver/mjolnir/ — MarkingWay USB-serial engraver driver
Plus an earlier-aside backup_test.go restored (its deps are now lifted).
Import paths globally rewritten seedhammer.com → mineracks namespace
via single sed pass; verified no orphan refs remain. go.mod adopts
upstream's full dep set plus the replace-directive for the patched
kortschak/qr fork.
go build ./... clean (all 27 packages)
go test ./... clean (12 packages with tests, all passing)
NOT lifted in this commit:
- driver/{wshat,drm,libcamera} (hardware-specific GPIO/LCD/camera —
will be platform-v1/-shaped abstractions instead)
- gui/ (depends on the above; lifts in Phase 2)
- cmd/{controller,...} (Pi binary entrypoints — not needed for the
companion repo)
- zbar/ (QR scanner — needs libcamera)
Next:
- Write the SH1E reference encoder/decoder in engrave/wire/sh1e/
- Lift Gangleri42's cmd/webnfc/ shell + retune to v1 plates
- First buildable composer WASM with a working preview
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
30 lines
1.0 KiB
Modula-2
30 lines
1.0 KiB
Modula-2
module github.com/mineracks/seedhammer-v1-companion
|
|
|
|
go 1.24.0
|
|
|
|
require (
|
|
github.com/btcsuite/btcd v0.23.0
|
|
github.com/btcsuite/btcd/btcec/v2 v2.1.3
|
|
github.com/btcsuite/btcd/btcutil v1.1.3
|
|
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0
|
|
github.com/fxamacker/cbor/v2 v2.4.0
|
|
github.com/kortschak/qr v0.3.0
|
|
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef
|
|
github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07
|
|
golang.org/x/crypto v0.7.0
|
|
golang.org/x/image v0.25.0
|
|
gonum.org/v1/gonum v0.17.0
|
|
)
|
|
|
|
require (
|
|
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
|
|
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f // indirect
|
|
github.com/decred/dcrd/crypto/blake256 v1.0.1 // indirect
|
|
github.com/x448/float16 v0.8.4 // indirect
|
|
golang.org/x/sys v0.6.0 // indirect
|
|
)
|
|
|
|
// Match upstream: their kortschak/qr fork has CBOR + binary-mode tweaks
|
|
// not in mainline. Pinned to the same revision upstream uses at v1.3.0.
|
|
replace github.com/kortschak/qr => github.com/seedhammer/kortschak-qr v0.0.0-20240113235555-375796488df0
|