@@ -424,12 +424,12 @@ Decrypt a ciphertext using the view key of the transition signer, transition pub
424
424
425
425
Parameters | Type | Description
426
426
--- | --- | ---
427
- __ view_key__ | ` ViewKey ` | **
428
- __ transition_public_key__ | [ Group] ( sdk-src_wasm.md ) | **
429
- __ program__ | ` string ` | **
430
- __ function_name__ | ` string ` | **
431
- __ index__ | ` number ` | **
432
- __ * return* __ | [ Plaintext] ( sdk-src_wasm.md ) | **
427
+ __ view_key__ | ` ViewKey ` | * The view key of the transition signer. *
428
+ __ transition_public_key__ | [ Group] ( sdk-src_wasm.md ) | * The transition public key used to encrypt the ciphertext. *
429
+ __ program__ | ` string ` | * The program ID associated with the ciphertext. *
430
+ __ function_name__ | ` string ` | * The name of the function associated with the encrypted inputs and outputs. *
431
+ __ index__ | ` u16 ` | * The index of the input or output parameter that was encrypted. *
432
+ __ * return* __ | [ Plaintext] ( sdk-src_wasm.md ) | * The decrypted plaintext. *
433
433
434
434
---
435
435
@@ -441,11 +441,11 @@ Decrypt a ciphertext using the transition view key and a (program, function, ind
441
441
442
442
Parameters | Type | Description
443
443
--- | --- | ---
444
- __ transition_view_key__ | [ Field] ( sdk-src_wasm.md ) | **
445
- __ program__ | ` string ` | **
446
- __ function_name__ | ` string ` | **
447
- __ index__ | ` number ` | **
448
- __ * return* __ | [ Plaintext] ( sdk-src_wasm.md ) | **
444
+ __ transition_view_key__ | [ Field] ( sdk-src_wasm.md ) | * The transition view key that was used to encrypt the ciphertext. *
445
+ __ program__ | ` string ` | * The program ID associated with the ciphertext. *
446
+ __ function_name__ | ` string ` | * The name of the function associated with the encrypted inputs and outputs. *
447
+ __ index__ | ` u16 ` | * The index of the input or output parameter that was encrypted. *
448
+ __ * return* __ | [ Plaintext] ( sdk-src_wasm.md ) | * The decrypted plaintext. *
449
449
450
450
---
451
451
@@ -1280,8 +1280,9 @@ Creates a new offline query object. The state root is required to be passed in a
1280
1280
1281
1281
Parameters | Type | Description
1282
1282
--- | --- | ---
1283
- __ block_height__ | ` number ` | **
1284
- __ state_root__ | ` string ` | **
1283
+ __ block_height__ | ` u32 ` | * The block height.*
1284
+ __ state_root__ | ` string ` | * The state root of the current network.*
1285
+ __ * return* __ | [ OfflineQuery] ( sdk-src_wasm.md ) | * The newly created offline query object.*
1285
1286
1286
1287
---
1287
1288
@@ -1295,7 +1296,7 @@ Add a new block height to the offline query object.
1295
1296
1296
1297
Parameters | Type | Description
1297
1298
--- | --- | ---
1298
- __ block_height__ | ` number ` | **
1299
+ __ block_height__ | ` u32 ` | * The block height to add. *
1299
1300
__ * return* __ | ` void ` | **
1300
1301
1301
1302
---
@@ -1308,8 +1309,8 @@ Add a new state path to the offline query object.
1308
1309
1309
1310
Parameters | Type | Description
1310
1311
--- | --- | ---
1311
- __ commitment:__ | ` string ` | * The commitment corresponding to a record inpout *
1312
- __ state_path:__ | ` string ` | * The state path corresponding to the commitment*
1312
+ __ commitment:__ | ` string ` | * The commitment corresponding to a record input. *
1313
+ __ state_path:__ | ` string ` | * The state path corresponding to the commitment. *
1313
1314
__ * return* __ | ` void ` | **
1314
1315
1315
1316
---
@@ -1318,23 +1319,23 @@ __*return*__ | `void` | **
1318
1319
1319
1320
![ modifier: public] ( images/badges/modifier-public.svg )
1320
1321
1321
- Get a json string representation of the offline query object
1322
+ Get a json string representation of the offline query object.
1322
1323
1323
1324
Parameters | Type | Description
1324
1325
--- | --- | ---
1325
- __ * return* __ | ` string ` | **
1326
+ __ * return* __ | ` string ` | * JSON string representation of the offline query object. *
1326
1327
1327
1328
---
1328
1329
1329
- ### ` fromString(s ) ► OfflineQuery `
1330
+ ### ` fromString(JSON ) ► OfflineQuery `
1330
1331
1331
1332
![ modifier: public] ( images/badges/modifier-public.svg ) ![ modifier: static] ( images/badges/modifier-static.svg )
1332
1333
1333
- Create an offline query object from a json string representation
1334
+ Create an offline query object from a json string representation.
1334
1335
1335
1336
Parameters | Type | Description
1336
1337
--- | --- | ---
1337
- __ s __ | ` string ` | **
1338
+ __ JSON __ | ` string ` | * string representation of the offline query object. *
1338
1339
__ * return* __ | [ OfflineQuery] ( sdk-src_wasm.md ) | **
1339
1340
1340
1341
---
@@ -1387,9 +1388,9 @@ Encrypt a plaintext with an address and randomizer.
1387
1388
1388
1389
Parameters | Type | Description
1389
1390
--- | --- | ---
1390
- __address__ | [Address](sdk-src_wasm.md) | **
1391
- __randomizer__ | [Scalar](sdk-src_wasm.md) | **
1392
- __*return*__ | [Ciphertext](sdk-src_wasm.md) | **
1391
+ __address__ | [Address](sdk-src_wasm.md) | *The address to encrypt the plaintext for. *
1392
+ __randomizer__ | [Scalar](sdk-src_wasm.md) | *The randomizer to use for encryption. *
1393
+ __*return*__ | [Ciphertext](sdk-src_wasm.md) | *The encrypted ciphertext. *
1393
1394
1394
1395
---
1395
1396
@@ -1401,8 +1402,9 @@ Encrypt a plaintext with a transition view key.
1401
1402
1402
1403
Parameters | Type | Description
1403
1404
--- | --- | ---
1404
- __transition_view_key__ | [Field](sdk-src_wasm.md) | **
1405
- __*return*__ | [Ciphertext](sdk-src_wasm.md) | **
1405
+ __transition_view_key__ | [Field](sdk-src_wasm.md) | *The transition view key of the transition
1406
+ associated with the plaintext.*
1407
+ __*return*__ | [Ciphertext](sdk-src_wasm.md) | *The encrypted ciphertext.*
1406
1408
1407
1409
---
1408
1410
@@ -1440,7 +1442,7 @@ Get the left endian byte array representation of the plaintext.
1440
1442
1441
1443
Parameters | Type | Description
1442
1444
--- | --- | ---
1443
- __*return*__ | ` Uint8Array ` | **
1445
+ __*return*__ | ` Uint8Array ` | *The left endian byte array representation of the plaintext. *
1444
1446
1445
1447
---
1446
1448
@@ -1457,15 +1459,15 @@ __*return*__ | [Plaintext](sdk-src_wasm.md) | *The plaintext object.*
1457
1459
1458
1460
---
1459
1461
1460
- ### ` toBitsLe () ► Array . < any > `
1462
+ ### ` toBitsLe () ► Array `
1461
1463
1462
1464

1463
1465
1464
1466
Get the left endian boolean array representation of the bits of the plaintext.
1465
1467
1466
1468
Parameters | Type | Description
1467
1469
--- | --- | ---
1468
- __*return*__ | ` Array . < any > ` | **
1470
+ __*return*__ | ` Array ` | *The left endian boolean array representation of the bits of the plaintext. *
1469
1471
1470
1472
---
1471
1473
@@ -1482,15 +1484,15 @@ __*return*__ | [Plaintext](sdk-src_wasm.md) | *The plaintext object.*
1482
1484
1483
1485
---
1484
1486
1485
- ### ` toFields () ► Array . < any > `
1487
+ ### ` toFields () ► Array `
1486
1488
1487
1489

1488
1490
1489
1491
Get the field array representation of the plaintext.
1490
1492
1491
1493
Parameters | Type | Description
1492
1494
--- | --- | ---
1493
- __*return*__ | ` Array . < any > ` | **
1495
+ __*return*__ | ` Array ` | *The field array representation of the plaintext. *
1494
1496
1495
1497
---
1496
1498
@@ -2529,7 +2531,7 @@ Get the left endian byte array representation of the record ciphertext.
2529
2531
2530
2532
Parameters | Type | Description
2531
2533
--- | --- | ---
2532
- __*return*__ | ` Uint8Array ` | **
2534
+ __*return*__ | ` Uint8Array ` | *Left endian byte array representation of the record ciphertext. *
2533
2535
2534
2536
---
2535
2537
@@ -2539,21 +2541,23 @@ __*return*__ | `Uint8Array` | **
2539
2541
2540
2542
Get the left endian boolean array representation of the record ciphertext bits.
2541
2543
2544
+ returns {Array} Left endian boolean array representation of the bits of the record ciphertext.
2545
+
2542
2546
Parameters | Type | Description
2543
2547
--- | --- | ---
2544
2548
__*return*__ | ` Array .< any> ` | **
2545
2549
2546
2550
---
2547
2551
2548
- ### ` toFields () ► Array . < any > `
2552
+ ### ` toFields () ► Array `
2549
2553
2550
2554

2551
2555
2552
2556
Get the field array representation of the record ciphertext.
2553
2557
2554
2558
Parameters | Type | Description
2555
2559
--- | --- | ---
2556
- __*return*__ | ` Array . < any > ` | **
2560
+ __*return*__ | ` Array ` | *Field array representation of the record ciphertext. *
2557
2561
2558
2562
---
2559
2563
@@ -2578,7 +2582,7 @@ Get the record nonce.
2578
2582
2579
2583
Parameters | Type | Description
2580
2584
--- | --- | ---
2581
- __*return*__ | [Group](sdk-src_wasm.md) | **
2585
+ __*return*__ | [Group](sdk-src_wasm.md) | *The record nonce. *
2582
2586
2583
2587
---
2584
2588
@@ -2596,11 +2600,24 @@ Return a record plaintext from a string.
2596
2600
2597
2601
Parameters | Type | Description
2598
2602
--- | --- | ---
2599
- __record__ | ` string` | *String representation of a plaintext representation of an Aleo record*
2603
+ __record__ | ` string` | *String representation of a plaintext representation of an Aleo record. *
2600
2604
__*return*__ | [RecordPlaintext](sdk-src_wasm.md) | *Record plaintext*
2601
2605
2602
2606
---
2603
2607
2608
+ ### ` getMember (input) ► Plaintext`
2609
+
2610
+ 
2611
+
2612
+ Get the record entry matching a key.
2613
+
2614
+ Parameters | Type | Description
2615
+ --- | --- | ---
2616
+ __input__ | ` string` | *The key to retrieve the value in the record data field.*
2617
+ __*return*__ | [Plaintext](sdk-src_wasm.md) | *The plaintext value corresponding to the key.*
2618
+
2619
+ ---
2620
+
2604
2621
### ` owner () ► Address`
2605
2622
2606
2623

@@ -2609,7 +2626,7 @@ Get the owner of the record.
2609
2626
2610
2627
Parameters | Type | Description
2611
2628
--- | --- | ---
2612
- __*return*__ | [Address](sdk-src_wasm.md) | **
2629
+ __*return*__ | [Address](sdk-src_wasm.md) | *Address of the owner of the record. *
2613
2630
2614
2631
---
2615
2632
0 commit comments