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