fix: nostr zaps (#63)
This commit is contained in:
parent
5fb5aa382d
commit
efb2eef323
2 changed files with 9 additions and 3 deletions
|
|
@ -91,9 +91,8 @@ class PrivateKey:
|
|||
|
||||
def encrypt_dm(self, dm: EncryptedDirectMessage) -> None:
|
||||
assert dm.recipient_pubkey, "Recipient public key must be set"
|
||||
assert dm.cleartext_content, "Cleartext content must be set"
|
||||
dm.content = self.encrypt_message(
|
||||
message=dm.cleartext_content, public_key_hex=dm.recipient_pubkey
|
||||
message=dm.cleartext_content or "", public_key_hex=dm.recipient_pubkey
|
||||
)
|
||||
|
||||
def decrypt_message(self, encoded_message: str, public_key_hex: str) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue