Draft: Identity.can_sign property

This commit is contained in:
Gergely Polonkai 2022-05-09 17:17:04 +02:00
parent a6c3d1f029
commit e125ef6cdb
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4
1 changed files with 4 additions and 0 deletions

View File

@ -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"""