Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Libindy allows issuing of partially filled credentials #2230

@Artemkaaas

Description

@Artemkaaas

Libindy 1.15.0 allows us to issue a credential containing only part of fields specified in a credential definition/schema.
But next a proof generation with the usage of that credential fails with:
`
TRACE:indy.libindy.native.indy.api.anoncreds: src/api/anoncreds.rs:2050 | prepare_result_1: >>> Err(IndyError { inner:

UrsaCryptoError: Credential doesn't correspond to credential schema

Invalid structure })
`

Libindy/URSA must validate that credential attributes fully match to credential definition / schema during the issuance.

Sample reproducing the issue can be found here: https://github.com/Artemkaaas/indy-sdk/blob/bugfix/partial-credential/samples/python/src/anoncreds.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    wont-address-project-depreciatedThis Issue or PR will not be addressed. The project has been depreciated.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions