From 9759e27e104d1e3b770e85a766356b98112c2976 Mon Sep 17 00:00:00 2001 From: Marco Argentieri <3596602+tiero@users.noreply.github.com> Date: Sat, 14 Jan 2023 03:18:41 +0100 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index faaebe2..e8ffee9 100644 --- a/README.md +++ b/README.md @@ -91,12 +91,12 @@ The NostrRPC class provides access to the Nostr public key via `this.self.pubkey It's best to ask approval from the user before signing an event. To do so, you can emit an event to the UI and wait for the user to approve or reject the request. ```typescript -import { NostrRPC } from '@nostr-connect/connect'; +import { NostrSigner } from '@nostr-connect/connect'; import { getPublicKey, signEvent, nip06 } from 'nostr-tools'; const sk = nip06.privateKeyFromSeedWords(myWords); -class MobileHandler extends NostrRPC { +class MobileHandler extends NostrSigner { async get_public_key(): Promise { return getPublicKey(sk); @@ -169,4 +169,4 @@ const { target, relay, metadata } = ConnectURI.fromURI(text); await connectURI.approve(key); // if rejects could be polite to notify the app of the rejection await connectURI.reject(key); -``` \ No newline at end of file +```