@Nullable open static fun recoverFromHashAndSignature(hash: ByteArray, signature: Signature): PublicKey?
(source)@Nullable open static fun recoverFromHashAndSignature(hash: Bytes32, signature: Signature): PublicKey?
(source)
Recover a public key using a digital signature and a keccak256 hash of the data it signs.
hash
- The keccak256 hash of the signed data.
signature
- The digital signature.
Return
The associated public key, or null
if recovery wasn't possible.