damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

AccountDeletion.swift (447B)


      1 //
      2 //  AccountDeletion.swift
      3 //  damus
      4 //
      5 //  Created by William Casarin on 2023-01-30.
      6 //
      7 
      8 import Foundation
      9 
     10 
     11 func created_deleted_account_profile(keypair: FullKeypair) -> NostrEvent? {
     12     let about = "account deleted"
     13     let name = "nobody"
     14 
     15     let profile = Profile(name: name, about: about)
     16 
     17     guard let content = encode_json(profile) else { return nil }
     18     return NostrEvent(content: content, keypair: keypair.to_keypair(), kind: 0)
     19 }