From 809e51939d4c47c9ab876eff3fbe6a278ccb20d6 Mon Sep 17 00:00:00 2001 From: Joel Klabo Date: Sat, 12 Aug 2023 07:00:00 -0700 Subject: [PATCH] Add Comment to decryptedContent --- Sources/NostrSDK/Events/DirectMessageEvent.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/NostrSDK/Events/DirectMessageEvent.swift b/Sources/NostrSDK/Events/DirectMessageEvent.swift index e7b3b18..49dcd12 100644 --- a/Sources/NostrSDK/Events/DirectMessageEvent.swift +++ b/Sources/NostrSDK/Events/DirectMessageEvent.swift @@ -12,6 +12,7 @@ import Foundation /// > Note: [NIP-04 Specification](https://github.com/nostr-protocol/nips/blob/master/04.md) public final class DirectMessageEvent: NostrEvent, DirectMessageEncrypting { + /// Returns decrypted content from Event given a `privateKey` public func decryptedContent(using privateKey: PrivateKey) throws -> String { let recipient = tags.first { tag in tag.name == .pubkey