@dashevo/wasm-dpp 0.25.0-dev.22 → 0.25.0-dev.24

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.
@@ -282,26 +282,6 @@ function __wbg_adapter_56(arg0, arg1, arg2) {
282
282
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6dc4e27bc346e525(arg0, arg1, addHeapObject(arg2));
283
283
  }
284
284
 
285
- let stack_pointer = 128;
286
-
287
- function addBorrowedObject(obj) {
288
- if (stack_pointer == 1) throw new Error('out of js stack');
289
- heap[--stack_pointer] = obj;
290
- return stack_pointer;
291
- }
292
-
293
- function passArray8ToWasm0(arg, malloc) {
294
- const ptr = malloc(arg.length * 1) >>> 0;
295
- getUint8Memory0().set(arg, ptr / 1);
296
- WASM_VECTOR_LEN = arg.length;
297
- return ptr;
298
- }
299
-
300
- function getArrayU8FromWasm0(ptr, len) {
301
- ptr = ptr >>> 0;
302
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
303
- }
304
-
305
285
  let cachedUint32Memory0 = null;
306
286
 
307
287
  function getUint32Memory0() {
@@ -333,6 +313,26 @@ function _assertClass(instance, klass) {
333
313
  return instance.ptr;
334
314
  }
335
315
 
316
+ let stack_pointer = 128;
317
+
318
+ function addBorrowedObject(obj) {
319
+ if (stack_pointer == 1) throw new Error('out of js stack');
320
+ heap[--stack_pointer] = obj;
321
+ return stack_pointer;
322
+ }
323
+
324
+ function passArray8ToWasm0(arg, malloc) {
325
+ const ptr = malloc(arg.length * 1) >>> 0;
326
+ getUint8Memory0().set(arg, ptr / 1);
327
+ WASM_VECTOR_LEN = arg.length;
328
+ return ptr;
329
+ }
330
+
331
+ function getArrayU8FromWasm0(ptr, len) {
332
+ ptr = ptr >>> 0;
333
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
334
+ }
335
+
336
336
  function passArrayJsValueToWasm0(array, malloc) {
337
337
  const ptr = malloc(array.length * 4) >>> 0;
338
338
  const mem = getUint32Memory0();
@@ -371,6 +371,15 @@ function deserializeConsensusError(bytes) {
371
371
  }
372
372
  }
373
373
  /**
374
+ * @returns {number}
375
+ */
376
+
377
+
378
+ function getLatestProtocolVersion() {
379
+ const ret = wasm.getLatestProtocolVersion();
380
+ return ret >>> 0;
381
+ }
382
+ /**
374
383
  * @param {any} raw_parameters
375
384
  * @returns {any}
376
385
  */
@@ -395,15 +404,6 @@ function createAssetLockProofInstance(raw_parameters) {
395
404
  }
396
405
  }
397
406
  /**
398
- * @returns {number}
399
- */
400
-
401
-
402
- function getLatestProtocolVersion() {
403
- const ret = wasm.getLatestProtocolVersion();
404
- return ret >>> 0;
405
- }
406
- /**
407
407
  * @param {any} contract_id
408
408
  * @param {any} owner_id
409
409
  * @param {string} document_type
@@ -460,20 +460,6 @@ function __wbg_adapter_1188(arg0, arg1, arg2, arg3) {
460
460
  */
461
461
 
462
462
 
