Skip to content

Instantly share code, notes, and snippets.

View hodlinator's full-sized avatar

hodlinator

  • Cyberspace
View GitHub Profile

BIP322 Message Verification for Signing Devices

A proposal for displaying human-readable messages on hardware signing devices during BIP322 signature operations.

Problem

BIP322 defines a generic message signing format using virtual Bitcoin transactions. The message is reduced to a 32-byte hash (message_hash) embedded in the to_spend transaction's scriptSig:

vin[0].scriptSig = OP_0 PUSH32[ message_hash ]