Skip to content

Module BSV::Identity::IdentityParser

Parses an {IdentityCertificate} into a {DisplayableIdentity} suitable for presentation in a user interface.

Handles all 9 well-known certificate types (xCert, discordCert, phoneCert, emailCert, identiCert, registrant, coolCert, anyone, self) with type-specific field extraction that matches the TS SDK implementation exactly. Unknown certificate types fall through to a generic field-name heuristic.

Constants

ANYONE_AVATAR

Not documented.

BADGE_ICON

Not documented.

EMAIL_AVATAR

Well-known avatar opaque strings used by specific certificate types.

PHONE_AVATAR

Not documented.

SELF_AVATAR

Not documented.

Public Class Methods

parse(identity_certificate)

Parses an {IdentityCertificate} and returns a {DisplayableIdentity}. - @param identity_certificate [IdentityCertificate] - @return [DisplayableIdentity]