From 1ae097291a42022013969287ecb91bafa60ae625 Mon Sep 17 00:00:00 2001 From: maeck70 <35159091+maeck70@users.noreply.github.com> Date: Mon, 15 Jan 2018 12:13:19 -0800 Subject: [PATCH] Clarify Address usage in send example Improved the script to explain the recipient address a little better. Changed the address concat to a reference to a specific kind of Iota address. This is loosely inspired by the JAVA sen transaction test case. --- examples/send_transfer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/send_transfer.py b/examples/send_transfer.py index 732c121d..011c553b 100644 --- a/examples/send_transfer.py +++ b/examples/send_transfer.py @@ -4,6 +4,8 @@ """ from iota import * +SEED1 = b"THESEEDOFTHEWALLETSENDINGGOESHERE999999999999999999999999999999999999999999999999" +ADDRESS_WITH_CHECKSUM_SECURITY_LEVEL_2 = b"RECEIVINGWALLETADDRESSGOESHERE9WITHCHECKSUMANDSECURITYLEVEL2999999999999999999999999999999" # Create the API instance. api =\ @@ -12,7 +14,7 @@ 'http://localhost:14265/', # Seed used for cryptographic functions. - seed = b'SEED9GOES9HERE' + seed = SEED1 ) # For more information, see :py:meth:`Iota.send_transfer`. @@ -26,8 +28,7 @@ # Recipient of the transfer. address = Address( - b'TESTVALUE9DONTUSEINPRODUCTION99999FBFFTG' - b'QFWEHEL9KCAFXBJBXGE9HID9XCOHFIDABHDG9AHDR' + ADDRESS_WITH_CHECKSUM_SECURITY_LEVEL_2, ), # Amount of IOTA to transfer.