Skip to content

Commit

Permalink
Add Comment to decryptedContent
Browse files Browse the repository at this point in the history
  • Loading branch information
joelklabo committed Aug 12, 2023
1 parent 0d4d1bf commit 809e519
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/NostrSDK/Events/DirectMessageEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 809e519

Please sign in to comment.