hyperledger / anoncreds-rs

anoncreds-rs
https://wiki.hyperledger.org/display/anoncreds
Apache License 2.0
73 stars 51 forks source link

Revocation Registry ID validation is failing #312

Closed ianco closed 5 months ago

ianco commented 5 months ago

I think the fix to the DID validation (#307) broke the revocation registry ID validation, we are seeing these errors now on the aca-py integration tests:

7hAcme.agent | anoncreds.error.AnoncredsError: type: RevocationRegistryDefinitionId, identifier: 2oEZfAdHA6vETfASonFe57:4:2oEZfAdHA6vETfASonFe57:3:CL:288602:Acme.agent.Schema_DriversLicense_v2:CL_ACCUM:0 is invalid. It MUST be a URI or legacy identifier.
7hAcme.agent | 2024-01-25 17:06:50,457 aries_cloudagent.core.event_bus ERROR Error occurred while processing event

The tests were passing with the dev7 version but are failing with the dev8 version.

swcurran commented 5 months ago

That is weird....

I guess I didn't understand the scope of the change we were doing. Sounds like the scope was beyond the prover_did validation?

I thought we had to explicitly add support for dev8, but is it automatically picked up?

We need to get a fix in for that ASAP, as this will be a significant break.

@andrewwhitehead @ianco , please coordinate.

andrewwhitehead commented 5 months ago

It's the change to the URI recognition. It seems like the legacy ID recognition was failing, and it was being recognized as a general URI when it's not really. Seems like another test is needed in the library.

D'oh: https://github.com/hyperledger/anoncreds-rs/blob/main/src/data_types/macros.rs#L47-L48

ianco commented 5 months ago

Can we get a dev9 release so we can test this out?

TimoGlastra commented 5 months ago

I can do it tomorrow morning. if you can create A PR to update the version already that'll help! (Otherwise i can also do that tomorrow)

swcurran commented 5 months ago

Created and tests are running: #314

TimoGlastra commented 5 months ago

Release cooking … https://github.com/hyperledger/anoncreds-rs/releases/tag/v0.2.0-dev.9