registerEvent method

NostrEvent registerEvent(
  1. NostrEvent event
)

Registers an event to the registry with the given event.

Implementation

NostrEvent registerEvent(NostrEvent event) {
  eventsRegistry[eventUniqueId(event)] = event;

  return eventsRegistry[eventUniqueId(event)]!;
}