kaleido-io / kaleido-iden3-samples

Sample code for using the iden3 protocol to issue verifiable claims
Apache License 2.0
5 stars 4 forks source link

Regression in publishing issued claim #28

Closed nedgar closed 1 year ago

nedgar commented 1 year ago

Steps:

This fails using the latest from main branch.

Chengxuan commented 1 year ago

This is a result of https://github.com/kaleido-io/kaleido-iden3-samples/pull/24. @nedgar you raised a PR to fix the readme for this: https://github.com/kaleido-io/kaleido-iden3-samples/pull/26/files

nedgar commented 1 year ago

Shouldn't it still be possible to issue and publish claims, though, even if publishing is not required?

Chengxuan commented 1 year ago

@nedgar I assumed that you failed to publish the new state as in the stateTransition_inputs.json file the oldUserState and newUserState are identical. If you saw something different, please let me know.

I raised a PR to handle that case better: https://github.com/kaleido-io/kaleido-iden3-samples/pull/31

I didn't want to remove the code that generates the stateTransition_inputs.json as we might need that if we ever want zkp back.

FYI @jimthematrix

nedgar commented 1 year ago

@Chengxuan yes, that's the case. I ran make issue-claim twice.

nedgar commented 1 year ago

Actually, let me re-check with the reported steps.

Chengxuan commented 1 year ago

In https://github.com/kaleido-io/kaleido-iden3-samples/pull/36 I've removed the generation of the state transition file when a claim is issued via signature as it's confusing.

Feel free to reopen this issue if you have more questions