code: function checkDomain(result) {
    // TODO: check against some config value for the domain or similar
    return function(domain, options, callback) {
      result.domain = domain;
      return callback(null, true);
    };
  }
docs: TODO: define a function for getting a public key via did-io