Skip to content

Recover Public Key from Signature for Secp256k1 #3628

@mialbu

Description

@mialbu

Summary
There should be a native function that allows to recover the signing address from a signature and a message (secp256k1 curve). Other chains are working with addresses instead of public keys which makes it impossible to replicate and verify such a signature based on the values available; additional information (public key) would be needed to do that.

Do you have any solution you want to propose?
The native smart contract CryptoLib should be extended with a function similar to byte[] ecrecover(byte[] message, Hasher hasher, byte[] signature) to allow recovering public keys for the secp256k1 curve.

Where in the software does this update applies to?
The native CryptoLib smart contract.

Metadata

Metadata

Assignees

Labels

DiscussionInitial issue state - proposed but not yet accepted

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions