Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jjos2372 committed May 18, 2020
1 parent 7553c83 commit 9920be1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
ret = dongle.exchange(bytearray.fromhex(CLA + INS + P1 + P2 + LEN + DATA))
print("version ", binascii.hexlify(ret))

# INS = INS_GET_PUBLIC_KEY
# LEN = "03"
# DATA = ACCOUNT + CHANGE + INDEX
# ret = dongle.exchange(bytearray.fromhex(CLA + INS + P1 + P2 + LEN + DATA))
# print("ret ", str(ret[0]))
# print("publicKey ", binascii.hexlify(ret[1:1+32]))
INS = INS_GET_PUBLIC_KEY
LEN = "03"
DATA = ACCOUNT + CHANGE + INDEX
ret = dongle.exchange(bytearray.fromhex(CLA + INS + P1 + P2 + LEN + DATA))
print("ret ", str(ret[0]))
print("publicKey ", binascii.hexlify(ret[1:1+32]))

# # Show the address for the given index, blocks for user input (wait for an accept)
# INS = INS_SHOW_ADDRESS
# LEN = "03"
# DATA = ACCOUNT + CHANGE + INDEX
# ret = dongle.exchange(bytearray.fromhex(CLA + INS + P1 + P2 + LEN + DATA))
# print("ret ", str(ret[0]))
# Show the address for the given index, blocks for user input (wait for an accept)
INS = INS_SHOW_ADDRESS
LEN = "03"
DATA = ACCOUNT + CHANGE + INDEX
ret = dongle.exchange(bytearray.fromhex(CLA + INS + P1 + P2 + LEN + DATA))
print("ret ", str(ret[0]))

# An ordinary payment transaction
INS = INS_AUTH_SIGN_TXN
Expand Down

0 comments on commit 9920be1

Please sign in to comment.