mirror of https://github.com/nucypher/nucypher.git
Seal needs a fingerprint too.
parent
cf7b0053fd
commit
e55dda7ace
|
@ -695,6 +695,14 @@ class Seal(object):
|
|||
def without_metabytes(self):
|
||||
return self.character._crypto_power.pubkey_sig_bytes().without_metabytes()
|
||||
|
||||
def fingerprint(self):
|
||||
"""
|
||||
Hashes the key using keccak-256 and returns the hexdigest in bytes.
|
||||
|
||||
:return: Hexdigest fingerprint of key (keccak-256) in bytes
|
||||
"""
|
||||
return keccak_digest(bytes(self)).hex().encode()
|
||||
|
||||
|
||||
class StrangerSeal(Seal):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue