pub trait Nip70: Send + Sync {
// Required method
fn sign_event<'life0, 'async_trait>(
&'life0 self,
event: UnsignedEvent,
) -> Pin<Box<dyn Future<Output = Result<Event, Nip70ServerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Defines the server-side functionality for the NIP-70 protocol.
Implement this trait and pass it to Nip70Server::start()
to run a NIP-70 server.
Required Methods§
Sourcefn sign_event<'life0, 'async_trait>(
&'life0 self,
event: UnsignedEvent,
) -> Pin<Box<dyn Future<Output = Result<Event, Nip70ServerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign_event<'life0, 'async_trait>(
&'life0 self,
event: UnsignedEvent,
) -> Pin<Box<dyn Future<Output = Result<Event, Nip70ServerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Signs a Nostr event on behalf of the signed-in user.