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

Rename to Signer/Verifier; add 'digest' module #11

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

tarcieri
Copy link
Member

Some sweeping refactoring here which hopefully cleans up the project organization and helps simplify its implementation:

  • Sign => Signer, Verify => Verifier
  • Move all digest-related functionality under the digest module:
    • signature::digest::Signer
    • signature::digest::Verifier
  • Re-export ::digest::Digest as signature::digest::Digest
  • Remove Send + Sync bounds on traits: if people wants these bounds
    they can add them themselves.

Some sweeping refactoring here which hopefully cleans up the project
organization and helps simplify its implementation:

- `Sign` => `Signer`, `Verify` => `Verifier`
- Move all `digest`-related functionality under the `digest` module:
  - `signature::digest::Signer`
  - `signature::digest::Verifier`
- Re-export `::digest::Digest` as `signature::digest::Digest`
- Remove `Send` + `Sync` bounds on traits: if people wants these bounds
  they can add them themselves.
@tarcieri tarcieri force-pushed the refactor-back-to-signer-verifier branch from ae9e3b5 to 58b4b11 Compare March 29, 2019 19:09
@tarcieri
Copy link
Member Author

@newpavlov many of these things were your suggestions, so hopefully aside from the digest module stuff this isn't to controversial.

That said I'd like to go ahead and merge this and immediately open another PR to address the blanket impl stuff we've been trying to do in #9 and #10, so if you do have feedback hopefully I can address it there (or perhaps in a separate PR).

@tarcieri tarcieri merged commit c3f4fb5 into master Mar 29, 2019
@tarcieri tarcieri deleted the refactor-back-to-signer-verifier branch March 29, 2019 19:15
@tarcieri
Copy link
Member Author

Okay, #12 is up, and contains the changes these were a setup for. Hopefully that helps illustrate how simple it actually is, versus if all of these were done in the same PR.

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.

1 participant