Server to collect DHT views from yggdrasil nodes and store in a data base
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env python |
|
|
|
import json |
|
from pk2addr import keyTo128BitAddress |
|
|
|
with open('api/result.json', 'r') as f: |
|
data = json.load(f) |
|
|
|
addlist = open("api/addresses.txt", "w") |
|
|
|
for key, _ in data['yggnodes'].items(): |
|
addlist.write(keyTo128BitAddress(key) + "\n") |
|
|
|
addlist.close()
|
|
|