mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-25 13:37:47 +01:00
In this commit, we modify the SignMessage+VerifyMessage slightly in order to bind the message we're signing to our specific context. We do this by pre-pending the ascii text "Lightning Signed Message:" to the msg before we run it through dsha256. Adding this prefix binds the message to our context in order to avoid accidentally signing a sighash or the like.
2.4 KiB
2.4 KiB