@provablehq/wasm 0.9.13 → 0.9.15
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.
- package/dist/mainnet/aleo_wasm.d.ts +56 -0
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.js +633 -467
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +637 -471
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +56 -0
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.js +633 -467
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +637 -471
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +3 -3
|
@@ -34,6 +34,7 @@ export function getOrInitConsensusVersionTestHeights(heights?: string | null): A
|
|
|
34
34
|
export class Address {
|
|
35
35
|
private constructor();
|
|
36
36
|
free(): void;
|
|
37
|
+
[Symbol.dispose](): void;
|
|
37
38
|
/**
|
|
38
39
|
* Get an address object from a group.
|
|
39
40
|
*
|
|
@@ -92,6 +93,13 @@ export class Address {
|
|
|
92
93
|
* @returns {Address} Address corresponding to the view key
|
|
93
94
|
*/
|
|
94
95
|
static from_view_key(view_key: ViewKey): Address;
|
|
96
|
+
/**
|
|
97
|
+
* Get the address of a program based on the program ID.
|
|
98
|
+
*
|
|
99
|
+
* @param {string} program_id The program ID string.
|
|
100
|
+
* @returns {Address} The address corresponding to the program ID.
|
|
101
|
+
*/
|
|
102
|
+
static fromProgramId(program_id: string): Address;
|
|
95
103
|
/**
|
|
96
104
|
* Derive an Aleo address from a compute key.
|
|
97
105
|
*
|
|
@@ -134,6 +142,7 @@ export class Address {
|
|
|
134
142
|
export class Authorization {
|
|
135
143
|
private constructor();
|
|
136
144
|
free(): void;
|
|
145
|
+
[Symbol.dispose](): void;
|
|
137
146
|
/**
|
|
138
147
|
* Reconstructs an Authorization object from its string representation.
|
|
139
148
|
*
|
|
@@ -217,6 +226,7 @@ export class Authorization {
|
|
|
217
226
|
}
|
|
218
227
|
export class BHP1024 {
|
|
219
228
|
free(): void;
|
|
229
|
+
[Symbol.dispose](): void;
|
|
220
230
|
/**
|
|
221
231
|
* Returns a BHP hash with an input hasher of 1024 bits.
|
|
222
232
|
*/
|
|
@@ -244,6 +254,7 @@ export class BHP1024 {
|
|
|
244
254
|
}
|
|
245
255
|
export class BHP256 {
|
|
246
256
|
free(): void;
|
|
257
|
+
[Symbol.dispose](): void;
|
|
247
258
|
/**
|
|
248
259
|
* Returns a BHP hash with an input hasher of 256 bits.
|
|
249
260
|
*/
|
|
@@ -271,6 +282,7 @@ export class BHP256 {
|
|
|
271
282
|
}
|
|
272
283
|
export class BHP512 {
|
|
273
284
|
free(): void;
|
|
285
|
+
[Symbol.dispose](): void;
|
|
274
286
|
/**
|
|
275
287
|
* Returns a BHP hash with an input hasher of 512 bits.
|
|
276
288
|
*/
|
|
@@ -298,6 +310,7 @@ export class BHP512 {
|
|
|
298
310
|
}
|
|
299
311
|
export class BHP768 {
|
|
300
312
|
free(): void;
|
|
313
|
+
[Symbol.dispose](): void;
|
|
301
314
|
/**
|
|
302
315
|
* Returns a BHP hash with an input hasher of 768 bits.
|
|
303
316
|
*/
|
|
@@ -328,6 +341,7 @@ export class BHP768 {
|
|
|
328
341
|
*/
|
|
329
342
|
export class Boolean {
|
|
330
343
|
free(): void;
|
|
344
|
+
[Symbol.dispose](): void;
|
|
331
345
|
/**
|
|
332
346
|
* Get the left endian boolean array representation of the boolean element.
|
|
333
347
|
*/
|
|
@@ -405,6 +419,7 @@ export class Boolean {
|
|
|
405
419
|
export class Ciphertext {
|
|
406
420
|
private constructor();
|
|
407
421
|
free(): void;
|
|
422
|
+
[Symbol.dispose](): void;
|
|
408
423
|
/**
|
|
409
424
|
* Get the left endian boolean array representation of the bits of the ciphertext.
|
|
410
425
|
*/
|
|
@@ -506,6 +521,7 @@ export class Ciphertext {
|
|
|
506
521
|
export class ComputeKey {
|
|
507
522
|
private constructor();
|
|
508
523
|
free(): void;
|
|
524
|
+
[Symbol.dispose](): void;
|
|
509
525
|
/**
|
|
510
526
|
* Create a new compute key from a private key.
|
|
511
527
|
*
|
|
@@ -545,6 +561,7 @@ export class ComputeKey {
|
|
|
545
561
|
export class EncryptionToolkit {
|
|
546
562
|
private constructor();
|
|
547
563
|
free(): void;
|
|
564
|
+
[Symbol.dispose](): void;
|
|
548
565
|
/**
|
|
549
566
|
* Generates a transition view key from the view key and the transition public key.
|
|
550
567
|
*
|
|
@@ -627,6 +644,7 @@ export class EncryptionToolkit {
|
|
|
627
644
|
export class Execution {
|
|
628
645
|
private constructor();
|
|
629
646
|
free(): void;
|
|
647
|
+
[Symbol.dispose](): void;
|
|
630
648
|
/**
|
|
631
649
|
* Creates an execution object from a string representation of an execution.
|
|
632
650
|
*
|
|
@@ -661,6 +679,7 @@ export class Execution {
|
|
|
661
679
|
export class ExecutionRequest {
|
|
662
680
|
private constructor();
|
|
663
681
|
free(): void;
|
|
682
|
+
[Symbol.dispose](): void;
|
|
664
683
|
/**
|
|
665
684
|
* Returns the network ID.
|
|
666
685
|
*/
|
|
@@ -758,6 +777,7 @@ export class ExecutionRequest {
|
|
|
758
777
|
export class ExecutionResponse {
|
|
759
778
|
private constructor();
|
|
760
779
|
free(): void;
|
|
780
|
+
[Symbol.dispose](): void;
|
|
761
781
|
/**
|
|
762
782
|
* Get the outputs of the executed function
|
|
763
783
|
*
|
|
@@ -803,6 +823,7 @@ export class ExecutionResponse {
|
|
|
803
823
|
export class Field {
|
|
804
824
|
private constructor();
|
|
805
825
|
free(): void;
|
|
826
|
+
[Symbol.dispose](): void;
|
|
806
827
|
/**
|
|
807
828
|
* Get the left endian boolean array representation of the field element.
|
|
808
829
|
*/
|
|
@@ -887,6 +908,7 @@ export class Field {
|
|
|
887
908
|
export class GraphKey {
|
|
888
909
|
private constructor();
|
|
889
910
|
free(): void;
|
|
911
|
+
[Symbol.dispose](): void;
|
|
890
912
|
/**
|
|
891
913
|
* Create a new graph key from a string representation of a graph key
|
|
892
914
|
*
|
|
@@ -918,6 +940,7 @@ export class GraphKey {
|
|
|
918
940
|
export class Group {
|
|
919
941
|
private constructor();
|
|
920
942
|
free(): void;
|
|
943
|
+
[Symbol.dispose](): void;
|
|
921
944
|
/**
|
|
922
945
|
* Get the left endian boolean array representation of the group element.
|
|
923
946
|
*/
|
|
@@ -999,6 +1022,7 @@ export class Group {
|
|
|
999
1022
|
export class I128 {
|
|
1000
1023
|
private constructor();
|
|
1001
1024
|
free(): void;
|
|
1025
|
+
[Symbol.dispose](): void;
|
|
1002
1026
|
/**
|
|
1003
1027
|
* Attempt to construct the integer from a field element.
|
|
1004
1028
|
*/
|
|
@@ -1099,6 +1123,7 @@ export class I128 {
|
|
|
1099
1123
|
export class I16 {
|
|
1100
1124
|
private constructor();
|
|
1101
1125
|
free(): void;
|
|
1126
|
+
[Symbol.dispose](): void;
|
|
1102
1127
|
/**
|
|
1103
1128
|
* Attempt to construct the integer from a field element.
|
|
1104
1129
|
*/
|
|
@@ -1199,6 +1224,7 @@ export class I16 {
|
|
|
1199
1224
|
export class I32 {
|
|
1200
1225
|
private constructor();
|
|
1201
1226
|
free(): void;
|
|
1227
|
+
[Symbol.dispose](): void;
|
|
1202
1228
|
/**
|
|
1203
1229
|
* Attempt to construct the integer from a field element.
|
|
1204
1230
|
*/
|
|
@@ -1299,6 +1325,7 @@ export class I32 {
|
|
|
1299
1325
|
export class I64 {
|
|
1300
1326
|
private constructor();
|
|
1301
1327
|
free(): void;
|
|
1328
|
+
[Symbol.dispose](): void;
|
|
1302
1329
|
/**
|
|
1303
1330
|
* Attempt to construct the integer from a field element.
|
|
1304
1331
|
*/
|
|
@@ -1399,6 +1426,7 @@ export class I64 {
|
|
|
1399
1426
|
export class I8 {
|
|
1400
1427
|
private constructor();
|
|
1401
1428
|
free(): void;
|
|
1429
|
+
[Symbol.dispose](): void;
|
|
1402
1430
|
/**
|
|
1403
1431
|
* Attempt to construct the integer from a field element.
|
|
1404
1432
|
*/
|
|
@@ -1501,6 +1529,7 @@ export class I8 {
|
|
|
1501
1529
|
*/
|
|
1502
1530
|
export class KeyPair {
|
|
1503
1531
|
free(): void;
|
|
1532
|
+
[Symbol.dispose](): void;
|
|
1504
1533
|
/**
|
|
1505
1534
|
* Get the proving key. This method will remove the proving key from the key pair
|
|
1506
1535
|
*
|
|
@@ -1525,6 +1554,7 @@ export class KeyPair {
|
|
|
1525
1554
|
export class Metadata {
|
|
1526
1555
|
private constructor();
|
|
1527
1556
|
free(): void;
|
|
1557
|
+
[Symbol.dispose](): void;
|
|
1528
1558
|
static fee_public(): Metadata;
|
|
1529
1559
|
static bond_public(): Metadata;
|
|
1530
1560
|
static fee_private(): Metadata;
|
|
@@ -1553,6 +1583,7 @@ export class Metadata {
|
|
|
1553
1583
|
*/
|
|
1554
1584
|
export class OfflineQuery {
|
|
1555
1585
|
free(): void;
|
|
1586
|
+
[Symbol.dispose](): void;
|
|
1556
1587
|
/**
|
|
1557
1588
|
* Create an offline query object from a json string representation.
|
|
1558
1589
|
*
|
|
@@ -1590,6 +1621,7 @@ export class OfflineQuery {
|
|
|
1590
1621
|
}
|
|
1591
1622
|
export class Pedersen128 {
|
|
1592
1623
|
free(): void;
|
|
1624
|
+
[Symbol.dispose](): void;
|
|
1593
1625
|
/**
|
|
1594
1626
|
* Returns a Pedersen commitment for the given (up to) 128-bit input and randomizer.
|
|
1595
1627
|
*/
|
|
@@ -1613,6 +1645,7 @@ export class Pedersen128 {
|
|
|
1613
1645
|
}
|
|
1614
1646
|
export class Pedersen64 {
|
|
1615
1647
|
free(): void;
|
|
1648
|
+
[Symbol.dispose](): void;
|
|
1616
1649
|
/**
|
|
1617
1650
|
* Returns a Pedersen commitment for the given (up to) 64-bit input and randomizer.
|
|
1618
1651
|
*/
|
|
@@ -1657,6 +1690,7 @@ export class Pedersen64 {
|
|
|
1657
1690
|
export class Plaintext {
|
|
1658
1691
|
private constructor();
|
|
1659
1692
|
free(): void;
|
|
1693
|
+
[Symbol.dispose](): void;
|
|
1660
1694
|
/**
|
|
1661
1695
|
* Get the little endian boolean array representation of the bits of the plaintext.
|
|
1662
1696
|
*
|
|
@@ -1785,6 +1819,7 @@ export class Plaintext {
|
|
|
1785
1819
|
}
|
|
1786
1820
|
export class Poseidon2 {
|
|
1787
1821
|
free(): void;
|
|
1822
|
+
[Symbol.dispose](): void;
|
|
1788
1823
|
/**
|
|
1789
1824
|
* Returns the Poseidon hash with an input rate of 2 on the affine curve.
|
|
1790
1825
|
*/
|
|
@@ -1812,6 +1847,7 @@ export class Poseidon2 {
|
|
|
1812
1847
|
}
|
|
1813
1848
|
export class Poseidon4 {
|
|
1814
1849
|
free(): void;
|
|
1850
|
+
[Symbol.dispose](): void;
|
|
1815
1851
|
/**
|
|
1816
1852
|
* Returns the Poseidon hash with an input rate of 4 on the affine curve.
|
|
1817
1853
|
*/
|
|
@@ -1839,6 +1875,7 @@ export class Poseidon4 {
|
|
|
1839
1875
|
}
|
|
1840
1876
|
export class Poseidon8 {
|
|
1841
1877
|
free(): void;
|
|
1878
|
+
[Symbol.dispose](): void;
|
|
1842
1879
|
/**
|
|
1843
1880
|
* Returns the Poseidon hash with an input rate of 8 on the affine curve.
|
|
1844
1881
|
*/
|
|
@@ -1869,6 +1906,7 @@ export class Poseidon8 {
|
|
|
1869
1906
|
*/
|
|
1870
1907
|
export class PrivateKey {
|
|
1871
1908
|
free(): void;
|
|
1909
|
+
[Symbol.dispose](): void;
|
|
1872
1910
|
/**
|
|
1873
1911
|
* Sign an instance of a valid Aleo data type or record.
|
|
1874
1912
|
*
|
|
@@ -1953,6 +1991,7 @@ export class PrivateKey {
|
|
|
1953
1991
|
export class PrivateKeyCiphertext {
|
|
1954
1992
|
private constructor();
|
|
1955
1993
|
free(): void;
|
|
1994
|
+
[Symbol.dispose](): void;
|
|
1956
1995
|
/**
|
|
1957
1996
|
* Creates a PrivateKeyCiphertext from a string
|
|
1958
1997
|
*
|
|
@@ -1990,6 +2029,7 @@ export class PrivateKeyCiphertext {
|
|
|
1990
2029
|
export class Program {
|
|
1991
2030
|
private constructor();
|
|
1992
2031
|
free(): void;
|
|
2032
|
+
[Symbol.dispose](): void;
|
|
1993
2033
|
/**
|
|
1994
2034
|
* Create a program from a program string
|
|
1995
2035
|
*
|
|
@@ -2224,6 +2264,7 @@ export class Program {
|
|
|
2224
2264
|
export class ProgramManager {
|
|
2225
2265
|
private constructor();
|
|
2226
2266
|
free(): void;
|
|
2267
|
+
[Symbol.dispose](): void;
|
|
2227
2268
|
/**
|
|
2228
2269
|
* Synthesize proving and verifying keys for a program
|
|
2229
2270
|
*
|
|
@@ -2569,6 +2610,7 @@ export class ProgramManager {
|
|
|
2569
2610
|
export class ProvingKey {
|
|
2570
2611
|
private constructor();
|
|
2571
2612
|
free(): void;
|
|
2613
|
+
[Symbol.dispose](): void;
|
|
2572
2614
|
/**
|
|
2573
2615
|
* Construct a new proving key from a byte array
|
|
2574
2616
|
*
|
|
@@ -2763,6 +2805,7 @@ export class ProvingKey {
|
|
|
2763
2805
|
export class ProvingRequest {
|
|
2764
2806
|
private constructor();
|
|
2765
2807
|
free(): void;
|
|
2808
|
+
[Symbol.dispose](): void;
|
|
2766
2809
|
/**
|
|
2767
2810
|
* Creates a ProvingRequest from a string representation.
|
|
2768
2811
|
*
|
|
@@ -2814,6 +2857,7 @@ export class ProvingRequest {
|
|
|
2814
2857
|
export class RecordCiphertext {
|
|
2815
2858
|
private constructor();
|
|
2816
2859
|
free(): void;
|
|
2860
|
+
[Symbol.dispose](): void;
|
|
2817
2861
|
/**
|
|
2818
2862
|
* Get the left endian boolean array representation of the record ciphertext bits.
|
|
2819
2863
|
*
|
|
@@ -2913,6 +2957,7 @@ export class RecordCiphertext {
|
|
|
2913
2957
|
export class RecordPlaintext {
|
|
2914
2958
|
private constructor();
|
|
2915
2959
|
free(): void;
|
|
2960
|
+
[Symbol.dispose](): void;
|
|
2916
2961
|
commitment(program_id: string, record_name: string, record_view_key: string): Field;
|
|
2917
2962
|
/**
|
|
2918
2963
|
* Get the record entry matching a key.
|
|
@@ -3076,6 +3121,7 @@ export class RecordPlaintext {
|
|
|
3076
3121
|
export class Scalar {
|
|
3077
3122
|
private constructor();
|
|
3078
3123
|
free(): void;
|
|
3124
|
+
[Symbol.dispose](): void;
|
|
3079
3125
|
/**
|
|
3080
3126
|
* Get the left endian boolean array representation of the scalar element.
|
|
3081
3127
|
*/
|
|
@@ -3163,6 +3209,7 @@ export class Scalar {
|
|
|
3163
3209
|
export class Signature {
|
|
3164
3210
|
private constructor();
|
|
3165
3211
|
free(): void;
|
|
3212
|
+
[Symbol.dispose](): void;
|
|
3166
3213
|
/**
|
|
3167
3214
|
* Sign an instance of a valid Aleo data type or record.
|
|
3168
3215
|
*
|
|
@@ -3264,6 +3311,7 @@ export class Signature {
|
|
|
3264
3311
|
export class Transaction {
|
|
3265
3312
|
private constructor();
|
|
3266
3313
|
free(): void;
|
|
3314
|
+
[Symbol.dispose](): void;
|
|
3267
3315
|
/**
|
|
3268
3316
|
* Returns the transaction's total fee.
|
|
3269
3317
|
*/
|
|
@@ -3413,6 +3461,7 @@ export class Transaction {
|
|
|
3413
3461
|
export class Transition {
|
|
3414
3462
|
private constructor();
|
|
3415
3463
|
free(): void;
|
|
3464
|
+
[Symbol.dispose](): void;
|
|
3416
3465
|
/**
|
|
3417
3466
|
* Get the program ID of the transition.
|
|
3418
3467
|
*/
|
|
@@ -3542,6 +3591,7 @@ export class Transition {
|
|
|
3542
3591
|
export class U128 {
|
|
3543
3592
|
private constructor();
|
|
3544
3593
|
free(): void;
|
|
3594
|
+
[Symbol.dispose](): void;
|
|
3545
3595
|
/**
|
|
3546
3596
|
* Attempt to construct the integer from a field element.
|
|
3547
3597
|
*/
|
|
@@ -3642,6 +3692,7 @@ export class U128 {
|
|
|
3642
3692
|
export class U16 {
|
|
3643
3693
|
private constructor();
|
|
3644
3694
|
free(): void;
|
|
3695
|
+
[Symbol.dispose](): void;
|
|
3645
3696
|
/**
|
|
3646
3697
|
* Attempt to construct the integer from a field element.
|
|
3647
3698
|
*/
|
|
@@ -3742,6 +3793,7 @@ export class U16 {
|
|
|
3742
3793
|
export class U32 {
|
|
3743
3794
|
private constructor();
|
|
3744
3795
|
free(): void;
|
|
3796
|
+
[Symbol.dispose](): void;
|
|
3745
3797
|
/**
|
|
3746
3798
|
* Attempt to construct the integer from a field element.
|
|
3747
3799
|
*/
|
|
@@ -3842,6 +3894,7 @@ export class U32 {
|
|
|
3842
3894
|
export class U64 {
|
|
3843
3895
|
private constructor();
|
|
3844
3896
|
free(): void;
|
|
3897
|
+
[Symbol.dispose](): void;
|
|
3845
3898
|
/**
|
|
3846
3899
|
* Attempt to construct the integer from a field element.
|
|
3847
3900
|
*/
|
|
@@ -3942,6 +3995,7 @@ export class U64 {
|
|
|
3942
3995
|
export class U8 {
|
|
3943
3996
|
private constructor();
|
|
3944
3997
|
free(): void;
|
|
3998
|
+
[Symbol.dispose](): void;
|
|
3945
3999
|
/**
|
|
3946
4000
|
* Attempt to construct the integer from a field element.
|
|
3947
4001
|
*/
|
|
@@ -4045,6 +4099,7 @@ export class U8 {
|
|
|
4045
4099
|
export class VerifyingKey {
|
|
4046
4100
|
private constructor();
|
|
4047
4101
|
free(): void;
|
|
4102
|
+
[Symbol.dispose](): void;
|
|
4048
4103
|
/**
|
|
4049
4104
|
* Construct a new verifying key from a byte array
|
|
4050
4105
|
*
|
|
@@ -4273,6 +4328,7 @@ export class VerifyingKey {
|
|
|
4273
4328
|
export class ViewKey {
|
|
4274
4329
|
private constructor();
|
|
4275
4330
|
free(): void;
|
|
4331
|
+
[Symbol.dispose](): void;
|
|
4276
4332
|
/**
|
|
4277
4333
|
* Get the address corresponding to a view key
|
|
4278
4334
|
*
|
|
Binary file
|