@dashevo/dapi-grpc 5.0.0-rc.7 → 5.0.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54704,6 +54704,7 @@ $root.org = (function() {
54704
54704
  * @memberof org.dash.platform.dapi.v0
54705
54705
  * @interface IGetIdentityByNonUniquePublicKeyHashRequest
54706
54706
  * @property {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.IGetIdentityByNonUniquePublicKeyHashRequestV0|null} [v0] GetIdentityByNonUniquePublicKeyHashRequest v0
54707
+ * @property {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.IGetIdentityByNonUniquePublicKeyHashRequestV1|null} [v1] GetIdentityByNonUniquePublicKeyHashRequest v1
54707
54708
  */
54708
54709
 
54709
54710
  /**
@@ -54729,17 +54730,25 @@ $root.org = (function() {
54729
54730
  */
54730
54731
  GetIdentityByNonUniquePublicKeyHashRequest.prototype.v0 = null;
54731
54732
 
54733
+ /**
54734
+ * GetIdentityByNonUniquePublicKeyHashRequest v1.
54735
+ * @member {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.IGetIdentityByNonUniquePublicKeyHashRequestV1|null|undefined} v1
54736
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest
54737
+ * @instance
54738
+ */
54739
+ GetIdentityByNonUniquePublicKeyHashRequest.prototype.v1 = null;
54740
+
54732
54741
  // OneOf field names bound to virtual getters and setters
54733
54742
  var $oneOfFields;
54734
54743
 
54735
54744
  /**
54736
54745
  * GetIdentityByNonUniquePublicKeyHashRequest version.
54737
- * @member {"v0"|undefined} version
54746
+ * @member {"v0"|"v1"|undefined} version
54738
54747
  * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest
54739
54748
  * @instance
54740
54749
  */
54741
54750
  Object.defineProperty(GetIdentityByNonUniquePublicKeyHashRequest.prototype, "version", {
54742
- get: $util.oneOfGetter($oneOfFields = ["v0"]),
54751
+ get: $util.oneOfGetter($oneOfFields = ["v0", "v1"]),
54743
54752
  set: $util.oneOfSetter($oneOfFields)
54744
54753
  });
54745
54754
 
@@ -54769,6 +54778,8 @@ $root.org = (function() {
54769
54778
  writer = $Writer.create();
54770
54779
  if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
54771
54780
  $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
54781
+ if (message.v1 != null && Object.hasOwnProperty.call(message, "v1"))
54782
+ $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1.encode(message.v1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
54772
54783
  return writer;
54773
54784
  };
54774
54785
 
@@ -54806,6 +54817,9 @@ $root.org = (function() {
54806
54817
  case 1:
54807
54818
  message.v0 = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV0.decode(reader, reader.uint32());
54808
54819
  break;
54820
+ case 2:
54821
+ message.v1 = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1.decode(reader, reader.uint32());
54822
+ break;
54809
54823
  default:
54810
54824
  reader.skipType(tag & 7);
54811
54825
  break;
@@ -54850,6 +54864,16 @@ $root.org = (function() {
54850
54864
  return "v0." + error;
54851
54865
  }
54852
54866
  }
54867
+ if (message.v1 != null && message.hasOwnProperty("v1")) {
54868
+ if (properties.version === 1)
54869
+ return "version: multiple values";
54870
+ properties.version = 1;
54871
+ {
54872
+ var error = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1.verify(message.v1);
54873
+ if (error)
54874
+ return "v1." + error;
54875
+ }
54876
+ }
54853
54877
  return null;
54854
54878
  };
54855
54879
 
@@ -54870,6 +54894,11 @@ $root.org = (function() {
54870
54894
  throw TypeError(".org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.v0: object expected");
54871
54895
  message.v0 = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV0.fromObject(object.v0);
54872
54896
  }
54897
+ if (object.v1 != null) {
54898
+ if (typeof object.v1 !== "object")
54899
+ throw TypeError(".org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.v1: object expected");
54900
+ message.v1 = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1.fromObject(object.v1);
54901
+ }
54873
54902
  return message;
54874
54903
  };
54875
54904
 
@@ -54891,6 +54920,11 @@ $root.org = (function() {
54891
54920
  if (options.oneofs)
54892
54921
  object.version = "v0";
54893
54922
  }
54923
+ if (message.v1 != null && message.hasOwnProperty("v1")) {
54924
+ object.v1 = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1.toObject(message.v1, options);
54925
+ if (options.oneofs)
54926
+ object.version = "v1";
54927
+ }
54894
54928
  return object;
54895
54929
  };
54896
54930
 
@@ -55155,6 +55189,256 @@ $root.org = (function() {
55155
55189
  return GetIdentityByNonUniquePublicKeyHashRequestV0;
55156
55190
  })();
55157
55191
 
55192
+ GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1 = (function() {
55193
+
55194
+ /**
55195
+ * Properties of a GetIdentityByNonUniquePublicKeyHashRequestV1.
55196
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest
55197
+ * @interface IGetIdentityByNonUniquePublicKeyHashRequestV1
55198
+ * @property {Uint8Array|null} [publicKeyHash] GetIdentityByNonUniquePublicKeyHashRequestV1 publicKeyHash
55199
+ * @property {Uint8Array|null} [startAfter] GetIdentityByNonUniquePublicKeyHashRequestV1 startAfter
55200
+ * @property {boolean|null} [prove] GetIdentityByNonUniquePublicKeyHashRequestV1 prove
55201
+ */
55202
+
55203
+ /**
55204
+ * Constructs a new GetIdentityByNonUniquePublicKeyHashRequestV1.
55205
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest
55206
+ * @classdesc Represents a GetIdentityByNonUniquePublicKeyHashRequestV1.
55207
+ * @implements IGetIdentityByNonUniquePublicKeyHashRequestV1
55208
+ * @constructor
55209
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.IGetIdentityByNonUniquePublicKeyHashRequestV1=} [properties] Properties to set
55210
+ */
55211
+ function GetIdentityByNonUniquePublicKeyHashRequestV1(properties) {
55212
+ if (properties)
55213
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55214
+ if (properties[keys[i]] != null)
55215
+ this[keys[i]] = properties[keys[i]];
55216
+ }
55217
+
55218
+ /**
55219
+ * GetIdentityByNonUniquePublicKeyHashRequestV1 publicKeyHash.
55220
+ * @member {Uint8Array} publicKeyHash
55221
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55222
+ * @instance
55223
+ */
55224
+ GetIdentityByNonUniquePublicKeyHashRequestV1.prototype.publicKeyHash = $util.newBuffer([]);
55225
+
55226
+ /**
55227
+ * GetIdentityByNonUniquePublicKeyHashRequestV1 startAfter.
55228
+ * @member {Uint8Array} startAfter
55229
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55230
+ * @instance
55231
+ */
55232
+ GetIdentityByNonUniquePublicKeyHashRequestV1.prototype.startAfter = $util.newBuffer([]);
55233
+
55234
+ /**
55235
+ * GetIdentityByNonUniquePublicKeyHashRequestV1 prove.
55236
+ * @member {boolean} prove
55237
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55238
+ * @instance
55239
+ */
55240
+ GetIdentityByNonUniquePublicKeyHashRequestV1.prototype.prove = false;
55241
+
55242
+ /**
55243
+ * Creates a new GetIdentityByNonUniquePublicKeyHashRequestV1 instance using the specified properties.
55244
+ * @function create
55245
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55246
+ * @static
55247
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.IGetIdentityByNonUniquePublicKeyHashRequestV1=} [properties] Properties to set
55248
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1} GetIdentityByNonUniquePublicKeyHashRequestV1 instance
55249
+ */
55250
+ GetIdentityByNonUniquePublicKeyHashRequestV1.create = function create(properties) {
55251
+ return new GetIdentityByNonUniquePublicKeyHashRequestV1(properties);
55252
+ };
55253
+
55254
+ /**
55255
+ * Encodes the specified GetIdentityByNonUniquePublicKeyHashRequestV1 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1.verify|verify} messages.
55256
+ * @function encode
55257
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55258
+ * @static
55259
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.IGetIdentityByNonUniquePublicKeyHashRequestV1} message GetIdentityByNonUniquePublicKeyHashRequestV1 message or plain object to encode
55260
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55261
+ * @returns {$protobuf.Writer} Writer
55262
+ */
55263
+ GetIdentityByNonUniquePublicKeyHashRequestV1.encode = function encode(message, writer) {
55264
+ if (!writer)
55265
+ writer = $Writer.create();
55266
+ if (message.publicKeyHash != null && Object.hasOwnProperty.call(message, "publicKeyHash"))
55267
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.publicKeyHash);
55268
+ if (message.startAfter != null && Object.hasOwnProperty.call(message, "startAfter"))
55269
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.startAfter);
55270
+ if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
55271
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.prove);
55272
+ return writer;
55273
+ };
55274
+
55275
+ /**
55276
+ * Encodes the specified GetIdentityByNonUniquePublicKeyHashRequestV1 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1.verify|verify} messages.
55277
+ * @function encodeDelimited
55278
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55279
+ * @static
55280
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.IGetIdentityByNonUniquePublicKeyHashRequestV1} message GetIdentityByNonUniquePublicKeyHashRequestV1 message or plain object to encode
55281
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55282
+ * @returns {$protobuf.Writer} Writer
55283
+ */
55284
+ GetIdentityByNonUniquePublicKeyHashRequestV1.encodeDelimited = function encodeDelimited(message, writer) {
55285
+ return this.encode(message, writer).ldelim();
55286
+ };
55287
+
55288
+ /**
55289
+ * Decodes a GetIdentityByNonUniquePublicKeyHashRequestV1 message from the specified reader or buffer.
55290
+ * @function decode
55291
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55292
+ * @static
55293
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55294
+ * @param {number} [length] Message length if known beforehand
55295
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1} GetIdentityByNonUniquePublicKeyHashRequestV1
55296
+ * @throws {Error} If the payload is not a reader or valid buffer
55297
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55298
+ */
55299
+ GetIdentityByNonUniquePublicKeyHashRequestV1.decode = function decode(reader, length) {
55300
+ if (!(reader instanceof $Reader))
55301
+ reader = $Reader.create(reader);
55302
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1();
55303
+ while (reader.pos < end) {
55304
+ var tag = reader.uint32();
55305
+ switch (tag >>> 3) {
55306
+ case 1:
55307
+ message.publicKeyHash = reader.bytes();
55308
+ break;
55309
+ case 2:
55310
+ message.startAfter = reader.bytes();
55311
+ break;
55312
+ case 3:
55313
+ message.prove = reader.bool();
55314
+ break;
55315
+ default:
55316
+ reader.skipType(tag & 7);
55317
+ break;
55318
+ }
55319
+ }
55320
+ return message;
55321
+ };
55322
+
55323
+ /**
55324
+ * Decodes a GetIdentityByNonUniquePublicKeyHashRequestV1 message from the specified reader or buffer, length delimited.
55325
+ * @function decodeDelimited
55326
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55327
+ * @static
55328
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55329
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1} GetIdentityByNonUniquePublicKeyHashRequestV1
55330
+ * @throws {Error} If the payload is not a reader or valid buffer
55331
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55332
+ */
55333
+ GetIdentityByNonUniquePublicKeyHashRequestV1.decodeDelimited = function decodeDelimited(reader) {
55334
+ if (!(reader instanceof $Reader))
55335
+ reader = new $Reader(reader);
55336
+ return this.decode(reader, reader.uint32());
55337
+ };
55338
+
55339
+ /**
55340
+ * Verifies a GetIdentityByNonUniquePublicKeyHashRequestV1 message.
55341
+ * @function verify
55342
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55343
+ * @static
55344
+ * @param {Object.<string,*>} message Plain object to verify
55345
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
55346
+ */
55347
+ GetIdentityByNonUniquePublicKeyHashRequestV1.verify = function verify(message) {
55348
+ if (typeof message !== "object" || message === null)
55349
+ return "object expected";
55350
+ if (message.publicKeyHash != null && message.hasOwnProperty("publicKeyHash"))
55351
+ if (!(message.publicKeyHash && typeof message.publicKeyHash.length === "number" || $util.isString(message.publicKeyHash)))
55352
+ return "publicKeyHash: buffer expected";
55353
+ if (message.startAfter != null && message.hasOwnProperty("startAfter"))
55354
+ if (!(message.startAfter && typeof message.startAfter.length === "number" || $util.isString(message.startAfter)))
55355
+ return "startAfter: buffer expected";
55356
+ if (message.prove != null && message.hasOwnProperty("prove"))
55357
+ if (typeof message.prove !== "boolean")
55358
+ return "prove: boolean expected";
55359
+ return null;
55360
+ };
55361
+
55362
+ /**
55363
+ * Creates a GetIdentityByNonUniquePublicKeyHashRequestV1 message from a plain object. Also converts values to their respective internal types.
55364
+ * @function fromObject
55365
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55366
+ * @static
55367
+ * @param {Object.<string,*>} object Plain object
55368
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1} GetIdentityByNonUniquePublicKeyHashRequestV1
55369
+ */
55370
+ GetIdentityByNonUniquePublicKeyHashRequestV1.fromObject = function fromObject(object) {
55371
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1)
55372
+ return object;
55373
+ var message = new $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1();
55374
+ if (object.publicKeyHash != null)
55375
+ if (typeof object.publicKeyHash === "string")
55376
+ $util.base64.decode(object.publicKeyHash, message.publicKeyHash = $util.newBuffer($util.base64.length(object.publicKeyHash)), 0);
55377
+ else if (object.publicKeyHash.length >= 0)
55378
+ message.publicKeyHash = object.publicKeyHash;
55379
+ if (object.startAfter != null)
55380
+ if (typeof object.startAfter === "string")
55381
+ $util.base64.decode(object.startAfter, message.startAfter = $util.newBuffer($util.base64.length(object.startAfter)), 0);
55382
+ else if (object.startAfter.length >= 0)
55383
+ message.startAfter = object.startAfter;
55384
+ if (object.prove != null)
55385
+ message.prove = Boolean(object.prove);
55386
+ return message;
55387
+ };
55388
+
55389
+ /**
55390
+ * Creates a plain object from a GetIdentityByNonUniquePublicKeyHashRequestV1 message. Also converts values to other types if specified.
55391
+ * @function toObject
55392
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55393
+ * @static
55394
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1} message GetIdentityByNonUniquePublicKeyHashRequestV1
55395
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
55396
+ * @returns {Object.<string,*>} Plain object
55397
+ */
55398
+ GetIdentityByNonUniquePublicKeyHashRequestV1.toObject = function toObject(message, options) {
55399
+ if (!options)
55400
+ options = {};
55401
+ var object = {};
55402
+ if (options.defaults) {
55403
+ if (options.bytes === String)
55404
+ object.publicKeyHash = "";
55405
+ else {
55406
+ object.publicKeyHash = [];
55407
+ if (options.bytes !== Array)
55408
+ object.publicKeyHash = $util.newBuffer(object.publicKeyHash);
55409
+ }
55410
+ if (options.bytes === String)
55411
+ object.startAfter = "";
55412
+ else {
55413
+ object.startAfter = [];
55414
+ if (options.bytes !== Array)
55415
+ object.startAfter = $util.newBuffer(object.startAfter);
55416
+ }
55417
+ object.prove = false;
55418
+ }
55419
+ if (message.publicKeyHash != null && message.hasOwnProperty("publicKeyHash"))
55420
+ object.publicKeyHash = options.bytes === String ? $util.base64.encode(message.publicKeyHash, 0, message.publicKeyHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKeyHash) : message.publicKeyHash;
55421
+ if (message.startAfter != null && message.hasOwnProperty("startAfter"))
55422
+ object.startAfter = options.bytes === String ? $util.base64.encode(message.startAfter, 0, message.startAfter.length) : options.bytes === Array ? Array.prototype.slice.call(message.startAfter) : message.startAfter;
55423
+ if (message.prove != null && message.hasOwnProperty("prove"))
55424
+ object.prove = message.prove;
55425
+ return object;
55426
+ };
55427
+
55428
+ /**
55429
+ * Converts this GetIdentityByNonUniquePublicKeyHashRequestV1 to JSON.
55430
+ * @function toJSON
55431
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV1
55432
+ * @instance
55433
+ * @returns {Object.<string,*>} JSON object
55434
+ */
55435
+ GetIdentityByNonUniquePublicKeyHashRequestV1.prototype.toJSON = function toJSON() {
55436
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
55437
+ };
55438
+
55439
+ return GetIdentityByNonUniquePublicKeyHashRequestV1;
55440
+ })();
55441
+
55158
55442
  return GetIdentityByNonUniquePublicKeyHashRequest;
55159
55443
  })();
