mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fixed 2 PEP257 compliance errors
This commit is contained in:
parent
ccb7a86428
commit
0b6df62150
@ -39,8 +39,7 @@ def calculate_hash(key_list):
|
||||
|
||||
|
||||
def merkleroot(hashes):
|
||||
"""
|
||||
Computes the merkle root for a given list.
|
||||
"""Computes the merkle root for a given list.
|
||||
|
||||
Args:
|
||||
hashes (:obj:`list` of :obj:`bytes`): The leaves of the tree.
|
||||
@ -69,7 +68,7 @@ def merkleroot(hashes):
|
||||
|
||||
|
||||
def public_key64_to_address(base64_public_key):
|
||||
"""Note this only compatibile with Tendermint 0.19.0 """
|
||||
"""Note this only compatibile with Tendermint 0.19.0"""
|
||||
ed25519_public_key = public_key_from_base64(base64_public_key)
|
||||
encoded_public_key = amino_encoded_public_key(ed25519_public_key)
|
||||
return hashlib.new('ripemd160', encoded_public_key).hexdigest().upper()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user