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

Crypto design update #5

Merged
merged 3 commits into from
Apr 1, 2022

Conversation

SamYuan1990
Copy link
Member

Draft don't merge

Signed-off-by: Sam Yuan <[email protected]>
@SamYuan1990 SamYuan1990 changed the title [Draft]Crypto update Crypto design update Mar 26, 2022
@SamYuan1990 SamYuan1990 marked this pull request as ready for review March 26, 2022 12:11
the benefits for this kind of refactor:
1. When a new crypto curve is considered to be supported in Hyperledger Fabric, we can just make a BCCSP implementation and by addition an option in MSP level to make it. For ex: ed25519
1. For specific crypto curves, we can also support it by dynamic type, as a binary plugin of BCCSP and a MSP option to enable the binary plugin. For ex: Chinese national crypto curves.
1. When MSP level interface is considered to add new logic, we don't need to worry it affects exisiting BCCSP logic and how the changes integrate with crypto related packages either bccsp or x509. For ex here, if we want to reduce the size of block by decouple peer cert. we are able to design and implement a mechanism like a pool below, plays role as cert pool identified by a hash string for cert bytes at MSP level.
Copy link
Member

Choose a reason for hiding this comment

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

For ex here
这个是什么?

// this is the public key of this instance
pk bccsp.Key
- [x] Redefine MSP responsibilities, as it relays on some crypto provide ex BCCSP interface implementation and response for fabric data model on business and logic level.
- [x] Redefine BSSP responsibilities, as it relays on crypto library implementation, plays role as adapter interface between MSP and cyrpto library implementations response for fabric data model on implementation level.
Copy link
Member

Choose a reason for hiding this comment

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

BSSP

Signed-off-by: Sam Yuan <[email protected]>
@davidkhala davidkhala merged commit a54852a into Hyperledger-TWGC:master Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants