Add tool to convert ipfs ID to pubkey
This commit is contained in:
parent
042e66a091
commit
5c65c8fb55
|
@ -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)
|
Loading…
Reference in New Issue