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

chore: add proofs to create claim endpoint #681

Conversation

martinsaporiti
Copy link
Contributor

@martinsaporiti martinsaporiti commented Jun 25, 2024

Notes

  • Add proofs field to the create claim body endpoint in core API.
  • The values allowed are: BJJSignature2021┃Iden3SparseMerkleTreeProof

With this feature the user can specify the type of proof for the claim

@martinsaporiti martinsaporiti self-assigned this Jun 25, 2024
@martinsaporiti martinsaporiti requested a review from a team as a code owner June 25, 2024 18:08
@@ -151,6 +151,9 @@ func (s *Server) CreateIdentity(ctx context.Context, request CreateIdentityReque

// CreateClaim is claim creation controller
func (s *Server) CreateClaim(ctx context.Context, request CreateClaimRequestObject) (CreateClaimResponseObject, error) {
const BJJSignatureProof2021 = "BJJSignatureProof2021"
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Or the ones you defined in internal/api/api.gen.go

@martinsaporiti martinsaporiti merged commit 7e67052 into develop Jun 26, 2024
3 checks passed
@martinsaporiti martinsaporiti deleted the PID-2261-update-create-claim-endpoint-to-support-proof-s branch June 26, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants