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

Idemix MSP Folder Structure incompatible with what Fabric expects #303 #304

Merged
merged 5 commits into from
Jun 28, 2022

Conversation

adecaro
Copy link
Contributor

@adecaro adecaro commented Jun 20, 2022

Signed-off-by: Angelo De Caro [email protected]

Type of change

  • Bug fix

Description

Currently, Fabric-CA generates an Idemix MSP folder structure and file content that Fabric is not able to load.
Namely:

  • The content of SignerConfig is encoded in json, Fabric expected proto
  • Fabric expects the revocation public key to be stored in a file named RevocationPublicKey and IdemixRevocationPublicKey.

Additional details

Related issues

#303

@adecaro adecaro requested review from a team as code owners June 20, 2022 07:30
@adecaro adecaro marked this pull request as draft June 22, 2022 13:01
@adecaro adecaro marked this pull request as ready for review June 22, 2022 13:08
Comment on lines -116 to -117
if val.CurveID == "" {
val.CurveID = idemix4.DefaultIdemixCurve
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we still have to handle the blank val.CurveID?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that field is not needed anymore

Comment on lines -23 to -24
// CurveID specifies the name of the Idemix curve to use, defaults to 'amcl.Fp256bn'
CurveID string `protobuf:"bytes,7,opt,name=curve_id,json=curveID" json:"curveID,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

CurveID was recently added by Yacov, don't we need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but we don't need this field. It is never used and does not offer any advantage at the current stage.
The SignerConfig struct here is just a copy of the same struct in the Idemix lib.

@adecaro
Copy link
Contributor Author

adecaro commented Jun 27, 2022

@denyeart , thanks for you feedback. Please, let me know if the answers to your questions make sense.

denyeart
denyeart previously approved these changes Jun 27, 2022
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.

2 participants