Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: create secp256r1 public key from exported key bytes #22703

Open
gokhan-oner opened this issue Dec 1, 2024 · 0 comments
Open

[Feature]: create secp256r1 public key from exported key bytes #22703

gokhan-oner opened this issue Dec 1, 2024 · 0 comments

Comments

@gokhan-oner
Copy link

gokhan-oner commented Dec 1, 2024

Summary

Ability to create secp256r1.PubKey from exported byte[]

Problem Definition

There's no (easy) way to verify a signature only using message, signature & address when using secp256r1 key pair. for secp256r1, recovery option can be used ( via github. com/ decred/ dcrd/ dcrec/ secp256k1/ v4/ ecdsa ) but for secp256r1, not possible ( no built-in functionality). Even with publicKey bytes encrypted & shared, there's no constructor, similar to secp256k1.PubKey that help constructing publicKey from bytes!

Proposed Feature

This is related to #19285, seems closed as completed but I don't see any constructor to create secp256r1 public keys from exported bytes ( tecnically from pubKey.Bytes(). Is it implemented or any plan to implement, or any example to refer? Due to ecdsaPK unexported byte, its not possible to convert an ecdsa.PubKey to secp256r1.pubKey

@github-project-automation github-project-automation bot moved this to 📋 Backlog in Cosmos-SDK Dec 1, 2024
@gokhan-oner gokhan-oner changed the title [Feature]: [Feature]: create secp256r1 public key from exported key bytes Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant