Add tool to convert ipfs ID to pubkey

This commit is contained in:
poka 2020-12-08 18:01:42 +01:00
parent 042e66a091
commit 5c65c8fb55
1 changed files with 10 additions and 0 deletions

10
zen/tools/ipfs_to_g1.py Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python3
import sys, base58
ID = sys.argv[1]
hexFmt = base58.b58decode(ID)
noTag = hexFmt[6:]
b58Key = base58.b58encode(noTag).decode()
print(b58Key)