0.2.0 • Published 2 years ago

@datamodels/identity-profile-basic v0.2.0

Weekly downloads
-
License
(Apache-2.0 OR MI...
Repository
github
Last release
2 years ago

Basic Profile DataModel

DataModel implementation of the Basic Profile schema and definition specified in CIP-19.

Installation

npm install -D @datamodels/identity-profile-basic

Rationale

The Basic Profile contains a DID's basic profile information.

By standardizing profile information for DIDs, the Basic Profile simplifies how applications can view and display the profiles of their users.

A profile is one of the most important aspects to identity: Profiles are often most associated with identity, and the Basic Profile serves as the standard profile for a DID that can be used everywhere across the web.

DID-agnostic support: Since Ceramic documents can be created and controlled by any DID, the Basic Profile can be used in conjunction with any DID method.

Schemas

BasicProfile

The Basic Profile schema defines the format of a document that contains the properties listed below. Properties not defined in the schema cannot be included in the Basic Profile, however the schema can always be updated via a new CIP.

PropertyDescriptionValueMax SizeRequiredExample
namea namestring150 charoptionalMary Smith
imagean imageImage sourcesoptional
descriptiona short descriptionstring420 charoptionalThis is my cool description.
emojian emojiunicode2 charoptional🔢
backgrounda background image (3:1 ratio)Image sourcesoptional
birthDatea date of birthISO 860110 charoptional1990-04-24
urla urlstring240 charoptionalhttp://ceramic.network
gendera genderstring42 charoptionalfemale
homeLocationa place of residencestring140 charoptionalBerlin
residenceCountrya country of residenceISO 3166-1 alpha-22 charoptionalDE
nationalitiesnationalitiesarray of ISO 3166-1 alpha-2 values2 charoptionalCN
affiliationsaffiliationsarray of strings240 charoptionalCeramic Ecosystem Alliance

Discussion

License

Dual licensed under MIT and Apache 2