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

Remove hardcoded position 0 for user secret key #44

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

ale-linux
Copy link
Collaborator

This PR removes the hardcoded position 0 for the user secret key. Until now, the attribute position of the user secret key was 0. This is too restrictive since it forbids the usage of other schemas (e.g. JSON-LD) where the position of the attributes depends on the serialisation rules, and we cannot guarantee position 0.

adecaro
adecaro previously approved these changes Aug 26, 2024
Copy link
Member

@adecaro adecaro left a comment

Choose a reason for hiding this comment

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

LGTM, but please address the comment. Thanks

@@ -158,14 +158,14 @@ type SignatureScheme interface {
// rhIndex: revocation handle index relative to attributes;
// revocationPublicKey: revocation public key;
// epoch: revocation epoch.
Verify(ipk IssuerPublicKey, signature, msg []byte, attributes []IdemixAttribute, rhIndex, eidIndex int,
Verify(ipk IssuerPublicKey, signature, msg []byte, attributes []IdemixAttribute, rhIndex, eidIndex, skIndex int,
Copy link
Member

Choose a reason for hiding this comment

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

can you update the comment, please?

This PR removes the hardcoded position 0 for the user secret key. Until now,
the attribute position of the user secret key was 0. This is too restrictive
since it forbids the usage of other schemas (e.g. JSON-LD) where the position
of the attributes depends on the serialisation rules, and we cannot guarantee
position 0.

Signed-off-by: Alessandro Sorniotti <[email protected]>
Copy link
Member

@adecaro adecaro left a comment

Choose a reason for hiding this comment

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

LGTM

@ale-linux ale-linux merged commit 6e5f0b7 into main Aug 26, 2024
2 checks passed
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