Commit b90010d7 authored by Pascal Engélibert's avatar Pascal Engélibert

Add logo

parent f01ffba0
This diff is collapsed.
......@@ -36,14 +36,6 @@ def bin_to_int(b):
def int_to_bin(n, b=4):
return bytes([(n>>(i*8))&255 for i in range(b)])
# Set fixed length 44
def normalize_pubkey(pubkey):
return pubkey + " "*(44-len(pubkey))
# Set original length (43 or 44)
def clean_pubkey(pubkey):
return pubkey.replace(" ", "")
def gen_keys():
return secrets.token_urlsafe(), secrets.token_urlsafe()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment