Are there any length constrained on prefix
of the identifier?
#249
-
Does the |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 2 replies
-
When adding new prefixes to When using a prefix generally, one should use a prefix defined in |
Beta Was this translation helpful? Give feedback.
When adding new prefixes to
IdentifierPrefix
(exported from@celo/identity
, defined in@celo/base
for use in other packages), there isn't a strict length constraint, but we do expect prefixes to follow the format as described in the docstring, namely that a new prefix should either be the same as the equivalent DID method or the full name of the platform.When using a prefix generally, one should use a prefix defined in
IdentifierPrefix
(or submit a PR for a prefix not already included there) in order to create interoperable identifiers.