View Source Nostr.Event.Types.MetadataEvent (Nostr v0.1.2)

Link to this section Summary

Link to this section Functions

Link to this function

create_event(profile, pubkey)

View Source
@spec create_event(
  %Nostr.Models.Profile{
    about: term(),
    banner: term(),
    display_name: term(),
    lud16: term(),
    name: term(),
    nip05: term(),
    picture: term(),
    website: term()
  },
  <<_::256>>
) ::
  {:ok,
   %Nostr.Event{
     content: term(),
     created_at: term(),
     id: term(),
     kind: term(),
     pubkey: term(),
     sig: term(),
     tags: term()
   }}
  | {:error, binary()}