Skip to content

Are there any length constrained on prefix of the identifier? #249

Discussion options

You must be logged in to vote

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.

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@therealharpaljadeja
Comment options

Answer selected by arthurgousset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants