hyperledger / anoncreds-spec

The specification for AnonCreds verifiable credential exchange.
https://hyperledger.github.io/anoncreds-spec/
Apache License 2.0
45 stars 24 forks source link

update schema model to camelCase #121

Closed TimoGlastra closed 1 year ago

TimoGlastra commented 1 year ago

Updates the schema model to use camelCase for the attrNames property. this is because the AnonCreds data models use camelCase by default.

Model in AnonCreds RS (same as Indy Shared RS): https://github.com/hyperledger/anoncreds-rs/blob/main/anoncreds/src/data_types/anoncreds/schema.rs#L19-L26

TimoGlastra commented 1 year ago

QuestionL Will the Indy AnonCreds Methods have to compensate for this? Read from the ledger the object, and then (if necessary?) convert it to the AnonCreds format?

Yes, but that's already what is happening at the moment. The data structure that is used by the anoncreds libraries is different from what is stored on the ledger.

The indy-sdk had methods to do this transformation (e.g. parseGetSchemaResponse would transform the ledger response to the structure the anoncreds code expects)