mailchain / mailchain-legacy

Using Mailchain, blockchain users can now send and receive rich-media HTML messages with attachments via a blockchain address.
https://mailchain.xyz
Apache License 2.0
143 stars 51 forks source link

Infer key type from signature and public key bytes #413

Closed robdefeo closed 4 years ago

robdefeo commented 4 years ago

Is your feature request related to a problem? Please describe. Mailchain requires public keys to, encrypt messages and calculate the address. While ethereum and other protocols support a single key type, substrate supports, ed25519, sr25519, and secp256k1. To reliably determine a public key type the key type must be tested.

Describe the solution you'd like Create a method that can determine the key type from the public and private key bytes combination.

Additional context

robdefeo commented 4 years ago

@Despire this might be an interesting one for you once #345 is completed?

Despire commented 4 years ago

Looks interesting ! :) you can assign me and once #345 is ready I'll start.

Despire commented 4 years ago

This issue can be closed. @robdefeo