Draft: Identity.can_sign property
This commit is contained in:
parent
a6c3d1f029
commit
e125ef6cdb
@ -147,6 +147,10 @@ class Identity:
|
||||
|
||||
return f'{self.name} {mnemonic}'
|
||||
|
||||
@property
|
||||
def can_sign(self) -> bool:
|
||||
return bool(self.sign_key)
|
||||
|
||||
def sign(self, data: str) -> str:
|
||||
"""Sign data"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user