recoverPubkeyFromSignedMessage

abstract fun recoverPubkeyFromSignedMessage(message: ByteArray, signature: ByteArray): ByteArray?

Return the pubkey that signed a message using the same algorithm as the original bitcoin wallet's signmessage functionality. To verify that a particular address signed this message, you would then transform this pubkey into an address of the same format and compare them (or recover the pubkey from the passed address, but this not possible in any address format that hashes the pubkey).

Return

The pubkey that was used to sign, or null if the algorithm failed.