Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generating IOTA addresses from a seed (#2)
# The snippet is a part of the IOTA Developer Essentials project. You can reach it at https://hribek25.github.io/IOTA101/
# Complete description and story behind the snippet is available at: https://hribek25.github.io/IOTA101/Allchapters_python.ipynb.html#2508A6FF9241
# Requirement: PyOTA library (!pip install pyota)
from iota.crypto.addresses import AddressGenerator
from pprint import pprint
MySeed = b"WKQDUZTGFKSSLACUCHHLZRKZBHSDSCEBHKUPDLKFBQALEBKDMFRPUQGZRXAADPG9TSRTZGGBZOFRJCFMM"
#security level is defined during generator init
generator = AddressGenerator(seed=MySeed,
security_level=2)
result = generator.get_addresses(0, 3) #index, count
pprint(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment