zuid-specification

Logo

Zesty.io Unique Identifier Specification

View the Project on GitHub zesty-io/zuid-specification

ZUID Specification

Example ZUID:

structure: component1-component2-component3
lengths: maxlen5-maxlen10-maxlen35

e.g. 1-1b123a2f0-qw2n4

Component 1: Entity Prefix

These string integers are static representations of specific entity types and are provided in each library as some form of constant.

Component 2: Time Encoded as a String

Example:

Date (and time):
2018-03-23 14:36:18.643025 -0700 PDT m=+0.000811554

In nano seconds:
1521840978643025000

As hex:
"d0f1b38ad3"

Component 3: A Random Alphanumeric String

Libraries

ZUID Entity Prefixes

See prefixes.json for ZUID Entity Prefixes encoded as JSON. This file is the definitive source for prefixes. All other libraries should conform to it.