pshenmic-dpp 1.1.2-dev.1 → 1.1.2-dev.2
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.
|
@@ -1473,6 +1473,12 @@ export class IdentityPublicKeyInCreationWASM {
|
|
|
1473
1473
|
/** @ignore */
|
|
1474
1474
|
free(): void;
|
|
1475
1475
|
[Symbol.dispose](): void;
|
|
1476
|
+
/**
|
|
1477
|
+
* @param {PrivateKeyWASM} private_key
|
|
1478
|
+
* @param {any} js_network
|
|
1479
|
+
* @returns {boolean}
|
|
1480
|
+
*/
|
|
1481
|
+
validatePrivateKey(private_key: PrivateKeyWASM, js_network: any): boolean;
|
|
1476
1482
|
/** @returns {IdentityPublicKeyWASM} */
|
|
1477
1483
|
toIdentityPublicKey(): IdentityPublicKeyWASM;
|
|
1478
1484
|
/**
|
|
@@ -1530,6 +1536,12 @@ export class IdentityPublicKeyWASM {
|
|
|
1530
1536
|
* @returns {boolean}
|
|
1531
1537
|
*/
|
|
1532
1538
|
validatePrivateKey(js_private_key_bytes: Uint8Array, js_network: any): boolean;
|
|
1539
|
+
/**
|
|
1540
|
+
* @param {PrivateKeyWASM} private_key
|
|
1541
|
+
* @param {any} js_network
|
|
1542
|
+
* @returns {boolean}
|
|
1543
|
+
*/
|
|
1544
|
+
validatePrivateKeyBytes(private_key: PrivateKeyWASM, js_network: any): boolean;
|
|
1533
1545
|
/**
|
|
1534
1546
|
* @param {number} id
|
|
1535
1547
|
* @param {any} js_purpose
|
|
@@ -1544,13 +1556,13 @@ export class IdentityPublicKeyWASM {
|
|
|
1544
1556
|
constructor(id: number, js_purpose: any, js_security_level: any, js_key_type: any, read_only: boolean, binary_data: string, disabled_at: bigint | null | undefined, js_contract_bounds: any);
|
|
1545
1557
|
/** @returns {string} */
|
|
1546
1558
|
hex(): string;
|
|
1547
|
-
/** @returns {Uint8Array<ArrayBufferLike>} */
|
|
1548
|
-
bytes(): Uint8Array;
|
|
1549
1559
|
/**
|
|
1550
1560
|
* @param {string} hex
|
|
1551
1561
|
* @returns {IdentityPublicKeyWASM}
|
|
1552
1562
|
*/
|
|
1553
1563
|
static fromHex(hex: string): IdentityPublicKeyWASM;
|
|
1564
|
+
/** @returns {Uint8Array<ArrayBufferLike>} */
|
|
1565
|
+
bytes(): Uint8Array;
|
|
1554
1566
|
/** @returns {boolean} */
|
|
1555
1567
|
isMaster(): boolean;
|
|
1556
1568
|
/** @returns {string} */
|
|
@@ -1956,6 +1968,11 @@ export class PrivateKeyWASM {
|
|
|
1956
1968
|
getPublicKey(): PublicKeyWASM;
|
|
1957
1969
|
/** @returns {string} */
|
|
1958
1970
|
getPublicKeyHash(): string;
|
|
1971
|
+
/**
|
|
1972
|
+
* @param {Uint8Array<ArrayBufferLike>} data
|
|
1973
|
+
* @returns {Uint8Array<ArrayBufferLike>}
|
|
1974
|
+
*/
|
|
1975
|
+
sign(data: Uint8Array): Uint8Array;
|
|
1959
1976
|
/** @returns {string} */
|
|
1960
1977
|
hex(): string;
|
|
1961
1978
|
/** @returns {string} */
|
|
@@ -1973,6 +1990,11 @@ export class PrivateKeyWASM {
|
|
|
1973
1990
|
static fromWIF(wif: string): PrivateKeyWASM;
|
|
1974
1991
|
/** @returns {Uint8Array<ArrayBufferLike>} */
|
|
1975
1992
|
bytes(): Uint8Array;
|
|
1993
|
+
/**
|
|
1994
|
+
* @param {Uint8Array<ArrayBufferLike>} data_hash
|
|
1995
|
+
* @returns {Uint8Array<ArrayBufferLike>}
|
|
1996
|
+
*/
|
|
1997
|
+
signHash(data_hash: Uint8Array): Uint8Array;
|
|
1976
1998
|
static readonly __struct: string;
|
|
1977
1999
|
readonly __type: string;
|
|
1978
2000
|
}
|
|
@@ -3333,19 +3355,19 @@ export interface InitOutput {
|
|
|
3333
3355
|
readonly verifyTotalCreditsProof: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3334
3356
|
readonly verifyVotePollVoteStateProof: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
3335
3357
|
readonly __wbg_verifiedidentitynoncewasm_free: (a: number, b: number) => void;
|
|
3336
|
-
readonly __wbg_verifiedtotalcreditswasm_free: (a: number, b: number) => void;
|
|
3337
|
-
readonly __wbg_verifiedidentitycontractnoncewasm_free: (a: number, b: number) => void;
|
|
3338
3358
|
readonly __wbg_verifiedtokentotalsupplywasm_free: (a: number, b: number) => void;
|
|
3359
|
+
readonly __wbg_verifiedidentitycontractnoncewasm_free: (a: number, b: number) => void;
|
|
3360
|
+
readonly __wbg_verifiedtotalcreditswasm_free: (a: number, b: number) => void;
|
|
3339
3361
|
readonly __wbg_verifiedidentitybyuniquekeyhashwasm_free: (a: number, b: number) => void;
|
|
3340
3362
|
readonly __wbg_verifiedtokensbalancesforidentitywasm_free: (a: number, b: number) => void;
|
|
3341
3363
|
readonly verifiedtokensbalancesforidentitywasm_root_hash: (a: number) => number;
|
|
3342
3364
|
readonly verifiedtokensbalancesforidentitywasm_balances: (a: number) => number;
|
|
3343
|
-
readonly verifiedidentitynoncewasm_root_hash: (a: number) => number;
|
|
3344
|
-
readonly verifiedidentitynoncewasm_nonce: (a: number, b: number) => void;
|
|
3345
3365
|
readonly verifiedidentitybyuniquekeyhashwasm_root_hash: (a: number) => number;
|
|
3346
3366
|
readonly verifiedidentitybyuniquekeyhashwasm_identity: (a: number) => number;
|
|
3347
3367
|
readonly verifiedidentitycontractnoncewasm_root_hash: (a: number) => number;
|
|
3348
3368
|
readonly verifiedidentitycontractnoncewasm_contract_nonce: (a: number, b: number) => void;
|
|
3369
|
+
readonly verifiedidentitynoncewasm_root_hash: (a: number) => number;
|
|
3370
|
+
readonly verifiedidentitynoncewasm_nonce: (a: number, b: number) => void;
|
|
3349
3371
|
readonly __wbg_partialidentitywasm_free: (a: number, b: number) => void;
|
|
3350
3372
|
readonly partialidentitywasm_balance: (a: number, b: number) => void;
|
|
3351
3373
|
readonly partialidentitywasm_id: (a: number) => number;
|
|
@@ -3417,7 +3439,6 @@ export interface InitOutput {
|
|
|
3417
3439
|
readonly __wbg_identitycreatetransitionwasm_free: (a: number, b: number) => void;
|
|
3418
3440
|
readonly __wbg_identitycredittransferwasm_free: (a: number, b: number) => void;
|
|
3419
3441
|
readonly __wbg_identitycreditwithdrawaltransitionwasm_free: (a: number, b: number) => void;
|
|
3420
|
-
readonly __wbg_identitypublickeyincreationwasm_free: (a: number, b: number) => void;
|
|
3421
3442
|
readonly __wbg_identitytopuptransitionwasm_free: (a: number, b: number) => void;
|
|
3422
3443
|
readonly __wbg_identityupdatetransitionwasm_free: (a: number, b: number) => void;
|
|
3423
3444
|
readonly identitycreatetransitionwasm_bytes: (a: number, b: number) => void;
|
|
@@ -3499,27 +3520,6 @@ export interface InitOutput {
|
|
|
3499
3520
|
readonly identitycreditwithdrawaltransitionwasm_struct_name: (a: number) => void;
|
|
3500
3521
|
readonly identitycreditwithdrawaltransitionwasm_toStateTransition: (a: number) => number;
|
|
3501
3522
|
readonly identitycreditwithdrawaltransitionwasm_type_name: (a: number, b: number) => void;
|
|
3502
|
-
readonly identitypublickeyincreationwasm_getHash: (a: number, b: number) => void;
|
|
3503
|
-
readonly identitypublickeyincreationwasm_get_contract_bounds: (a: number) => number;
|
|
3504
|
-
readonly identitypublickeyincreationwasm_get_data: (a: number, b: number) => void;
|
|
3505
|
-
readonly identitypublickeyincreationwasm_get_key_id: (a: number) => number;
|
|
3506
|
-
readonly identitypublickeyincreationwasm_get_key_type: (a: number, b: number) => void;
|
|
3507
|
-
readonly identitypublickeyincreationwasm_get_purpose: (a: number, b: number) => void;
|
|
3508
|
-
readonly identitypublickeyincreationwasm_get_read_only: (a: number) => number;
|
|
3509
|
-
readonly identitypublickeyincreationwasm_get_security_level: (a: number, b: number) => void;
|
|
3510
|
-
readonly identitypublickeyincreationwasm_get_signature: (a: number, b: number) => void;
|
|
3511
|
-
readonly identitypublickeyincreationwasm_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
3512
|
-
readonly identitypublickeyincreationwasm_set_contract_bounds: (a: number, b: number, c: number) => void;
|
|
3513
|
-
readonly identitypublickeyincreationwasm_set_data: (a: number, b: number, c: number) => void;
|
|
3514
|
-
readonly identitypublickeyincreationwasm_set_key_id: (a: number, b: number) => void;
|
|
3515
|
-
readonly identitypublickeyincreationwasm_set_key_type: (a: number, b: number, c: number) => void;
|
|
3516
|
-
readonly identitypublickeyincreationwasm_set_purpose: (a: number, b: number, c: number) => void;
|
|
3517
|
-
readonly identitypublickeyincreationwasm_set_read_only: (a: number, b: number) => void;
|
|
3518
|
-
readonly identitypublickeyincreationwasm_set_security_level: (a: number, b: number, c: number) => void;
|
|
3519
|
-
readonly identitypublickeyincreationwasm_set_signature: (a: number, b: number, c: number) => void;
|
|
3520
|
-
readonly identitypublickeyincreationwasm_struct_name: (a: number) => void;
|
|
3521
|
-
readonly identitypublickeyincreationwasm_toIdentityPublicKey: (a: number, b: number) => void;
|
|
3522
|
-
readonly identitypublickeyincreationwasm_type_name: (a: number, b: number) => void;
|
|
3523
3523
|
readonly identitytopuptransitionwasm_base64: (a: number, b: number) => void;
|
|
3524
3524
|
readonly identitytopuptransitionwasm_bytes: (a: number, b: number) => void;
|
|
3525
3525
|
readonly identitytopuptransitionwasm_fromBase64: (a: number, b: number, c: number) => void;
|
|
@@ -4045,20 +4045,20 @@ export interface InitOutput {
|
|
|
4045
4045
|
readonly tokenunfreezetransitionwasm_new: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4046
4046
|
readonly tokenfreezetransitionwasm_new: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4047
4047
|
readonly documentupdatepricetransitionwasm_new: (a: number, b: number, c: bigint, d: bigint, e: number) => void;
|
|
4048
|
-
readonly __wbg_tokenfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
4049
4048
|
readonly __wbg_tokenemergencyactiontransitionwasm_free: (a: number, b: number) => void;
|
|
4050
|
-
readonly __wbg_tokenunfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
4051
|
-
readonly __wbg_documentdeletetransitionwasm_free: (a: number, b: number) => void;
|
|
4052
4049
|
readonly __wbg_documentupdatepricetransitionwasm_free: (a: number, b: number) => void;
|
|
4053
|
-
readonly
|
|
4054
|
-
readonly
|
|
4055
|
-
readonly
|
|
4050
|
+
readonly __wbg_documentdeletetransitionwasm_free: (a: number, b: number) => void;
|
|
4051
|
+
readonly __wbg_tokenfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
4052
|
+
readonly __wbg_tokenunfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
4056
4053
|
readonly documentupdatepricetransitionwasm_get_price: (a: number) => bigint;
|
|
4057
4054
|
readonly documentupdatepricetransitionwasm_get_base: (a: number) => number;
|
|
4058
|
-
readonly
|
|
4059
|
-
readonly
|
|
4060
|
-
readonly
|
|
4055
|
+
readonly tokenemergencyactiontransitionwasm_get_base: (a: number) => number;
|
|
4056
|
+
readonly tokenunfreezetransitionwasm_get_base: (a: number) => number;
|
|
4057
|
+
readonly tokenfreezetransitionwasm_get_base: (a: number) => number;
|
|
4061
4058
|
readonly tokenunfreezetransitionwasm_set_base: (a: number, b: number) => void;
|
|
4059
|
+
readonly tokenfreezetransitionwasm_set_base: (a: number, b: number) => void;
|
|
4060
|
+
readonly tokenemergencyactiontransitionwasm_set_base: (a: number, b: number) => void;
|
|
4061
|
+
readonly documentupdatepricetransitionwasm_set_price: (a: number, b: bigint) => void;
|
|
4062
4062
|
readonly __wbg_privateencryptednotewasm_free: (a: number, b: number) => void;
|
|
4063
4063
|
readonly privateencryptednotewasm_derivation_encryption_key_index: (a: number) => number;
|
|
4064
4064
|
readonly privateencryptednotewasm_new: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -4563,30 +4563,30 @@ export interface InitOutput {
|
|
|
4563
4563
|
readonly statetransitionwasm_struct_name: (a: number) => void;
|
|
4564
4564
|
readonly statetransitionwasm_type_name: (a: number, b: number) => void;
|
|
4565
4565
|
readonly statetransitionwasm_verifyPublicKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4566
|
-
readonly
|
|
4567
|
-
readonly privatekeywasm_WIF: (a: number, b: number) => void;
|
|
4568
|
-
readonly privatekeywasm_bytes: (a: number, b: number) => void;
|
|
4569
|
-
readonly privatekeywasm_fromBytes: (a: number, b: number, c: number, d: number) => void;
|
|
4570
|
-
readonly privatekeywasm_fromHex: (a: number, b: number, c: number, d: number) => void;
|
|
4571
|
-
readonly privatekeywasm_fromWIF: (a: number, b: number, c: number) => void;
|
|
4572
|
-
readonly privatekeywasm_getPublicKey: (a: number) => number;
|
|
4573
|
-
readonly privatekeywasm_getPublicKeyHash: (a: number, b: number) => void;
|
|
4574
|
-
readonly privatekeywasm_hex: (a: number, b: number) => void;
|
|
4575
|
-
readonly privatekeywasm_struct_name: (a: number) => void;
|
|
4576
|
-
readonly privatekeywasm_type_name: (a: number, b: number) => void;
|
|
4577
|
-
readonly __wbg_publickeywasm_free: (a: number, b: number) => void;
|
|
4578
|
-
readonly publickeywasm_bytes: (a: number, b: number) => void;
|
|
4579
|
-
readonly publickeywasm_compressed: (a: number) => number;
|
|
4580
|
-
readonly publickeywasm_fromBytes: (a: number, b: number, c: number) => void;
|
|
4581
|
-
readonly publickeywasm_getPublicKeyHash: (a: number, b: number) => void;
|
|
4582
|
-
readonly publickeywasm_hash160: (a: number, b: number) => void;
|
|
4583
|
-
readonly publickeywasm_inner: (a: number, b: number) => void;
|
|
4584
|
-
readonly publickeywasm_new: (a: number, b: number, c: number, d: number) => void;
|
|
4585
|
-
readonly publickeywasm_set_compressed: (a: number, b: number) => void;
|
|
4586
|
-
readonly publickeywasm_set_inner: (a: number, b: number, c: number, d: number) => void;
|
|
4587
|
-
readonly publickeywasm_struct_name: (a: number) => void;
|
|
4588
|
-
readonly publickeywasm_type_name: (a: number, b: number) => void;
|
|
4566
|
+
readonly __wbg_identitypublickeyincreationwasm_free: (a: number, b: number) => void;
|
|
4589
4567
|
readonly __wbg_identitypublickeywasm_free: (a: number, b: number) => void;
|
|
4568
|
+
readonly identitypublickeyincreationwasm_getHash: (a: number, b: number) => void;
|
|
4569
|
+
readonly identitypublickeyincreationwasm_get_contract_bounds: (a: number) => number;
|
|
4570
|
+
readonly identitypublickeyincreationwasm_get_data: (a: number, b: number) => void;
|
|
4571
|
+
readonly identitypublickeyincreationwasm_get_key_id: (a: number) => number;
|
|
4572
|
+
readonly identitypublickeyincreationwasm_get_key_type: (a: number, b: number) => void;
|
|
4573
|
+
readonly identitypublickeyincreationwasm_get_purpose: (a: number, b: number) => void;
|
|
4574
|
+
readonly identitypublickeyincreationwasm_get_read_only: (a: number) => number;
|
|
4575
|
+
readonly identitypublickeyincreationwasm_get_security_level: (a: number, b: number) => void;
|
|
4576
|
+
readonly identitypublickeyincreationwasm_get_signature: (a: number, b: number) => void;
|
|
4577
|
+
readonly identitypublickeyincreationwasm_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
4578
|
+
readonly identitypublickeyincreationwasm_set_contract_bounds: (a: number, b: number, c: number) => void;
|
|
4579
|
+
readonly identitypublickeyincreationwasm_set_data: (a: number, b: number, c: number) => void;
|
|
4580
|
+
readonly identitypublickeyincreationwasm_set_key_id: (a: number, b: number) => void;
|
|
4581
|
+
readonly identitypublickeyincreationwasm_set_key_type: (a: number, b: number, c: number) => void;
|
|
4582
|
+
readonly identitypublickeyincreationwasm_set_purpose: (a: number, b: number, c: number) => void;
|
|
4583
|
+
readonly identitypublickeyincreationwasm_set_read_only: (a: number, b: number) => void;
|
|
4584
|
+
readonly identitypublickeyincreationwasm_set_security_level: (a: number, b: number, c: number) => void;
|
|
4585
|
+
readonly identitypublickeyincreationwasm_set_signature: (a: number, b: number, c: number) => void;
|
|
4586
|
+
readonly identitypublickeyincreationwasm_struct_name: (a: number) => void;
|
|
4587
|
+
readonly identitypublickeyincreationwasm_toIdentityPublicKey: (a: number, b: number) => void;
|
|
4588
|
+
readonly identitypublickeyincreationwasm_type_name: (a: number, b: number) => void;
|
|
4589
|
+
readonly identitypublickeyincreationwasm_validatePrivateKey: (a: number, b: number, c: number, d: number) => void;
|
|
4590
4590
|
readonly identitypublickeywasm_base64: (a: number, b: number) => void;
|
|
4591
4591
|
readonly identitypublickeywasm_bytes: (a: number, b: number) => void;
|
|
4592
4592
|
readonly identitypublickeywasm_fromBase64: (a: number, b: number, c: number) => void;
|
|
@@ -4618,9 +4618,35 @@ export interface InitOutput {
|
|
|
4618
4618
|
readonly identitypublickeywasm_struct_name: (a: number) => void;
|
|
4619
4619
|
readonly identitypublickeywasm_type_name: (a: number, b: number) => void;
|
|
4620
4620
|
readonly identitypublickeywasm_validatePrivateKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4621
|
+
readonly identitypublickeywasm_validatePrivateKeyBytes: (a: number, b: number, c: number, d: number) => void;
|
|
4621
4622
|
readonly identitypublickeywasm_set_key_type_number: (a: number, b: number, c: number) => void;
|
|
4622
4623
|
readonly identitypublickeywasm_set_purpose_number: (a: number, b: number, c: number) => void;
|
|
4623
4624
|
readonly identitypublickeywasm_set_security_level_number: (a: number, b: number, c: number) => void;
|
|
4625
|
+
readonly __wbg_privatekeywasm_free: (a: number, b: number) => void;
|
|
4626
|
+
readonly privatekeywasm_WIF: (a: number, b: number) => void;
|
|
4627
|
+
readonly privatekeywasm_bytes: (a: number, b: number) => void;
|
|
4628
|
+
readonly privatekeywasm_fromBytes: (a: number, b: number, c: number, d: number) => void;
|
|
4629
|
+
readonly privatekeywasm_fromHex: (a: number, b: number, c: number, d: number) => void;
|
|
4630
|
+
readonly privatekeywasm_fromWIF: (a: number, b: number, c: number) => void;
|
|
4631
|
+
readonly privatekeywasm_getPublicKey: (a: number) => number;
|
|
4632
|
+
readonly privatekeywasm_getPublicKeyHash: (a: number, b: number) => void;
|
|
4633
|
+
readonly privatekeywasm_hex: (a: number, b: number) => void;
|
|
4634
|
+
readonly privatekeywasm_sign: (a: number, b: number, c: number, d: number) => void;
|
|
4635
|
+
readonly privatekeywasm_signHash: (a: number, b: number, c: number, d: number) => void;
|
|
4636
|
+
readonly privatekeywasm_struct_name: (a: number) => void;
|
|
4637
|
+
readonly privatekeywasm_type_name: (a: number, b: number) => void;
|
|
4638
|
+
readonly __wbg_publickeywasm_free: (a: number, b: number) => void;
|
|
4639
|
+
readonly publickeywasm_bytes: (a: number, b: number) => void;
|
|
4640
|
+
readonly publickeywasm_compressed: (a: number) => number;
|
|
4641
|
+
readonly publickeywasm_fromBytes: (a: number, b: number, c: number) => void;
|
|
4642
|
+
readonly publickeywasm_getPublicKeyHash: (a: number, b: number) => void;
|
|
4643
|
+
readonly publickeywasm_hash160: (a: number, b: number) => void;
|
|
4644
|
+
readonly publickeywasm_inner: (a: number, b: number) => void;
|
|
4645
|
+
readonly publickeywasm_new: (a: number, b: number, c: number, d: number) => void;
|
|
4646
|
+
readonly publickeywasm_set_compressed: (a: number, b: number) => void;
|
|
4647
|
+
readonly publickeywasm_set_inner: (a: number, b: number, c: number, d: number) => void;
|
|
4648
|
+
readonly publickeywasm_struct_name: (a: number) => void;
|
|
4649
|
+
readonly publickeywasm_type_name: (a: number, b: number) => void;
|
|
4624
4650
|
readonly __wbg_contractboundswasm_free: (a: number, b: number) => void;
|
|
4625
4651
|
readonly contractboundswasm_SingleContract: (a: number, b: number) => void;
|
|
4626
4652
|
readonly contractboundswasm_SingleContractDocumentType: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -10056,6 +10056,27 @@ export class IdentityPublicKeyInCreationWASM {
|
|
|
10056
10056
|
heap[stack_pointer++] = undefined;
|
|
10057
10057
|
}
|
|
10058
10058
|
}
|
|
10059
|
+
/**
|
|
10060
|
+
* @param {PrivateKeyWASM} private_key
|
|
10061
|
+
* @param {any} js_network
|
|
10062
|
+
* @returns {boolean}
|
|
10063
|
+
*/
|
|
10064
|
+
validatePrivateKey(private_key, js_network) {
|
|
10065
|
+
try {
|
|
10066
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10067
|
+
_assertClass(private_key, PrivateKeyWASM);
|
|
10068
|
+
wasm.identitypublickeyincreationwasm_validatePrivateKey(retptr, this.__wbg_ptr, private_key.__wbg_ptr, addHeapObject(js_network));
|
|
10069
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10070
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10071
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10072
|
+
if (r2) {
|
|
10073
|
+
throw takeObject(r1);
|
|
10074
|
+
}
|
|
10075
|
+
return r0 !== 0;
|
|
10076
|
+
} finally {
|
|
10077
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10078
|
+
}
|
|
10079
|
+
}
|
|
10059
10080
|
/**
|
|
10060
10081
|
* @returns {IdentityPublicKeyWASM}
|
|
10061
10082
|
*/
|
|
@@ -10551,6 +10572,27 @@ export class IdentityPublicKeyWASM {
|
|
|
10551
10572
|
heap[stack_pointer++] = undefined;
|
|
10552
10573
|
}
|
|
10553
10574
|
}
|
|
10575
|
+
/**
|
|
10576
|
+
* @param {PrivateKeyWASM} private_key
|
|
10577
|
+
* @param {any} js_network
|
|
10578
|
+
* @returns {boolean}
|
|
10579
|
+
*/
|
|
10580
|
+
validatePrivateKeyBytes(private_key, js_network) {
|
|
10581
|
+
try {
|
|
10582
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10583
|
+
_assertClass(private_key, PrivateKeyWASM);
|
|
10584
|
+
wasm.identitypublickeywasm_validatePrivateKeyBytes(retptr, this.__wbg_ptr, private_key.__wbg_ptr, addHeapObject(js_network));
|
|
10585
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10586
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10587
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10588
|
+
if (r2) {
|
|
10589
|
+
throw takeObject(r1);
|
|
10590
|
+
}
|
|
10591
|
+
return r0 !== 0;
|
|
10592
|
+
} finally {
|
|
10593
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10594
|
+
}
|
|
10595
|
+
}
|
|
10554
10596
|
/**
|
|
10555
10597
|
* @param {number} id
|
|
10556
10598
|
* @param {any} js_purpose
|
|
@@ -10611,27 +10653,6 @@ export class IdentityPublicKeyWASM {
|
|
|
10611
10653
|
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
10612
10654
|
}
|
|
10613
10655
|
}
|
|
10614
|
-
/**
|
|
10615
|
-
* @returns {Uint8Array}
|
|
10616
|
-
*/
|
|
10617
|
-
bytes() {
|
|
10618
|
-
try {
|
|
10619
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10620
|
-
wasm.identitypublickeywasm_bytes(retptr, this.__wbg_ptr);
|
|
10621
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10622
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10623
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10624
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
10625
|
-
if (r3) {
|
|
10626
|
-
throw takeObject(r2);
|
|
10627
|
-
}
|
|
10628
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
10629
|
-
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
10630
|
-
return v1;
|
|
10631
|
-
} finally {
|
|
10632
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10633
|
-
}
|
|
10634
|
-
}
|
|
10635
10656
|
/**
|
|
10636
10657
|
* @param {string} hex
|
|
10637
10658
|
* @returns {IdentityPublicKeyWASM}
|
|
@@ -10690,6 +10711,27 @@ export class IdentityPublicKeyWASM {
|
|
|
10690
10711
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10691
10712
|
}
|
|
10692
10713
|
}
|
|
10714
|
+
/**
|
|
10715
|
+
* @returns {Uint8Array}
|
|
10716
|
+
*/
|
|
10717
|
+
bytes() {
|
|
10718
|
+
try {
|
|
10719
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10720
|
+
wasm.identitypublickeywasm_bytes(retptr, this.__wbg_ptr);
|
|
10721
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10722
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10723
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10724
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
10725
|
+
if (r3) {
|
|
10726
|
+
throw takeObject(r2);
|
|
10727
|
+
}
|
|
10728
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
10729
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
10730
|
+
return v1;
|
|
10731
|
+
} finally {
|
|
10732
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10733
|
+
}
|
|
10734
|
+
}
|
|
10693
10735
|
/**
|
|
10694
10736
|
* @returns {boolean}
|
|
10695
10737
|
*/
|
|
@@ -13509,6 +13551,30 @@ export class PrivateKeyWASM {
|
|
|
13509
13551
|
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
13510
13552
|
}
|
|
13511
13553
|
}
|
|
13554
|
+
/**
|
|
13555
|
+
* @param {Uint8Array} data
|
|
13556
|
+
* @returns {Uint8Array}
|
|
13557
|
+
*/
|
|
13558
|
+
sign(data) {
|
|
13559
|
+
try {
|
|
13560
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13561
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export2);
|
|
13562
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13563
|
+
wasm.privatekeywasm_sign(retptr, this.__wbg_ptr, ptr0, len0);
|
|
13564
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13565
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13566
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13567
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
13568
|
+
if (r3) {
|
|
13569
|
+
throw takeObject(r2);
|
|
13570
|
+
}
|
|
13571
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
13572
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
13573
|
+
return v2;
|
|
13574
|
+
} finally {
|
|
13575
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13576
|
+
}
|
|
13577
|
+
}
|
|
13512
13578
|
/**
|
|
13513
13579
|
* @returns {string}
|
|
13514
13580
|
*/
|
|
@@ -13607,6 +13673,30 @@ export class PrivateKeyWASM {
|
|
|
13607
13673
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13608
13674
|
}
|
|
13609
13675
|
}
|
|
13676
|
+
/**
|
|
13677
|
+
* @param {Uint8Array} data_hash
|
|
13678
|
+
* @returns {Uint8Array}
|
|
13679
|
+
*/
|
|
13680
|
+
signHash(data_hash) {
|
|
13681
|
+
try {
|
|
13682
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13683
|
+
const ptr0 = passArray8ToWasm0(data_hash, wasm.__wbindgen_export2);
|
|
13684
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13685
|
+
wasm.privatekeywasm_signHash(retptr, this.__wbg_ptr, ptr0, len0);
|
|
13686
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13687
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13688
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13689
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
13690
|
+
if (r3) {
|
|
13691
|
+
throw takeObject(r2);
|
|
13692
|
+
}
|
|
13693
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
13694
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
13695
|
+
return v2;
|
|
13696
|
+
} finally {
|
|
13697
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13698
|
+
}
|
|
13699
|
+
}
|
|
13610
13700
|
/**
|
|
13611
13701
|
* @returns {string}
|
|
13612
13702
|
*/
|