Skip to content

Commit

Permalink
Merge pull request #80 from NillionNetwork/chore/update-comments-on-c…
Browse files Browse the repository at this point in the history
…ompleted-example

chore: updated comments on completed examples
  • Loading branch information
psofiterol authored Nov 21, 2024
2 parents f2b8eba + d04d465 commit 0b9e1c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions quickstart_complete/client_code/secret_addition_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 0b9e1c3

Please sign in to comment.