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

certgen: Support Ed25519 cert generation on Go 1.13 #1757

Merged
merged 2 commits into from
Jun 7, 2019

Conversation

jrick
Copy link
Member

@jrick jrick commented Jun 7, 2019

This adds the function NewEd25519TLSCertPair which uses Ed25519 keys
rather than ECDSA keys as required by NewTLSCertPair.

Conditional compilation is used to provide the function only on Go 1.13.

Closes #1756.

This adds the function NewEd25519TLSCertPair which uses Ed25519 keys
rather than ECDSA keys as required by NewTLSCertPair.

Conditional compilation is used to provide the function only on Go 1.13.
@jrick
Copy link
Member Author

jrick commented Jun 7, 2019

There is quite a bit of copied code between the ECDSA and Ed25519 implementations, so here is the diff: https://gist.github.com/jrick/d30e1f7ced5e8d35656da1f11de5a089

Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff looks good. Would you please update doc.go and README.md to reflect reality as well? Then we can tag it with a new version,

@davecgh davecgh merged commit e0f90bd into decred:master Jun 7, 2019
@jrick jrick deleted the ed25519certgen branch June 7, 2019 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

certgen: Support Ed25519 keys
2 participants