View Source Nostr.Event.Signer (Nostr v0.1.3)

Signs events, making sure they're going to be accepted on the nostr network as the user's own

Link to this section Summary

Functions

Applies the schnorr signatures to an event and adds signature to it if successful

Link to this section Functions

Link to this function

sign_event(event, privkey)

View Source
@spec sign_event(Nostr.Event.t(), K256.Schnorr.signing_key()) ::
  {:ok, Nostr.Event.t()} | {:error, binary()}

Applies the schnorr signatures to an event and adds signature to it if successful