Skip to content

entityType certificate attribute is skipped when decoding sharable attribute references #439

Description

@lucasrosa90

src/lib/certificates.ts skips entityType during sharable-attribute reference decoding, with a note about schema compatibility with old certificates.

The KYC certificate schema already carries entityType with organization and person arms (src/services/kyc/utils/oids.json:185-204), and Certificate.getAttributeValue('entityType') (certificates.ts:664) reads it. That attribute is how a consumer decides "this account has a verified business identity" rather than an individual one.

With entity types now advertised and requested end to end (#355), a consumer that receives a shared certificate may not be able to read entityType, and so cannot distinguish a KYB certificate from a KYC one at the end of the flow. Worth confirming whether the skip still applies to newly issued certificates before any consumer depends on it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions