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

Simplify library interfaces a bit #114

Merged
merged 4 commits into from
Apr 24, 2024
Merged

Simplify library interfaces a bit #114

merged 4 commits into from
Apr 24, 2024

Commits on Apr 24, 2024

  1. identity: remove useless interfaces from dbft.PublicKey

    dbft requires PublicKey to be equatable, no marshaller or verification
    should be used by dbft library. Also, it's not very user-friendly to
    perform public key comparison via marshalling, and thus, this code is
    refactored.
    
    Signed-off-by: Anna Shaleva <[email protected]>
    AnnaShaleva committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    a129fd7 View commit details
    Browse the repository at this point in the history
  2. config: simplify key pair related config setters

    Either WithKeyPair or WithGetKeyPair should be kept. The latter is more
    general, thus I'm keeping it and removing the first setter.
    
    Signed-off-by: Anna Shaleva <[email protected]>
    AnnaShaleva committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    e5c9eb2 View commit details
    Browse the repository at this point in the history
  3. identity: simplify PublicKey interface

    dbft package itself doesn't need anything from PublicKey. It's the user
    who is responsible for public keys comparison and WithGetKeyPair
    callback implementation.
    
    Signed-off-by: Anna Shaleva <[email protected]>
    AnnaShaleva committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    8afa384 View commit details
    Browse the repository at this point in the history
  4. CHANGELOG: add a note about PublicKey and config interfaces simplific…

    …ation
    
    Signed-off-by: Anna Shaleva <[email protected]>
    AnnaShaleva committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    8e00eb3 View commit details
    Browse the repository at this point in the history