From 9241bc4224925807327c2ff80584ce675da822cd Mon Sep 17 00:00:00 2001 From: Obiajulu <47371105+ObiajuluM@users.noreply.github.com> Date: Sat, 15 Oct 2022 20:41:27 -0700 Subject: [PATCH] Update generate_condition.py --- content/_code-samples/escrow/py/generate_condition.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/_code-samples/escrow/py/generate_condition.py b/content/_code-samples/escrow/py/generate_condition.py index 7d4529c754..58b9de70cd 100644 --- a/content/_code-samples/escrow/py/generate_condition.py +++ b/content/_code-samples/escrow/py/generate_condition.py @@ -8,12 +8,12 @@ from cryptoconditions import PreimageSha256 # Generate a random preimage with at least 32 bytes of cryptographically-secure randomness. secret = urandom(32) -# generate cryptic image from secret +# Generate cryptic image from secret fufill = PreimageSha256(preimage=secret) -# parse image and return the condition and fulfillment +# Parse image and return the condition and fulfillment condition = str.upper(fufill.condition_binary.hex()) # conditon fulfillment = str.upper(fufill.serialize_binary().hex()) # fulfillment -# print condition and fulfillment +# Print condition and fulfillment print(f"condition: {condition} \n fulfillment {fulfillment}")