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

New Idemix Integration with W3C support, preparation #731

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

adecaro
Copy link
Contributor

@adecaro adecaro commented Aug 12, 2024

This PR does the following:

  • It updates the idemix dependency
  • It introduce the SchemaManager to support multiple credential and signature formats. In this PR only the old coding is used. The new coding, the W3C compatible, will be enabled in a coming PR that will upgrade also idemixgen.

func NewDeserializerWithBCCSP(ipk []byte, verType csp.VerificationType, nymEID []byte, cryptoProvider csp.BCCSP) (*Deserializer, error) {
func NewDeserializerWithBCCSP(
sm SchemaManager,
schema string,
Copy link
Contributor

Choose a reason for hiding this comment

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

Imho the deserializer shouldn't know anything about the schema at construction time. Info on the schema type should come later through the normal APIs from the protobuf data. This is why in the initial implementation I had cached the value of the public key and only decided to parse it later as soon as the schema type was known through the proper channels. See here where I cached it and here where I deferred the parsing of the IPK.

@adecaro adecaro marked this pull request as draft August 14, 2024 06:03
@adecaro adecaro marked this pull request as ready for review August 23, 2024 06:58
@adecaro adecaro changed the title New Idemix Integration with W3C support New Idemix Integration with W3C support, preparation Aug 23, 2024
@adecaro adecaro requested a review from ale-linux August 23, 2024 07:06
Use the `SerializedIdemixIdentity` proto definition from the idemix repo and
not from fabric, whence idemix has been removed.

Signed-off-by: Alessandro Sorniotti <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
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