BitcoinMessageSigner

Bitcoin message signing and verification. Bitcoin Core and some other wallets support a message signing &verification format, to create a proof (a signature) that someone has access to the private keys of a specific address. This feature currently works on old legacy addresses only.

Functions

Link copied to clipboard
open fun signMessage(privateKey: PrivateKey, address: String, message: String): String
Sign a message.
Link copied to clipboard
open fun verifyMessage(address: String, message: String, signature: String): Boolean
Verify signature for a message.