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

Refactor api #6

Merged
merged 26 commits into from
Jun 3, 2019
Merged

Refactor api #6

merged 26 commits into from
Jun 3, 2019

Conversation

wussler
Copy link
Collaborator

@wussler wussler commented May 16, 2019

No description provided.

@wussler wussler force-pushed the refactor-all branch 2 times, most recently from 1198bce to 56b36f5 Compare May 17, 2019 10:00
@emersion
Copy link

It would be nice to have a summary of the changes (and even nicer to have smaller commits with clean changesets).

@wussler
Copy link
Collaborator Author

wussler commented May 17, 2019

It would be nice to have a summary of the changes (and even nicer to have smaller commits with clean changesets).

It's still in progress, it will soon be added to the summary and the changelog.
Smaller commits are not possible because most of the logic is changed, introducing new message classes.

Next step is to create some helpers for the most common encryption/decryption/signing methods.
Examples have not been reviewed yet.

@emersion
Copy link

It's still in progress, it will soon be added to the summary and the changelog.

Nice!

Smaller commits are not possible because most of the logic is changed, introducing new message classes.

+917 −1,140 commits are hard to review. Making clearly separated commits helps a lot, and is often possible by forcing yourself to do one thing at a time (e.g. introduce one type per commit, or introduce the new type in one commit and start using it in subsequent commits). I agree it does require to put some thought into it before starting to the work, however for a security-related library IMHO it's worth it.

Next step is to create some helpers for the most common encryption/decryption/signing methods.
Examples have not been reviewed yet.

Looking forward to having a look at the API.

@wussler wussler force-pushed the refactor-all branch 4 times, most recently from d548cd7 to b1e6406 Compare May 22, 2019 17:19
@savely-krasovsky
Copy link

It also would be nice to refactor GenerateKey() method. Currently you even cannot set different name and email, because username used to generate email, lol. Also there is no expiration date and so on.

@wussler
Copy link
Collaborator Author

wussler commented Jun 3, 2019

@L11r I changed the name/email parameters to be more flexible, Expiration date is for another PR, as I would consider better adding another function with explicit expiration for it.

@wussler wussler changed the title WIP:Refactor all Refactor api Jun 3, 2019
@wussler wussler merged commit e65ed17 into master Jun 3, 2019
@lubux lubux deleted the refactor-all branch June 14, 2024 13:01
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.

4 participants