From d04d465b980608228774daa1ac87c17111a3c441 Mon Sep 17 00:00:00 2001 From: psofiterol Date: Thu, 21 Nov 2024 14:33:00 +0200 Subject: [PATCH] chore: updated comments on completed examples --- .../client_code/secret_addition_complete.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quickstart_complete/client_code/secret_addition_complete.py b/quickstart_complete/client_code/secret_addition_complete.py index 972b110b..42c415ee 100644 --- a/quickstart_complete/client_code/secret_addition_complete.py +++ b/quickstart_complete/client_code/secret_addition_complete.py @@ -27,8 +27,9 @@ home = os.getenv("HOME") load_dotenv(f"{home}/.config/nillion/nillion-devnet.env") + async def main(): - # 2. Initial setup, Initialize NillionClient against nillion-devnet + # 2. Initial setup/config, then initialize the NillionClient against nillion-devnet # Use the devnet configuration generated by `nillion-devnet` network = Network.from_config("devnet") @@ -47,8 +48,7 @@ async def main(): program_name = "secret_addition_complete" program_mir_path = f"../nada_quickstart_programs/target/{program_name}.nada.bin" - - # 3. Pay for and store the program + # 3. Store the program print("-----STORE PROGRAM") # Store program @@ -58,7 +58,7 @@ async def main(): # Print details about stored program print(f"Stored program_id: {program_id}") - # 4. Create the 1st secret, add permissions, pay for and store it in the network + # 4. Create the 1st secret, add permissions and store it in the network print("-----STORE SECRETS") # Create a secret @@ -71,7 +71,7 @@ async def main(): client.user_id, program_id ) - # Store a secret, passing in the receipt that shows proof of payment + # Store a secret values_id = await client.store_values( values, ttl_days=5, permissions=permissions ).invoke()