463
- const KeySecurityLevel = Object.freeze({
464
- MASTER: 0,
465
- "0": "MASTER",
466
- CRITICAL: 1,
467
- "1": "CRITICAL",
468
- HIGH: 2,
469
- "2": "HIGH",
470
- MEDIUM: 3,
471
- "3": "MEDIUM"
472
- });
473
- /**
474
- */
475
-
476
- exports.KeySecurityLevel = KeySecurityLevel;
477
463
  const KeyPurpose = Object.freeze({
478
464
  /**
479
465
  * at least one authentication key must be registered for all security levels
@@ -515,6 +501,20 @@ const KeyPurpose = Object.freeze({
515
501
  */
516
502
 
517
503
  exports.KeyPurpose = KeyPurpose;
504
+ const KeySecurityLevel = Object.freeze({
505
+ MASTER: 0,
506
+ "0": "MASTER",
507
+ CRITICAL: 1,
508
+ "1": "CRITICAL",
509
+ HIGH: 2,
510
+ "2": "HIGH",
511
+ MEDIUM: 3,
512
+ "3": "MEDIUM"
513
+ });
514
+ /**
515
+ */
516
+
517
+ exports.KeySecurityLevel = KeySecurityLevel;
518
518
  const KeyType = Object.freeze({
519
519
  ECDSA_SECP256K1: 0,
520
520
  "0": "ECDSA_SECP256K1",
@@ -12177,7 +12177,7 @@ class InvalidIdentityError {
12177
12177
  try {
12178
12178
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
12179
12179
 
12180
- wasm.invaliddatacontracterror_getErrors(retptr, this.__wbg_ptr);
12180
+ wasm.invalididentityerror_getErrors(retptr, this.__wbg_ptr);
12181
12181
  var r0 = getInt32Memory0()[retptr / 4 + 0];
12182
12182
  var r1 = getInt32Memory0()[retptr / 4 + 1];
12183
12183
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
@@ -12195,7 +12195,7 @@ class InvalidIdentityError {
12195
12195
 
12196
12196
 
12197
12197
  getRawIdentity() {
12198
- const ret = wasm.invaliddatacontracterror_getRawDataContract(this.__wbg_ptr);
12198
+ const ret = wasm.invaliddocumenterror_getRawDocument(this.__wbg_ptr);
12199
12199
  return takeObject(ret);
12200
12200
  }
12201
12201
 
@@ -15576,7 +15576,7 @@ class TryingToDeleteImmutableDocumentError {
15576
15576
 
15577
15577
  var ptr0 = document.__destroy_into_raw();
15578
15578
 
15579
- const ret = wasm.tryingtodeleteimmutabledocumenterror_new(ptr0);
15579
+ const ret = wasm.invalidinitialrevisionerror_new(ptr0);
15580
15580
  return TryingToDeleteImmutableDocumentError.__wrap(ret);
15581
15581
  }
15582
15582
 
@@ -16260,37 +16260,48 @@ function __wbg_get_imports() {
16260
16260
  takeObject(arg0);
16261
16261
  };
16262
16262
 
16263
- imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
16264
- const ret = getStringFromWasm0(arg0, arg1);
16263
+ imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
16264
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
16265
16265
  return addHeapObject(ret);
16266
16266
  };
16267
16267
 
16268
- imports.wbg.__wbg_from_1240938ee473cab4 = function (arg0, arg1) {
16269
- const ret = Buffer.from(getArrayU8FromWasm0(arg0, arg1));
16268
+ imports.wbg.__wbg_balanceisnotenougherror_new = function (arg0) {
16269
+ const ret = BalanceIsNotEnoughError.__wrap(arg0);
16270
+
16270
16271
  return addHeapObject(ret);
16271
16272
  };
16272
16273
 
16273
- imports.wbg.__wbg_new_416ef0cb8856b89a = function (arg0) {
16274
- const ret = new _Identifier.default(takeObject(arg0));
16274
+ imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
16275
+ const ret = getStringFromWasm0(arg0, arg1);
16275
16276
  return addHeapObject(ret);
16276
16277
  };
16277
16278
 
16278
- imports.wbg.__wbindgen_is_falsy = function (arg0) {
16279
- const ret = !getObject(arg0);
16280
- return ret;
16279
+ imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
16280
+ const obj = getObject(arg1);
16281
+ const ret = typeof obj === 'string' ? obj : undefined;
16282
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
16283
+ var len1 = WASM_VECTOR_LEN;
16284
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
16285
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16281
16286
  };
16282
16287
 
16283
- imports.wbg.__wbg_from_2bc38367b042f514 = function (arg0, arg1) {
16284
- var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
16288
+ imports.wbg.__wbindgen_is_function = function (arg0) {
16289
+ const ret = typeof getObject(arg0) === 'function';
16290
+ return ret;
16291
+ };
16285
16292
 
16286
- wasm.__wbindgen_free(arg0, arg1 * 1);
16293
+ imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
16294
+ const ret = getObject(arg0);
16295
+ return addHeapObject(ret);
16296
+ };
16287
16297
 
16288
- const ret = Buffer.from(v0);
16298
+ imports.wbg.__wbg_from_1240938ee473cab4 = function (arg0, arg1) {
16299
+ const ret = Buffer.from(getArrayU8FromWasm0(arg0, arg1));
16289
16300
  return addHeapObject(ret);
16290
16301
  };
16291
16302
 
16292
- imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
16293
- const ret = getObject(arg0);
16303
+ imports.wbg.__wbg_new_416ef0cb8856b89a = function (arg0) {
16304
+ const ret = new _Identifier.default(takeObject(arg0));
16294
16305
  return addHeapObject(ret);
16295
16306
  };
16296
16307
 
@@ -16302,11 +16313,25 @@ function __wbg_get_imports() {
16302
16313
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16303
16314
  };
16304
16315
 
16316
+ imports.wbg.__wbg_from_2bc38367b042f514 = function (arg0, arg1) {
16317
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
16318
+
16319
+ wasm.__wbindgen_free(arg0, arg1 * 1);
16320
+
16321
+ const ret = Buffer.from(v0);
16322
+ return addHeapObject(ret);
16323
+ };
16324
+
16305
16325
  imports.wbg.__wbindgen_number_new = function (arg0) {
16306
16326
  const ret = arg0;
16307
16327
  return addHeapObject(ret);
16308
16328
  };
16309
16329
 
16330
+ imports.wbg.__wbindgen_is_falsy = function (arg0) {
16331
+ const ret = !getObject(arg0);
16332
+ return ret;
16333
+ };
16334
+
16310
16335
  imports.wbg.__wbindgen_is_undefined = function (arg0) {
16311
16336
  const ret = getObject(arg0) === undefined;
16312
16337
  return ret;
@@ -16322,15 +16347,6 @@ function __wbg_get_imports() {
16322
16347
  (0, _lodash.set)(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3));
16323
16348
  };
16324
16349
 
16325
- imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
16326
- const obj = getObject(arg1);
16327
- const ret = typeof obj === 'string' ? obj : undefined;
16328
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
16329
- var len1 = WASM_VECTOR_LEN;
16330
- getInt32Memory0()[arg0 / 4 + 1] = len1;
16331
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16332
- };
16333
-
16334
16350
  imports.wbg.__wbg_instantassetlockproof_new = function (arg0) {
16335
16351
  const ret = InstantAssetLockProof.__wrap(arg0);
16336
16352
 
@@ -16343,8 +16359,14 @@ function __wbg_get_imports() {
16343
16359
  return addHeapObject(ret);
16344
16360
  };
16345
16361
 
16346
- imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
16347
- const ret = new Error(getStringFromWasm0(arg0, arg1));
16362
+ imports.wbg.__wbindgen_is_null = function (arg0) {
16363
+ const ret = getObject(arg0) === null;
16364
+ return ret;
16365
+ };
16366
+
16367
+ imports.wbg.__wbg_invalidactionnameerror_new = function (arg0) {
16368
+ const ret = InvalidActionNameError.__wrap(arg0);
16369
+
16348
16370
  return addHeapObject(ret);
16349
16371
  };
16350
16372
 
@@ -16360,15 +16382,46 @@ function __wbg_get_imports() {
16360
16382
  return addHeapObject(ret);
16361
16383
  };
16362
16384
 
16363
- imports.wbg.__wbg_balanceisnotenougherror_new = function (arg0) {
16364
- const ret = BalanceIsNotEnoughError.__wrap(arg0);
16385
+ imports.wbg.__wbg_datacontractupdatetransition_new = function (arg0) {
16386
+ const ret = DataContractUpdateTransition.__wrap(arg0);
16365
16387
 
16366
16388
  return addHeapObject(ret);
16367
16389
  };
16368
16390
 
16369
- imports.wbg.__wbindgen_is_function = function (arg0) {
16370
- const ret = typeof getObject(arg0) === 'function';
16371
- return ret;
16391
+ imports.wbg.__wbg_documentsbatchtransition_new = function (arg0) {
16392
+ const ret = DocumentsBatchTransition.__wrap(arg0);
16393
+
16394
+ return addHeapObject(ret);
16395
+ };
16396
+
16397
+ imports.wbg.__wbg_identitycreatetransition_new = function (arg0) {
16398
+ const ret = IdentityCreateTransition.__wrap(arg0);
16399
+
16400
+ return addHeapObject(ret);
16401
+ };
16402
+
16403
+ imports.wbg.__wbg_identitytopuptransition_new = function (arg0) {
16404
+ const ret = IdentityTopUpTransition.__wrap(arg0);
16405
+
16406
+ return addHeapObject(ret);
16407
+ };
16408
+
16409
+ imports.wbg.__wbg_identityupdatetransition_new = function (arg0) {
16410
+ const ret = IdentityUpdateTransition.__wrap(arg0);
16411
+
16412
+ return addHeapObject(ret);
16413
+ };
16414
+
16415
+ imports.wbg.__wbg_identitycredittransfertransition_new = function (arg0) {
16416
+ const ret = IdentityCreditTransferTransition.__wrap(arg0);
16417
+
16418
+ return addHeapObject(ret);
16419
+ };
16420
+
16421
+ imports.wbg.__wbg_invalidstatetransitionerror_new = function (arg0) {
16422
+ const ret = InvalidStateTransitionError.__wrap(arg0);
16423
+
16424
+ return addHeapObject(ret);
16372
16425
  };
16373
16426
 
16374
16427
  imports.wbg.__wbindgen_boolean_get = function (arg0) {
@@ -16409,73 +16462,20 @@ function __wbg_get_imports() {
16409
16462
  return ret;
16410
16463
  };
16411
16464
 
16412
- imports.wbg.__wbg_invalididentityerror_new = function (arg0) {
16413
- const ret = InvalidIdentityError.__wrap(arg0);
16414
-
16415
- return addHeapObject(ret);
16416
- };
16417
-
16418
16465
  imports.wbg.__wbg_documenttransition_new = function (arg0) {
16419
16466
  const ret = DocumentTransition.__wrap(arg0);
16420
16467
 
16421
16468
  return addHeapObject(ret);
16422
16469
  };
16423
16470
 
16424
- imports.wbg.__wbindgen_is_null = function (arg0) {
16425
- const ret = getObject(arg0) === null;
16426
- return ret;
16427
- };
16428
-
16429
- imports.wbg.__wbg_unknownassetlockprooftypeerror_new = function (arg0) {
16430
- const ret = UnknownAssetLockProofTypeError.__wrap(arg0);
16431
-
16432
- return addHeapObject(ret);
16433
- };
16434
-
16435
- imports.wbg.__wbg_datacontractupdatetransition_new = function (arg0) {
16436
- const ret = DataContractUpdateTransition.__wrap(arg0);
16437
-
16438
- return addHeapObject(ret);
16439
- };
16440
-
16441
- imports.wbg.__wbg_documentsbatchtransition_new = function (arg0) {
16442
- const ret = DocumentsBatchTransition.__wrap(arg0);
16443
-
16444
- return addHeapObject(ret);
16445
- };
16446
-
16447
- imports.wbg.__wbg_identitycreatetransition_new = function (arg0) {
16448
- const ret = IdentityCreateTransition.__wrap(arg0);
16449
-
16450
- return addHeapObject(ret);
16451
- };
16452
-
16453
- imports.wbg.__wbg_identitytopuptransition_new = function (arg0) {
16454
- const ret = IdentityTopUpTransition.__wrap(arg0);
16455
-
16456
- return addHeapObject(ret);
16457
- };
16458
-
16459
- imports.wbg.__wbg_identityupdatetransition_new = function (arg0) {
16460
- const ret = IdentityUpdateTransition.__wrap(arg0);
16461
-
16462
- return addHeapObject(ret);
16463
- };
16464
-
16465
- imports.wbg.__wbg_identitycredittransfertransition_new = function (arg0) {
16466
- const ret = IdentityCreditTransferTransition.__wrap(arg0);
16467
-
16468
- return addHeapObject(ret);
16469
- };
16470
-
16471
- imports.wbg.__wbg_invalidstatetransitionerror_new = function (arg0) {
16472
- const ret = InvalidStateTransitionError.__wrap(arg0);
16471
+ imports.wbg.__wbg_invalididentityerror_new = function (arg0) {
16472
+ const ret = InvalidIdentityError.__wrap(arg0);
16473
16473
 
16474
16474
  return addHeapObject(ret);
16475
16475
  };
16476
16476
 
16477
- imports.wbg.__wbg_invalidactionnameerror_new = function (arg0) {
16478
- const ret = InvalidActionNameError.__wrap(arg0);
16477
+ imports.wbg.__wbg_unknownassetlockprooftypeerror_new = function (arg0) {
16478
+ const ret = UnknownAssetLockProofTypeError.__wrap(arg0);
16479
16479
 
16480
16480
  return addHeapObject(ret);
16481
16481
  };
@@ -16510,116 +16510,62 @@ function __wbg_get_imports() {
16510
16510
  return addHeapObject(ret);
16511
16511
  };
16512
16512
 
16513
- imports.wbg.__wbg_generate_1f42caa3e9e2b460 = function () {
16514
- return handleError(function (arg0) {
16515
- const ret = getObject(arg0).generate();
16516
- return addHeapObject(ret);
16517
- }, arguments);
16518
- };
16519
-
16520
- imports.wbg.__wbg_identitypublickey_new = function (arg0) {
16521
- const ret = IdentityPublicKey.__wrap(arg0);
16522
-
16523
- return addHeapObject(ret);
16524
- };
16525
-
16526
- imports.wbg.__wbg_buffer_a2f9733fd9333302 = function (arg0) {
16527
- const ret = getObject(arg0).buffer;
16528
- return addHeapObject(ret);
16529
- };
16530
-
16531
- imports.wbg.__wbg_byteOffset_82ed8366a41aeb88 = function (arg0) {
16532
- const ret = getObject(arg0).byteOffset;
16533
- return ret;
16534
- };
16535
-
16536
- imports.wbg.__wbg_length_ef51e3e9b7ed1303 = function (arg0) {
16537
- const ret = getObject(arg0).length;
16538
- return ret;
16539
- };
16540
-
16541
- imports.wbg.__wbg_identitypublickeywithwitness_new = function (arg0) {
16542
- const ret = IdentityPublicKeyWithWitness.__wrap(arg0);
16513
+ imports.wbg.__wbg_documentalreadyexistserror_new = function (arg0) {
16514
+ const ret = DocumentAlreadyExistsError.__wrap(arg0);
16543
16515
 
16544
16516
  return addHeapObject(ret);
16545
16517
  };
16546
16518
 
16547
- imports.wbg.__wbg_document_new = function (arg0) {
16548
- const ret = Document.__wrap(arg0);
16519
+ imports.wbg.__wbg_documentnotprovidederror_new = function (arg0) {
16520
+ const ret = DocumentNotProvidedError.__wrap(arg0);
16549
16521
 
16550
16522
  return addHeapObject(ret);
16551
16523
  };
16552
16524
 
16553
- imports.wbg.__wbg_verifySignature_d834cbf4122363e7 = function () {
16554
- return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
16555
- const ret = getObject(arg0).verifySignature(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
16556
- return ret;
16557
- }, arguments);
16558
- };
16559
-
16560
- imports.wbg.__wbg_sign_2e214e5975b9bc30 = function () {
16561
- return handleError(function (arg0, arg1, arg2, arg3, arg4) {
16562
- const ret = getObject(arg0).sign(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4));
16563
- return addHeapObject(ret);
16564
- }, arguments);
16565
- };
16566
-
16567
- imports.wbg.__wbg_privateKeyToPublicKey_a8c7c0801893c959 = function () {
16568
- return handleError(function (arg0, arg1, arg2) {
16569
- const ret = getObject(arg0).privateKeyToPublicKey(getArrayU8FromWasm0(arg1, arg2));
16570
- return addHeapObject(ret);
16571
- }, arguments);
16572
- };
16573
-
16574
- imports.wbg.__wbindgen_is_string = function (arg0) {
16575
- const ret = typeof getObject(arg0) === 'string';
16576
- return ret;
16577
- };
16578
-
16579
- imports.wbg.__wbg_documentalreadyexistserror_new = function (arg0) {
16580
- const ret = DocumentAlreadyExistsError.__wrap(arg0);
16525
+ imports.wbg.__wbg_invalidactionerror_new = function (arg0) {
16526
+ const ret = InvalidActionError.__wrap(arg0);
16581
16527
 
16582
16528
  return addHeapObject(ret);
16583
16529
  };
16584
16530
 
16585
- imports.wbg.__wbg_documentnorevisionerror_new = function (arg0) {
16586
- const ret = DocumentNoRevisionError.__wrap(arg0);
16531
+ imports.wbg.__wbg_invaliddocumentactionerror_new = function (arg0) {
16532
+ const ret = InvalidDocumentActionError.__wrap(arg0);
16587
16533
 
16588
16534
  return addHeapObject(ret);
16589
16535
  };
16590
16536
 
16591
- imports.wbg.__wbg_documentnotprovidederror_new = function (arg0) {
16592
- const ret = DocumentNotProvidedError.__wrap(arg0);
16537
+ imports.wbg.__wbg_invalidinitialrevisionerror_new = function (arg0) {
16538
+ const ret = InvalidInitialRevisionError.__wrap(arg0);
16593
16539
 
16594
16540
  return addHeapObject(ret);
16595
16541
  };
16596
16542
 
16597
- imports.wbg.__wbg_invalidactionerror_new = function (arg0) {
16598
- const ret = InvalidActionError.__wrap(arg0);
16543
+ imports.wbg.__wbg_revisionabsenterror_new = function (arg0) {
16544
+ const ret = RevisionAbsentError.__wrap(arg0);
16599
16545
 
16600
16546
  return addHeapObject(ret);
16601
16547
  };
16602
16548
 
16603
- imports.wbg.__wbg_invaliddocumentactionerror_new = function (arg0) {
16604
- const ret = InvalidDocumentActionError.__wrap(arg0);
16549
+ imports.wbg.__wbg_tryingtoreplaceimmutabledocumenterror_new = function (arg0) {
16550
+ const ret = TryingToReplaceImmutableDocumentError.__wrap(arg0);
16605
16551
 
16606
16552
  return addHeapObject(ret);
16607
16553
  };
16608
16554
 
16609
- imports.wbg.__wbg_invaliddocumenterror_new = function (arg0) {
16610
- const ret = InvalidDocumentError.__wrap(arg0);
16555
+ imports.wbg.__wbg_tryingtodeleteimmutabledocumenterror_new = function (arg0) {
16556
+ const ret = TryingToDeleteImmutableDocumentError.__wrap(arg0);
16611
16557
 
16612
16558
  return addHeapObject(ret);
16613
16559
  };
16614
16560
 
16615
- imports.wbg.__wbg_invalidinitialrevisionerror_new = function (arg0) {
16616
- const ret = InvalidInitialRevisionError.__wrap(arg0);
16561
+ imports.wbg.__wbg_mismatchowneridserror_new = function (arg0) {
16562
+ const ret = MismatchOwnerIdsError.__wrap(arg0);
16617
16563
 
16618
16564
  return addHeapObject(ret);
16619
16565
  };
16620
16566
 
16621
- imports.wbg.__wbg_mismatchowneridserror_new = function (arg0) {
16622
- const ret = MismatchOwnerIdsError.__wrap(arg0);
16567
+ imports.wbg.__wbg_documentnorevisionerror_new = function (arg0) {
16568
+ const ret = DocumentNoRevisionError.__wrap(arg0);
16623
16569
 
16624
16570
  return addHeapObject(ret);
16625
16571
  };
@@ -16630,20 +16576,25 @@ function __wbg_get_imports() {
16630
16576
  return addHeapObject(ret);
16631
16577
  };
16632
16578
 
16633
- imports.wbg.__wbg_revisionabsenterror_new = function (arg0) {
16634
- const ret = RevisionAbsentError.__wrap(arg0);
16579
+ imports.wbg.__wbg_invaliddocumenterror_new = function (arg0) {
16580
+ const ret = InvalidDocumentError.__wrap(arg0);
16635
16581
 
16636
16582
  return addHeapObject(ret);
16637
16583
  };
16638
16584
 
16639
- imports.wbg.__wbg_tryingtodeleteimmutabledocumenterror_new = function (arg0) {
16640
- const ret = TryingToDeleteImmutableDocumentError.__wrap(arg0);
16585
+ imports.wbg.__wbindgen_is_string = function (arg0) {
16586
+ const ret = typeof getObject(arg0) === 'string';
16587
+ return ret;
16588
+ };
16589
+
16590
+ imports.wbg.__wbg_identitypublickey_new = function (arg0) {
16591
+ const ret = IdentityPublicKey.__wrap(arg0);
16641
16592
 
16642
16593
  return addHeapObject(ret);
16643
16594
  };
16644
16595
 
16645
- imports.wbg.__wbg_tryingtoreplaceimmutabledocumenterror_new = function (arg0) {
16646
- const ret = TryingToReplaceImmutableDocumentError.__wrap(arg0);
16596
+ imports.wbg.__wbg_document_new = function (arg0) {
16597
+ const ret = Document.__wrap(arg0);
16647
16598
 
16648
16599
  return addHeapObject(ret);
16649
16600
  };
@@ -17218,6 +17169,55 @@ function __wbg_get_imports() {
17218
17169
  return addHeapObject(ret);
17219
17170
  };
17220
17171
 
17172
+ imports.wbg.__wbg_identitypublickeywithwitness_new = function (arg0) {
17173
+ const ret = IdentityPublicKeyWithWitness.__wrap(arg0);
17174
+
17175
+ return addHeapObject(ret);
17176
+ };
17177
+
17178
+ imports.wbg.__wbg_buffer_a2f9733fd9333302 = function (arg0) {
17179
+ const ret = getObject(arg0).buffer;
17180
+ return addHeapObject(ret);
17181
+ };
17182
+
17183
+ imports.wbg.__wbg_byteOffset_82ed8366a41aeb88 = function (arg0) {
17184
+ const ret = getObject(arg0).byteOffset;
17185
+ return ret;
17186
+ };
17187
+
17188
+ imports.wbg.__wbg_length_ef51e3e9b7ed1303 = function (arg0) {
17189
+ const ret = getObject(arg0).length;
17190
+ return ret;
17191
+ };
17192
+
17193
+ imports.wbg.__wbg_verifySignature_d834cbf4122363e7 = function () {
17194
+ return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
17195
+ const ret = getObject(arg0).verifySignature(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
17196
+ return ret;
17197
+ }, arguments);
17198
+ };
17199
+
17200
+ imports.wbg.__wbg_privateKeyToPublicKey_a8c7c0801893c959 = function () {
17201
+ return handleError(function (arg0, arg1, arg2) {
17202
+ const ret = getObject(arg0).privateKeyToPublicKey(getArrayU8FromWasm0(arg1, arg2));
17203
+ return addHeapObject(ret);
17204
+ }, arguments);
17205
+ };
17206
+
17207
+ imports.wbg.__wbg_sign_2e214e5975b9bc30 = function () {
17208
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
17209
+ const ret = getObject(arg0).sign(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4));
17210
+ return addHeapObject(ret);
17211
+ }, arguments);
17212
+ };
17213
+
17214
+ imports.wbg.__wbg_generate_1f42caa3e9e2b460 = function () {
17215
+ return handleError(function (arg0) {
17216
+ const ret = getObject(arg0).generate();
17217
+ return addHeapObject(ret);
17218
+ }, arguments);
17219
+ };
17220
+
17221
17221
  imports.wbg.__wbindgen_cb_drop = function (arg0) {
17222
17222
  const obj = takeObject(arg0).original;
17223
17223
 
@@ -17697,8 +17697,8 @@ function __wbg_get_imports() {
17697
17697
  return addHeapObject(ret);
17698
17698
  };
17699
17699
 
17700
- imports.wbg.__wbindgen_closure_wrapper2469 = function (arg0, arg1, arg2) {
17701
- const ret = makeMutClosure(arg0, arg1, 256, __wbg_adapter_56);
17700
+ imports.wbg.__wbindgen_closure_wrapper2465 = function (arg0, arg1, arg2) {
17701
+ const ret = makeMutClosure(arg0, arg1, 259, __wbg_adapter_56);
17702
17702
  return addHeapObject(ret);
17703
17703
  };
17704
17704