Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
IOTA address and checksum
# The snippet is a part of the IOTA Developer Essentials project. You can reach it at
# Complete description and story behind the snippet is available at:
# Requirement: PyOTA library (!pip install pyota)
import iota
from pprint import pprint
# some IOTA address
pprint("Original input excl. checksum address:")
print("Length: %s" % len(Adr))
AdrInclCheckSum = Adr.with_valid_checksum()
print("\nInput address including checksum:")
pprint(AdrInclCheckSum) # the last 9 trytes is the checksum
print("Length incl checksum: %s" % len(AdrInclCheckSum))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment