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

create a key exchange interface #496

Closed
robdefeo opened this issue Jan 5, 2020 · 0 comments · Fixed by #497
Closed

create a key exchange interface #496

robdefeo opened this issue Jan 5, 2020 · 0 comments · Fixed by #497
Labels
area/crypto enhancement New feature or request

Comments

@robdefeo
Copy link
Member

robdefeo commented Jan 5, 2020

Is your feature request related to a problem? Please describe.
With different cypto packages, secp256k1, ed25519, sr25519 with potentially more a consistent way to exchange keys will make symmetric encryption easier

Describe the solution you'd like
Create key exchange interface similar to

type KeyExchange interface {
	GenerateEphemeralKey() (private crypto.PrivateKey, public crypto.PublicKey, err error)
	ComputeSharedSecret(ephemeralKey crypto.PrivateKey, recipientKey crypto.PublicKey) ([]byte, error)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/crypto enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant