getId = async ({ id } = {}) => {
    if (!id) {
      throw new Error('id is required')
    }

    const key = await keystore.getKey(id) || await keystore.createKey(id)
    return uint8ArrayToString(key.publicKey.raw, 'base16')
  }
Gets the id.
@memberof module:IdentityProviders.IdentityProvider-PublicKey
@param {string} id The id to retrieve.
@return {string} The identity's id.
@instance