tuweni / org.apache.tuweni.crypto / SECP256K1 / PublicKey / recoverFromSignature

recoverFromSignature

@Nullable open static fun recoverFromSignature(data: ByteArray!, signature: Signature!): PublicKey? (source)

Recover a public key using a digital signature and the data it signs.

Parameters

data - ByteArray!: The signed data.

signature - Signature!: The digital signature.

Return
PublicKey?: The associated public key, or null if recovery wasn't possible.

@Nullable open static fun recoverFromSignature(data: Bytes!, signature: Signature!): PublicKey? (source)

Recover a public key using a digital signature and the data it signs.

Parameters

data - Bytes!: The signed data.

signature - Signature!: The digital signature.

Return
PublicKey?: The associated public key, or null if recovery wasn't possible.