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.
src/lib/certificates.tsskipsentityTypeduring sharable-attribute reference decoding, with a note about schema compatibility with old certificates.The KYC certificate schema already carries
entityTypewith organization and person arms (src/services/kyc/utils/oids.json:185-204), andCertificate.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.