[
  {
    "tags": [],
    "description": {
      "full": "",
      "summary": "",
      "body": ""
    },
    "isPrivate": false,
    "isConstructor": false,
    "line": 1,
    "codeStart": null,
    "code": "import { UUID } from './uuid';\nimport { Base58 } from './base58';\n\nexport class Identifier {\n  constructor(public readonly id: string) {}\n}\nexport namespace Identifier {\n  export function isIdentifier(key: string): boolean {\n    return key && /[1-9a-zA-Z]+/.test(key);\n  }\n\n  export function newId(): string {\n    return Base58.encode(UUID.randomBytes());\n  }\n}",
    "ctx": false
  }
]