55160
55444
 
@@ -55165,6 +55449,7 @@ $root.org = (function() {
55165
55449
  * @memberof org.dash.platform.dapi.v0
55166
55450
  * @interface IGetIdentityByNonUniquePublicKeyHashResponse
55167
55451
  * @property {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.IGetIdentityByNonUniquePublicKeyHashResponseV0|null} [v0] GetIdentityByNonUniquePublicKeyHashResponse v0
55452
+ * @property {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.IGetIdentityByNonUniquePublicKeyHashResponseV1|null} [v1] GetIdentityByNonUniquePublicKeyHashResponse v1
55168
55453
  */
55169
55454
 
55170
55455
  /**
@@ -55190,17 +55475,25 @@ $root.org = (function() {
55190
55475
  */
55191
55476
  GetIdentityByNonUniquePublicKeyHashResponse.prototype.v0 = null;
55192
55477
 
55478
+ /**
55479
+ * GetIdentityByNonUniquePublicKeyHashResponse v1.
55480
+ * @member {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.IGetIdentityByNonUniquePublicKeyHashResponseV1|null|undefined} v1
55481
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse
55482
+ * @instance
55483
+ */
55484
+ GetIdentityByNonUniquePublicKeyHashResponse.prototype.v1 = null;
55485
+
55193
55486
  // OneOf field names bound to virtual getters and setters
55194
55487
  var $oneOfFields;
55195
55488
 
55196
55489
  /**
55197
55490
  * GetIdentityByNonUniquePublicKeyHashResponse version.
55198
- * @member {"v0"|undefined} version
55491
+ * @member {"v0"|"v1"|undefined} version
55199
55492
  * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse
55200
55493
  * @instance
55201
55494
  */
55202
55495
  Object.defineProperty(GetIdentityByNonUniquePublicKeyHashResponse.prototype, "version", {
55203
- get: $util.oneOfGetter($oneOfFields = ["v0"]),
55496
+ get: $util.oneOfGetter($oneOfFields = ["v0", "v1"]),
55204
55497
  set: $util.oneOfSetter($oneOfFields)
55205
55498
  });
55206
55499
 
@@ -55230,6 +55523,8 @@ $root.org = (function() {
55230
55523
  writer = $Writer.create();
55231
55524
  if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
55232
55525
  $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
55526
+ if (message.v1 != null && Object.hasOwnProperty.call(message, "v1"))
55527
+ $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.encode(message.v1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
55233
55528
  return writer;
55234
55529
  };
55235
55530
 
@@ -55267,6 +55562,9 @@ $root.org = (function() {
55267
55562
  case 1:
55268
55563
  message.v0 = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.decode(reader, reader.uint32());
55269
55564
  break;
55565
+ case 2:
55566
+ message.v1 = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.decode(reader, reader.uint32());
55567
+ break;
55270
55568
  default:
55271
55569
  reader.skipType(tag & 7);
55272
55570
  break;
@@ -55311,6 +55609,16 @@ $root.org = (function() {
55311
55609
  return "v0." + error;
55312
55610
  }
55313
55611
  }
55612
+ if (message.v1 != null && message.hasOwnProperty("v1")) {
55613
+ if (properties.version === 1)
55614
+ return "version: multiple values";
55615
+ properties.version = 1;
55616
+ {
55617
+ var error = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.verify(message.v1);
55618
+ if (error)
55619
+ return "v1." + error;
55620
+ }
55621
+ }
55314
55622
  return null;
55315
55623
  };
55316
55624
 
@@ -55331,6 +55639,11 @@ $root.org = (function() {
55331
55639
  throw TypeError(".org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.v0: object expected");
55332
55640
  message.v0 = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.fromObject(object.v0);
55333
55641
  }
55642
+ if (object.v1 != null) {
55643
+ if (typeof object.v1 !== "object")
55644
+ throw TypeError(".org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.v1: object expected");
55645
+ message.v1 = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.fromObject(object.v1);
55646
+ }
55334
55647
  return message;
55335
55648
  };
55336
55649
 
@@ -55352,6 +55665,11 @@ $root.org = (function() {
55352
55665
  if (options.oneofs)
55353
55666
  object.version = "v0";
55354
55667
  }
55668
+ if (message.v1 != null && message.hasOwnProperty("v1")) {
55669
+ object.v1 = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.toObject(message.v1, options);
55670
+ if (options.oneofs)
55671
+ object.version = "v1";
55672
+ }
55355
55673
  return object;
55356
55674
  };
55357
55675
 
@@ -55373,7 +55691,7 @@ $root.org = (function() {
55373
55691
  * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse
55374
55692
  * @interface IGetIdentityByNonUniquePublicKeyHashResponseV0
55375
55693
  * @property {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IIdentityResponse|null} [identity] GetIdentityByNonUniquePublicKeyHashResponseV0 identity
55376
- * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetIdentityByNonUniquePublicKeyHashResponseV0 proof
55694
+ * @property {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IIdentityProvedResponse|null} [proof] GetIdentityByNonUniquePublicKeyHashResponseV0 proof
55377
55695
  * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetIdentityByNonUniquePublicKeyHashResponseV0 metadata
55378
55696
  */
55379
55697
 
@@ -55402,7 +55720,7 @@ $root.org = (function() {
55402
55720
 
55403
55721
  /**
55404
55722
  * GetIdentityByNonUniquePublicKeyHashResponseV0 proof.
55405
- * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
55723
+ * @member {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IIdentityProvedResponse|null|undefined} proof
55406
55724
  * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0
55407
55725
  * @instance
55408
55726
  */
@@ -55456,10 +55774,10 @@ $root.org = (function() {
55456
55774
  writer = $Writer.create();
55457
55775
  if (message.identity != null && Object.hasOwnProperty.call(message, "identity"))
55458
55776
  $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse.encode(message.identity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
55777
+ if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
55778
+ $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
55459
55779
  if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
55460
55780
  $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
55461
- if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
55462
- $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
55463
55781
  return writer;
55464
55782
  };
55465
55783
 
@@ -55497,8 +55815,8 @@ $root.org = (function() {
55497
55815
  case 1:
55498
55816
  message.identity = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponse.decode(reader, reader.uint32());
55499
55817
  break;
55500
- case 4:
55501
- message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
55818
+ case 2:
55819
+ message.proof = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.decode(reader, reader.uint32());
55502
55820
  break;
55503
55821
  case 3:
55504
55822
  message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
@@ -55552,7 +55870,7 @@ $root.org = (function() {
55552
55870
  return "result: multiple values";
55553
55871
  properties.result = 1;
55554
55872
  {
55555
- var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
55873
+ var error = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.verify(message.proof);
55556
55874
  if (error)
55557
55875
  return "proof." + error;
55558
55876
  }
@@ -55585,7 +55903,7 @@ $root.org = (function() {
55585
55903
  if (object.proof != null) {
55586
55904
  if (typeof object.proof !== "object")
55587
55905
  throw TypeError(".org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.proof: object expected");
55588
- message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
55906
+ message.proof = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.fromObject(object.proof);
55589
55907
  }
55590
55908
  if (object.metadata != null) {
55591
55909
  if (typeof object.metadata !== "object")
@@ -55615,13 +55933,13 @@ $root.org = (function() {
55615
55933
  if (options.oneofs)
55616
55934
  object.result = "identity";
55617
55935
  }
55618
- if (message.metadata != null && message.hasOwnProperty("metadata"))
55619
- object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
55620
55936
  if (message.proof != null && message.hasOwnProperty("proof")) {
55621
- object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
55937
+ object.proof = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.toObject(message.proof, options);
55622
55938
  if (options.oneofs)
55623
55939
  object.result = "proof";
55624
55940
  }
55941
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
55942
+ object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
55625
55943
  return object;
55626
55944
  };
55627
55945
 
@@ -55832,9 +56150,702 @@ $root.org = (function() {
55832
56150
  return IdentityResponse;
55833
56151
  })();
55834
56152
 
56153
+ GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse = (function() {
56154
+
56155
+ /**
56156
+ * Properties of an IdentityProvedResponse.
56157
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0
56158
+ * @interface IIdentityProvedResponse
56159
+ * @property {org.dash.platform.dapi.v0.IProof|null} [grovedbIdentityPublicKeyHashProof] IdentityProvedResponse grovedbIdentityPublicKeyHashProof
56160
+ * @property {Uint8Array|null} [identityProofBytes] IdentityProvedResponse identityProofBytes
56161
+ */
56162
+
56163
+ /**
56164
+ * Constructs a new IdentityProvedResponse.
56165
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0
56166
+ * @classdesc Represents an IdentityProvedResponse.
56167
+ * @implements IIdentityProvedResponse
56168
+ * @constructor
56169
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IIdentityProvedResponse=} [properties] Properties to set
56170
+ */
56171
+ function IdentityProvedResponse(properties) {
56172
+ if (properties)
56173
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56174
+ if (properties[keys[i]] != null)
56175
+ this[keys[i]] = properties[keys[i]];
56176
+ }
56177
+
56178
+ /**
56179
+ * IdentityProvedResponse grovedbIdentityPublicKeyHashProof.
56180
+ * @member {org.dash.platform.dapi.v0.IProof|null|undefined} grovedbIdentityPublicKeyHashProof
56181
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56182
+ * @instance
56183
+ */
56184
+ IdentityProvedResponse.prototype.grovedbIdentityPublicKeyHashProof = null;
56185
+
56186
+ /**
56187
+ * IdentityProvedResponse identityProofBytes.
56188
+ * @member {Uint8Array} identityProofBytes
56189
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56190
+ * @instance
56191
+ */
56192
+ IdentityProvedResponse.prototype.identityProofBytes = $util.newBuffer([]);
56193
+
56194
+ /**
56195
+ * Creates a new IdentityProvedResponse instance using the specified properties.
56196
+ * @function create
56197
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56198
+ * @static
56199
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IIdentityProvedResponse=} [properties] Properties to set
56200
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} IdentityProvedResponse instance
56201
+ */
56202
+ IdentityProvedResponse.create = function create(properties) {
56203
+ return new IdentityProvedResponse(properties);
56204
+ };
56205
+
56206
+ /**
56207
+ * Encodes the specified IdentityProvedResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.verify|verify} messages.
56208
+ * @function encode
56209
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56210
+ * @static
56211
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IIdentityProvedResponse} message IdentityProvedResponse message or plain object to encode
56212
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56213
+ * @returns {$protobuf.Writer} Writer
56214
+ */
56215
+ IdentityProvedResponse.encode = function encode(message, writer) {
56216
+ if (!writer)
56217
+ writer = $Writer.create();
56218
+ if (message.grovedbIdentityPublicKeyHashProof != null && Object.hasOwnProperty.call(message, "grovedbIdentityPublicKeyHashProof"))
56219
+ $root.org.dash.platform.dapi.v0.Proof.encode(message.grovedbIdentityPublicKeyHashProof, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
56220
+ if (message.identityProofBytes != null && Object.hasOwnProperty.call(message, "identityProofBytes"))
56221
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.identityProofBytes);
56222
+ return writer;
56223
+ };
56224
+
56225
+ /**
56226
+ * Encodes the specified IdentityProvedResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.verify|verify} messages.
56227
+ * @function encodeDelimited
56228
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56229
+ * @static
56230
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IIdentityProvedResponse} message IdentityProvedResponse message or plain object to encode
56231
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56232
+ * @returns {$protobuf.Writer} Writer
56233
+ */
56234
+ IdentityProvedResponse.encodeDelimited = function encodeDelimited(message, writer) {
56235
+ return this.encode(message, writer).ldelim();
56236
+ };
56237
+
56238
+ /**
56239
+ * Decodes an IdentityProvedResponse message from the specified reader or buffer.
56240
+ * @function decode
56241
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56242
+ * @static
56243
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56244
+ * @param {number} [length] Message length if known beforehand
56245
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} IdentityProvedResponse
56246
+ * @throws {Error} If the payload is not a reader or valid buffer
56247
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56248
+ */
56249
+ IdentityProvedResponse.decode = function decode(reader, length) {
56250
+ if (!(reader instanceof $Reader))
56251
+ reader = $Reader.create(reader);
56252
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse();
56253
+ while (reader.pos < end) {
56254
+ var tag = reader.uint32();
56255
+ switch (tag >>> 3) {
56256
+ case 1:
56257
+ message.grovedbIdentityPublicKeyHashProof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
56258
+ break;
56259
+ case 2:
56260
+ message.identityProofBytes = reader.bytes();
56261
+ break;
56262
+ default:
56263
+ reader.skipType(tag & 7);
56264
+ break;
56265
+ }
56266
+ }
56267
+ return message;
56268
+ };
56269
+
56270
+ /**
56271
+ * Decodes an IdentityProvedResponse message from the specified reader or buffer, length delimited.
56272
+ * @function decodeDelimited
56273
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56274
+ * @static
56275
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56276
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} IdentityProvedResponse
56277
+ * @throws {Error} If the payload is not a reader or valid buffer
56278
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56279
+ */
56280
+ IdentityProvedResponse.decodeDelimited = function decodeDelimited(reader) {
56281
+ if (!(reader instanceof $Reader))
56282
+ reader = new $Reader(reader);
56283
+ return this.decode(reader, reader.uint32());
56284
+ };
56285
+
56286
+ /**
56287
+ * Verifies an IdentityProvedResponse message.
56288
+ * @function verify
56289
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56290
+ * @static
56291
+ * @param {Object.<string,*>} message Plain object to verify
56292
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56293
+ */
56294
+ IdentityProvedResponse.verify = function verify(message) {
56295
+ if (typeof message !== "object" || message === null)
56296
+ return "object expected";
56297
+ if (message.grovedbIdentityPublicKeyHashProof != null && message.hasOwnProperty("grovedbIdentityPublicKeyHashProof")) {
56298
+ var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.grovedbIdentityPublicKeyHashProof);
56299
+ if (error)
56300
+ return "grovedbIdentityPublicKeyHashProof." + error;
56301
+ }
56302
+ if (message.identityProofBytes != null && message.hasOwnProperty("identityProofBytes"))
56303
+ if (!(message.identityProofBytes && typeof message.identityProofBytes.length === "number" || $util.isString(message.identityProofBytes)))
56304
+ return "identityProofBytes: buffer expected";
56305
+ return null;
56306
+ };
56307
+
56308
+ /**
56309
+ * Creates an IdentityProvedResponse message from a plain object. Also converts values to their respective internal types.
56310
+ * @function fromObject
56311
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56312
+ * @static
56313
+ * @param {Object.<string,*>} object Plain object
56314
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} IdentityProvedResponse
56315
+ */
56316
+ IdentityProvedResponse.fromObject = function fromObject(object) {
56317
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse)
56318
+ return object;
56319
+ var message = new $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse();
56320
+ if (object.grovedbIdentityPublicKeyHashProof != null) {
56321
+ if (typeof object.grovedbIdentityPublicKeyHashProof !== "object")
56322
+ throw TypeError(".org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse.grovedbIdentityPublicKeyHashProof: object expected");
56323
+ message.grovedbIdentityPublicKeyHashProof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.grovedbIdentityPublicKeyHashProof);
56324
+ }
56325
+ if (object.identityProofBytes != null)
56326
+ if (typeof object.identityProofBytes === "string")
56327
+ $util.base64.decode(object.identityProofBytes, message.identityProofBytes = $util.newBuffer($util.base64.length(object.identityProofBytes)), 0);
56328
+ else if (object.identityProofBytes.length >= 0)
56329
+ message.identityProofBytes = object.identityProofBytes;
56330
+ return message;
56331
+ };
56332
+
56333
+ /**
56334
+ * Creates a plain object from an IdentityProvedResponse message. Also converts values to other types if specified.
56335
+ * @function toObject
56336
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56337
+ * @static
56338
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse} message IdentityProvedResponse
56339
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56340
+ * @returns {Object.<string,*>} Plain object
56341
+ */
56342
+ IdentityProvedResponse.toObject = function toObject(message, options) {
56343
+ if (!options)
56344
+ options = {};
56345
+ var object = {};
56346
+ if (options.defaults) {
56347
+ object.grovedbIdentityPublicKeyHashProof = null;
56348
+ if (options.bytes === String)
56349
+ object.identityProofBytes = "";
56350
+ else {
56351
+ object.identityProofBytes = [];
56352
+ if (options.bytes !== Array)
56353
+ object.identityProofBytes = $util.newBuffer(object.identityProofBytes);
56354
+ }
56355
+ }
56356
+ if (message.grovedbIdentityPublicKeyHashProof != null && message.hasOwnProperty("grovedbIdentityPublicKeyHashProof"))
56357
+ object.grovedbIdentityPublicKeyHashProof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.grovedbIdentityPublicKeyHashProof, options);
56358
+ if (message.identityProofBytes != null && message.hasOwnProperty("identityProofBytes"))
56359
+ object.identityProofBytes = options.bytes === String ? $util.base64.encode(message.identityProofBytes, 0, message.identityProofBytes.length) : options.bytes === Array ? Array.prototype.slice.call(message.identityProofBytes) : message.identityProofBytes;
56360
+ return object;
56361
+ };
56362
+
56363
+ /**
56364
+ * Converts this IdentityProvedResponse to JSON.
56365
+ * @function toJSON
56366
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponse
56367
+ * @instance
56368
+ * @returns {Object.<string,*>} JSON object
56369
+ */
56370
+ IdentityProvedResponse.prototype.toJSON = function toJSON() {
56371
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56372
+ };
56373
+
56374
+ return IdentityProvedResponse;
56375
+ })();
56376
+
55835
56377
  return GetIdentityByNonUniquePublicKeyHashResponseV0;
55836
56378
  })();
55837
56379
 
56380
+ GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1 = (function() {
56381
+
56382
+ /**
56383
+ * Properties of a GetIdentityByNonUniquePublicKeyHashResponseV1.
56384
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse
56385
+ * @interface IGetIdentityByNonUniquePublicKeyHashResponseV1
56386
+ * @property {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IIdentityResponse|null} [identity] GetIdentityByNonUniquePublicKeyHashResponseV1 identity
56387
+ * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetIdentityByNonUniquePublicKeyHashResponseV1 proof
56388
+ * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetIdentityByNonUniquePublicKeyHashResponseV1 metadata
56389
+ */
56390
+
56391
+ /**
56392
+ * Constructs a new GetIdentityByNonUniquePublicKeyHashResponseV1.
56393
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse
56394
+ * @classdesc Represents a GetIdentityByNonUniquePublicKeyHashResponseV1.
56395
+ * @implements IGetIdentityByNonUniquePublicKeyHashResponseV1
56396
+ * @constructor
56397
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.IGetIdentityByNonUniquePublicKeyHashResponseV1=} [properties] Properties to set
56398
+ */
56399
+ function GetIdentityByNonUniquePublicKeyHashResponseV1(properties) {
56400
+ if (properties)
56401
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56402
+ if (properties[keys[i]] != null)
56403
+ this[keys[i]] = properties[keys[i]];
56404
+ }
56405
+
56406
+ /**
56407
+ * GetIdentityByNonUniquePublicKeyHashResponseV1 identity.
56408
+ * @member {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IIdentityResponse|null|undefined} identity
56409
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56410
+ * @instance
56411
+ */
56412
+ GetIdentityByNonUniquePublicKeyHashResponseV1.prototype.identity = null;
56413
+
56414
+ /**
56415
+ * GetIdentityByNonUniquePublicKeyHashResponseV1 proof.
56416
+ * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
56417
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56418
+ * @instance
56419
+ */
56420
+ GetIdentityByNonUniquePublicKeyHashResponseV1.prototype.proof = null;
56421
+
56422
+ /**
56423
+ * GetIdentityByNonUniquePublicKeyHashResponseV1 metadata.
56424
+ * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
56425
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56426
+ * @instance
56427
+ */
56428
+ GetIdentityByNonUniquePublicKeyHashResponseV1.prototype.metadata = null;
56429
+
56430
+ // OneOf field names bound to virtual getters and setters
56431
+ var $oneOfFields;
56432
+
56433
+ /**
56434
+ * GetIdentityByNonUniquePublicKeyHashResponseV1 result.
56435
+ * @member {"identity"|"proof"|undefined} result
56436
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56437
+ * @instance
56438
+ */
56439
+ Object.defineProperty(GetIdentityByNonUniquePublicKeyHashResponseV1.prototype, "result", {
56440
+ get: $util.oneOfGetter($oneOfFields = ["identity", "proof"]),
56441
+ set: $util.oneOfSetter($oneOfFields)
56442
+ });
56443
+
56444
+ /**
56445
+ * Creates a new GetIdentityByNonUniquePublicKeyHashResponseV1 instance using the specified properties.
56446
+ * @function create
56447
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56448
+ * @static
56449
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.IGetIdentityByNonUniquePublicKeyHashResponseV1=} [properties] Properties to set
56450
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1} GetIdentityByNonUniquePublicKeyHashResponseV1 instance
56451
+ */
56452
+ GetIdentityByNonUniquePublicKeyHashResponseV1.create = function create(properties) {
56453
+ return new GetIdentityByNonUniquePublicKeyHashResponseV1(properties);
56454
+ };
56455
+
56456
+ /**
56457
+ * Encodes the specified GetIdentityByNonUniquePublicKeyHashResponseV1 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.verify|verify} messages.
56458
+ * @function encode
56459
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56460
+ * @static
56461
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.IGetIdentityByNonUniquePublicKeyHashResponseV1} message GetIdentityByNonUniquePublicKeyHashResponseV1 message or plain object to encode
56462
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56463
+ * @returns {$protobuf.Writer} Writer
56464
+ */
56465
+ GetIdentityByNonUniquePublicKeyHashResponseV1.encode = function encode(message, writer) {
56466
+ if (!writer)
56467
+ writer = $Writer.create();
56468
+ if (message.identity != null && Object.hasOwnProperty.call(message, "identity"))
56469
+ $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse.encode(message.identity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
56470
+ if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
56471
+ $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
56472
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
56473
+ $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
56474
+ return writer;
56475
+ };
56476
+
56477
+ /**
56478
+ * Encodes the specified GetIdentityByNonUniquePublicKeyHashResponseV1 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.verify|verify} messages.
56479
+ * @function encodeDelimited
56480
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56481
+ * @static
56482
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.IGetIdentityByNonUniquePublicKeyHashResponseV1} message GetIdentityByNonUniquePublicKeyHashResponseV1 message or plain object to encode
56483
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56484
+ * @returns {$protobuf.Writer} Writer
56485
+ */
56486
+ GetIdentityByNonUniquePublicKeyHashResponseV1.encodeDelimited = function encodeDelimited(message, writer) {
56487
+ return this.encode(message, writer).ldelim();
56488
+ };
56489
+
56490
+ /**
56491
+ * Decodes a GetIdentityByNonUniquePublicKeyHashResponseV1 message from the specified reader or buffer.
56492
+ * @function decode
56493
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56494
+ * @static
56495
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56496
+ * @param {number} [length] Message length if known beforehand
56497
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1} GetIdentityByNonUniquePublicKeyHashResponseV1
56498
+ * @throws {Error} If the payload is not a reader or valid buffer
56499
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56500
+ */
56501
+ GetIdentityByNonUniquePublicKeyHashResponseV1.decode = function decode(reader, length) {
56502
+ if (!(reader instanceof $Reader))
56503
+ reader = $Reader.create(reader);
56504
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1();
56505
+ while (reader.pos < end) {
56506
+ var tag = reader.uint32();
56507
+ switch (tag >>> 3) {
56508
+ case 1:
56509
+ message.identity = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse.decode(reader, reader.uint32());
56510
+ break;
56511
+ case 2:
56512
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
56513
+ break;
56514
+ case 3:
56515
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
56516
+ break;
56517
+ default:
56518
+ reader.skipType(tag & 7);
56519
+ break;
56520
+ }
56521
+ }
56522
+ return message;
56523
+ };
56524
+
56525
+ /**
56526
+ * Decodes a GetIdentityByNonUniquePublicKeyHashResponseV1 message from the specified reader or buffer, length delimited.
56527
+ * @function decodeDelimited
56528
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56529
+ * @static
56530
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56531
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1} GetIdentityByNonUniquePublicKeyHashResponseV1
56532
+ * @throws {Error} If the payload is not a reader or valid buffer
56533
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56534
+ */
56535
+ GetIdentityByNonUniquePublicKeyHashResponseV1.decodeDelimited = function decodeDelimited(reader) {
56536
+ if (!(reader instanceof $Reader))
56537
+ reader = new $Reader(reader);
56538
+ return this.decode(reader, reader.uint32());
56539
+ };
56540
+
56541
+ /**
56542
+ * Verifies a GetIdentityByNonUniquePublicKeyHashResponseV1 message.
56543
+ * @function verify
56544
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56545
+ * @static
56546
+ * @param {Object.<string,*>} message Plain object to verify
56547
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56548
+ */
56549
+ GetIdentityByNonUniquePublicKeyHashResponseV1.verify = function verify(message) {
56550
+ if (typeof message !== "object" || message === null)
56551
+ return "object expected";
56552
+ var properties = {};
56553
+ if (message.identity != null && message.hasOwnProperty("identity")) {
56554
+ properties.result = 1;
56555
+ {
56556
+ var error = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse.verify(message.identity);
56557
+ if (error)
56558
+ return "identity." + error;
56559
+ }
56560
+ }
56561
+ if (message.proof != null && message.hasOwnProperty("proof")) {
56562
+ if (properties.result === 1)
56563
+ return "result: multiple values";
56564
+ properties.result = 1;
56565
+ {
56566
+ var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
56567
+ if (error)
56568
+ return "proof." + error;
56569
+ }
56570
+ }
56571
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
56572
+ var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
56573
+ if (error)
56574
+ return "metadata." + error;
56575
+ }
56576
+ return null;
56577
+ };
56578
+
56579
+ /**
56580
+ * Creates a GetIdentityByNonUniquePublicKeyHashResponseV1 message from a plain object. Also converts values to their respective internal types.
56581
+ * @function fromObject
56582
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56583
+ * @static
56584
+ * @param {Object.<string,*>} object Plain object
56585
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1} GetIdentityByNonUniquePublicKeyHashResponseV1
56586
+ */
56587
+ GetIdentityByNonUniquePublicKeyHashResponseV1.fromObject = function fromObject(object) {
56588
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1)
56589
+ return object;
56590
+ var message = new $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1();
56591
+ if (object.identity != null) {
56592
+ if (typeof object.identity !== "object")
56593
+ throw TypeError(".org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.identity: object expected");
56594
+ message.identity = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse.fromObject(object.identity);
56595
+ }
56596
+ if (object.proof != null) {
56597
+ if (typeof object.proof !== "object")
56598
+ throw TypeError(".org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.proof: object expected");
56599
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
56600
+ }
56601
+ if (object.metadata != null) {
56602
+ if (typeof object.metadata !== "object")
56603
+ throw TypeError(".org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.metadata: object expected");
56604
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
56605
+ }
56606
+ return message;
56607
+ };
56608
+
56609
+ /**
56610
+ * Creates a plain object from a GetIdentityByNonUniquePublicKeyHashResponseV1 message. Also converts values to other types if specified.
56611
+ * @function toObject
56612
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56613
+ * @static
56614
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1} message GetIdentityByNonUniquePublicKeyHashResponseV1
56615
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56616
+ * @returns {Object.<string,*>} Plain object
56617
+ */
56618
+ GetIdentityByNonUniquePublicKeyHashResponseV1.toObject = function toObject(message, options) {
56619
+ if (!options)
56620
+ options = {};
56621
+ var object = {};
56622
+ if (options.defaults)
56623
+ object.metadata = null;
56624
+ if (message.identity != null && message.hasOwnProperty("identity")) {
56625
+ object.identity = $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse.toObject(message.identity, options);
56626
+ if (options.oneofs)
56627
+ object.result = "identity";
56628
+ }
56629
+ if (message.proof != null && message.hasOwnProperty("proof")) {
56630
+ object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
56631
+ if (options.oneofs)
56632
+ object.result = "proof";
56633
+ }
56634
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
56635
+ object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
56636
+ return object;
56637
+ };
56638
+
56639
+ /**
56640
+ * Converts this GetIdentityByNonUniquePublicKeyHashResponseV1 to JSON.
56641
+ * @function toJSON
56642
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56643
+ * @instance
56644
+ * @returns {Object.<string,*>} JSON object
56645
+ */
56646
+ GetIdentityByNonUniquePublicKeyHashResponseV1.prototype.toJSON = function toJSON() {
56647
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56648
+ };
56649
+
56650
+ GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse = (function() {
56651
+
56652
+ /**
56653
+ * Properties of an IdentityResponse.
56654
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56655
+ * @interface IIdentityResponse
56656
+ * @property {Uint8Array|null} [identity] IdentityResponse identity
56657
+ */
56658
+
56659
+ /**
56660
+ * Constructs a new IdentityResponse.
56661
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1
56662
+ * @classdesc Represents an IdentityResponse.
56663
+ * @implements IIdentityResponse
56664
+ * @constructor
56665
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IIdentityResponse=} [properties] Properties to set
56666
+ */
56667
+ function IdentityResponse(properties) {
56668
+ if (properties)
56669
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56670
+ if (properties[keys[i]] != null)
56671
+ this[keys[i]] = properties[keys[i]];
56672
+ }
56673
+
56674
+ /**
56675
+ * IdentityResponse identity.
56676
+ * @member {Uint8Array} identity
56677
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
56678
+ * @instance
56679
+ */
56680
+ IdentityResponse.prototype.identity = $util.newBuffer([]);
56681
+
56682
+ /**
56683
+ * Creates a new IdentityResponse instance using the specified properties.
56684
+ * @function create
56685
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
56686
+ * @static
56687
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IIdentityResponse=} [properties] Properties to set
56688
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse} IdentityResponse instance
56689
+ */
56690
+ IdentityResponse.create = function create(properties) {
56691
+ return new IdentityResponse(properties);
56692
+ };
56693
+
56694
+ /**
56695
+ * Encodes the specified IdentityResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse.verify|verify} messages.
56696
+ * @function encode
56697
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
56698
+ * @static
56699
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IIdentityResponse} message IdentityResponse message or plain object to encode
56700
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56701
+ * @returns {$protobuf.Writer} Writer
56702
+ */
56703
+ IdentityResponse.encode = function encode(message, writer) {
56704
+ if (!writer)
56705
+ writer = $Writer.create();
56706
+ if (message.identity != null && Object.hasOwnProperty.call(message, "identity"))
56707
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.identity);
56708
+ return writer;
56709
+ };
56710
+
56711
+ /**
56712
+ * Encodes the specified IdentityResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse.verify|verify} messages.
56713
+ * @function encodeDelimited
56714
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
56715
+ * @static
56716
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IIdentityResponse} message IdentityResponse message or plain object to encode
56717
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56718
+ * @returns {$protobuf.Writer} Writer
56719
+ */
56720
+ IdentityResponse.encodeDelimited = function encodeDelimited(message, writer) {
56721
+ return this.encode(message, writer).ldelim();
56722
+ };
56723
+
56724
+ /**
56725
+ * Decodes an IdentityResponse message from the specified reader or buffer.
56726
+ * @function decode
56727
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
56728
+ * @static
56729
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56730
+ * @param {number} [length] Message length if known beforehand
56731
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse} IdentityResponse
56732
+ * @throws {Error} If the payload is not a reader or valid buffer
56733
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56734
+ */
56735
+ IdentityResponse.decode = function decode(reader, length) {
56736
+ if (!(reader instanceof $Reader))
56737
+ reader = $Reader.create(reader);
56738
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse();
56739
+ while (reader.pos < end) {
56740
+ var tag = reader.uint32();
56741
+ switch (tag >>> 3) {
56742
+ case 1:
56743
+ message.identity = reader.bytes();
56744
+ break;
56745
+ default:
56746
+ reader.skipType(tag & 7);
56747
+ break;
56748
+ }
56749
+ }
56750
+ return message;
56751
+ };
56752
+
56753
+ /**
56754
+ * Decodes an IdentityResponse message from the specified reader or buffer, length delimited.
56755
+ * @function decodeDelimited
56756
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
56757
+ * @static
56758
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56759
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse} IdentityResponse
56760
+ * @throws {Error} If the payload is not a reader or valid buffer
56761
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56762
+ */
56763
+ IdentityResponse.decodeDelimited = function decodeDelimited(reader) {
56764
+ if (!(reader instanceof $Reader))
56765
+ reader = new $Reader(reader);
56766
+ return this.decode(reader, reader.uint32());
56767
+ };
56768
+
56769
+ /**
56770
+ * Verifies an IdentityResponse message.
56771
+ * @function verify
56772
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
56773
+ * @static
56774
+ * @param {Object.<string,*>} message Plain object to verify
56775
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56776
+ */
56777
+ IdentityResponse.verify = function verify(message) {
56778
+ if (typeof message !== "object" || message === null)
56779
+ return "object expected";
56780
+ if (message.identity != null && message.hasOwnProperty("identity"))
56781
+ if (!(message.identity && typeof message.identity.length === "number" || $util.isString(message.identity)))
56782
+ return "identity: buffer expected";
56783
+ return null;
56784
+ };
56785
+
56786
+ /**
56787
+ * Creates an IdentityResponse message from a plain object. Also converts values to their respective internal types.
56788
+ * @function fromObject
56789
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
56790
+ * @static
56791
+ * @param {Object.<string,*>} object Plain object
56792
+ * @returns {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse} IdentityResponse
56793
+ */
56794
+ IdentityResponse.fromObject = function fromObject(object) {
56795
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse)
56796
+ return object;
56797
+ var message = new $root.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse();
56798
+ if (object.identity != null)
56799
+ if (typeof object.identity === "string")
56800
+ $util.base64.decode(object.identity, message.identity = $util.newBuffer($util.base64.length(object.identity)), 0);
56801
+ else if (object.identity.length >= 0)
56802
+ message.identity = object.identity;
56803
+ return message;
56804
+ };
56805
+
56806
+ /**
56807
+ * Creates a plain object from an IdentityResponse message. Also converts values to other types if specified.
56808
+ * @function toObject
56809
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
56810
+ * @static
56811
+ * @param {org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse} message IdentityResponse
56812
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56813
+ * @returns {Object.<string,*>} Plain object
56814
+ */
56815
+ IdentityResponse.toObject = function toObject(message, options) {
56816
+ if (!options)
56817
+ options = {};
56818
+ var object = {};
56819
+ if (options.defaults)
56820
+ if (options.bytes === String)
56821
+ object.identity = "";
56822
+ else {
56823
+ object.identity = [];
56824
+ if (options.bytes !== Array)
56825
+ object.identity = $util.newBuffer(object.identity);
56826
+ }
56827
+ if (message.identity != null && message.hasOwnProperty("identity"))
56828
+ object.identity = options.bytes === String ? $util.base64.encode(message.identity, 0, message.identity.length) : options.bytes === Array ? Array.prototype.slice.call(message.identity) : message.identity;
56829
+ return object;
56830
+ };
56831
+
56832
+ /**
56833
+ * Converts this IdentityResponse to JSON.
56834
+ * @function toJSON
56835
+ * @memberof org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV1.IdentityResponse
56836
+ * @instance
56837
+ * @returns {Object.<string,*>} JSON object
56838
+ */
56839
+ IdentityResponse.prototype.toJSON = function toJSON() {
56840
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56841
+ };
56842
+
56843
+ return IdentityResponse;
56844
+ })();
56845
+
56846
+ return GetIdentityByNonUniquePublicKeyHashResponseV1;
56847
+ })();
56848
+
55838
56849
  return GetIdentityByNonUniquePublicKeyHashResponse;
55839
56850
  })();
55840
56851