mirror of https://github.com/r4sas/Niflheim-api
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.
15 lines
289 B
15 lines
289 B
1 year ago
|
#!/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()
|