Skip to main content
This model has been absorbed into peaqOS. See peaqID for the current identity model. Every field of the identity document is optional. Defaults are applied to the ones you omit. Accepted options and types:
  • id: string (default did:peaq:<address>)
  • controller: string (default: same as id)
  • verificationMethods: array of objects { id: string, type: string, controller: string, publicKeyMultibase: string }
  • authentications: array of strings (verification method references)
  • services: array of objects { id: string, type: string, serviceEndpoint?: string, data?: string }
  • signature: object { type: string, issuer: string, hash: string }
  • name: string (the on-chain key for the document; default did:peaq:<address>, which is the only name read_identity() looks up)
  • tx_options, on_status: transaction options/callback
Example (custom fields):
Notes:
  • Omit every field to get the minimal document.
  • A service carries either serviceEndpoint or compact data for small payloads.
  • For FINAL confirmation and status logs, pass tx_options and on_status.