Onionr/scripts/testblock.py
2020-09-20 21:13:46 +00:00

13 lines
223 B
Python
Executable File

#!/usr/bin/env python3
import sys
import os
if not os.path.exists('onionr.sh'):
os.chdir('../')
sys.path.append("src/")
import onionrblocks
expire = 600
print(onionrblocks.insert(data=os.urandom(32), expire=expire))