2727home = os .getenv ("HOME" )
2828load_dotenv (f"{ home } /.config/nillion/nillion-devnet.env" )
2929
30+
3031async def main ():
31- # 2. Initial setup, Initialize NillionClient against nillion-devnet
32+ # 2. Initial setup/config, then initialize the NillionClient against nillion-devnet
3233 # Use the devnet configuration generated by `nillion-devnet`
3334 network = Network .from_config ("devnet" )
3435
@@ -47,8 +48,7 @@ async def main():
4748 program_name = "secret_addition_complete"
4849 program_mir_path = f"../nada_quickstart_programs/target/{ program_name } .nada.bin"
4950
50-
51- # 3. Pay for and store the program
51+ # 3. Store the program
5252 print ("-----STORE PROGRAM" )
5353
5454 # Store program
@@ -58,7 +58,7 @@ async def main():
5858 # Print details about stored program
5959 print (f"Stored program_id: { program_id } " )
6060
61- # 4. Create the 1st secret, add permissions, pay for and store it in the network
61+ # 4. Create the 1st secret, add permissions and store it in the network
6262 print ("-----STORE SECRETS" )
6363
6464 # Create a secret
@@ -71,7 +71,7 @@ async def main():
7171 client .user_id , program_id
7272 )
7373
74- # Store a secret, passing in the receipt that shows proof of payment
74+ # Store a secret
7575 values_id = await client .store_values (
7676 values , ttl_days = 5 , permissions = permissions
7777 ).invoke ()
0 commit comments