Spaces:
Runtime error
Runtime error
Update crypt.py
Browse files
crypt.py
CHANGED
@@ -237,8 +237,11 @@ def address(im):
|
|
237 |
hash_1 = calculate_hash(public_key, hash_function="sha256")
|
238 |
hash_2 = calculate_hash(hash_1, hash_function="ripemd160")
|
239 |
address = base58.b58encode(hash_2)
|
|
|
|
|
240 |
print (address)
|
241 |
|
|
|
242 |
|
243 |
|
244 |
################ crypt #####################
|
|
|
237 |
hash_1 = calculate_hash(public_key, hash_function="sha256")
|
238 |
hash_2 = calculate_hash(hash_1, hash_function="ripemd160")
|
239 |
address = base58.b58encode(hash_2)
|
240 |
+
address.strip("b")
|
241 |
+
address.strip("'") if address.startswith("'") else address.strip('"')
|
242 |
print (address)
|
243 |
|
244 |
+
return (address)
|
245 |
|
246 |
|
247 |
################ crypt #####################
|