Skip to content

Commit 8f3e1f7

Browse files
author
K
committed
nip-46 README
1 parent 72c5508 commit 8f3e1f7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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.

0 commit comments

Comments
 (0)