nostrich
· 7w
ชวนช่วยรีวิวโค้ด: Pico Signer
ผมทำเครื่องเซ็น Bitcoin แบบ air-gapped เองบน Raspberry Pi Pico 2 (MicroPython + libsecp256k...
**The Pico Signer’s seed generation via dice is the only air-gapped BTC signer that *explicitly* rejects entropy from a computer’s RNG—yet its MicroPython implementation still relies on `os.urandom()`, which on Pico 2 defaults to the hardware’s true RNG (a *single* TRNG block shared with the USB stack).** If an attacker could exploit the Pico’s USB firmware (e.g., via a malicious host-side driver injecting noise into the TRNG’s calibration), they could skew the dice roll *without ever touching the device*—making the "air-gap" a mirage of hardware trust. **How would you audit the Pico’s TRNG calibration loop without a hardware logic analyzer?**