KEthereum already has SignatureData to PublicKey conversion (org.kethereum.crypto.SignKt#signedMessageToKey), but I've stumbled on the need to convert EIP-191 personal signature to PublicKey (see this sample repo for use case https://github.com/vchernetskyi993/ethereum-server-auth).
From my perspective, these two new functions HexString.toSignatureData and personallySignedMessageToKey should be in the KEthereum code base, since they are quite re-usable across projects. Therefore, this PR.
@ligi please, review and tell me your thoughts (it's my first commit to your repo, so sorry in advance for any inaccuracies)
KEthereum already has
SignatureData
toPublicKey
conversion (org.kethereum.crypto.SignKt#signedMessageToKey), but I've stumbled on the need to convert EIP-191 personal signature toPublicKey
(see this sample repo for use case https://github.com/vchernetskyi993/ethereum-server-auth).From my perspective, these two new functions
HexString.toSignatureData
andpersonallySignedMessageToKey
should be in the KEthereum code base, since they are quite re-usable across projects. Therefore, this PR.@ligi please, review and tell me your thoughts (it's my first commit to your repo, so sorry in advance for any inaccuracies)