Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

feat: Improvements to ECDSA2019 DI API #3618

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

DRK3
Copy link
Contributor

@DRK3 DRK3 commented Aug 14, 2023

The existing API required an interface that defines many more methods than what are actually required, which forces consumers of the API to implement many methods that won't ever be called. The API has now been changed to make use of two minimal interfaces instead, making it easier to use and understand. Note that implementations of the larger crypto interface can still be used since the minimal interface method signatures match.

To avoid potential confusion with the new interface names, two existing constructors were renamed.

@DRK3 DRK3 changed the title feat: Improvements to ECDSA2019 DI API WIP: feat: Improvements to ECDSA2019 DI API Aug 14, 2023
@DRK3 DRK3 changed the title WIP: feat: Improvements to ECDSA2019 DI API feat: Improvements to ECDSA2019 DI API Aug 14, 2023
The existing API required an interface that defines many more methods than what are actually required, which forces consumers of the API to implement many methods that won't ever be called. The API has now been changed to make use of two minimal interfaces instead, making it easier to use and understand. Note that implementations of the larger crypto interface can still be used since the minimal interface method signatures match.

To avoid potential confusion with the new interface names, two existing constructors were renamed.

Signed-off-by: Derek Trider <derek.trider@gendigital.com>
@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #3618 (a1a50c4) into main (71e132b) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3618      +/-   ##
==========================================
- Coverage   86.94%   86.94%   -0.01%     
==========================================
  Files         367      367              
  Lines       50011    50020       +9     
==========================================
+ Hits        43484    43490       +6     
- Misses       4943     4945       +2     
- Partials     1584     1585       +1     
Files Changed Coverage Δ
.../models/dataintegrity/suite/ecdsa2019/ecdsa2019.go 93.67% <100.00%> (+0.34%) ⬆️

... and 1 file with indirect coverage changes

@fqutishat fqutishat merged commit cce322d into hyperledger-archives:main Aug 15, 2023
12 of 13 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants