File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
development-utils/nip-46-client Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ # NIP-46 Client Login Implementation
2
+
3
+ This folder contains the implementation of basic NIP-46 login for a
4
+ sample external site located in ` development-utils/nip-46-client ` .
5
+
6
+ ## Getting Started
7
+
8
+ To run the service, navigate to this folder and execute the following
9
+ command:
10
+
11
+ ``` bash
12
+ deno task start
13
+ ```
14
+
15
+ Once the service is running, follow the instructions provided on the
16
+ website.
17
+
18
+ ### How It Works
19
+
20
+ When you make a request to the server (e.g., by loading the page), a
21
+ temporary keypair and secret are generated. This information is
22
+ displayed in the ` nostrconnect:// ` string. The application utilizes
23
+ this string to determine the appropriate actions and sends a signed
24
+ acknowledgment ("ack") to indicate that the user approves the login
25
+ and possesses the secret key corresponding to the public key.
26
+
27
+ In the context of NIP-46, this process is referred to as a "Direct
28
+ connection initiated by the client."
29
+
30
+ ## Next Steps
31
+
32
+ Future enhancements include implementing NIP-5 to verify the public
33
+ key and exploring the option for initiating the connection via the
34
+ signer. This could involve entering your Trustroots username and
35
+ receiving a push notification to the app to commence the sign-in
36
+ process.
You can’t perform that action at this time.
0 commit comments