Featured
Following
63 days agoβ€’β€’β€’
This is how OTP on npub.cash looks like:
1. Request an OTP via the API
2. Get the OTP from your nostr DM
3. Request an auth token by redeeming the OTP via the API
4. Interact with protected endpoints using the auth token
63 days agoβ€’β€’β€’
OTP login coming to npub.cash πŸ”₯
64 days agoβ€’β€’β€’
65 days agoβ€’β€’β€’
The present is eternally lacking πŸ”₯
65 days agoβ€’β€’β€’
It is. Just like having FOSS wallet software
65 days agoβ€’β€’β€’
My wife told me that I live in a bubble. When I asked why she thinks that, she pointed out that my bookshelf is Bitcoin, Jordan Peterson and software books to one third each πŸ€·πŸΌβ€β™‚οΈ
67 days agoβ€’β€’β€’
One of my primary goals for the next iteration of npub.cash is to make authorization simpler, while keeping a high level of security.
The new version no longer relies on NIP-98 alone but on a mix of NIP-98 and JWTs. Most of the protected endpoints can be accessed by providing a valid auth token. This token can be obtained by providing a valid NIP-98 event ONCE. At the same time, all endpoints still accept valid NIP-98 headers instead of the JWT (this is great for apps that have full access to nsecs).
By default withdrawing is not possible using a JWT. However, users can opt-in to withdrawals using JWTs by signaling this when acquiring their auth token using NIP-98.
This keeps things secure, while at the same time reducing NIP-07 friction a lot. Reduced NIP-07 friction equals higher security as it makes sure users are not bullied into insecure default settings for their signers.
Finally, this opens up the possibility of OTP logins via nostr DMs. Instead of obtaining a JWT using NIP-98, users can get one by providing an OTP that the service sends via a secure nostr DM. I am still figuring out the best defaults for this, but I think the best way would be to require a second OTP on withdrawals.
68 days agoβ€’β€’β€’
People fail to understand how important patience is…
100,000 x 1,2^20 = 3,833,760
68 days agoβ€’β€’β€’
P2P is beautiful. What the fuck is a Satoshi Test?!
79 days agoβ€’β€’β€’
What are the things you want to see in a v2 of npub.cash?
79 days agoβ€’β€’β€’
Hi nostr,
What are your favourite affordable sneakers?
- available in EU
- maximal bang for the buck
80 days agoβ€’β€’β€’
The latest RC of cashu-ts introduces the concept of Factories. A Factory is a function that lets developers take control over how Cashu outputs will be generated by cashu-ts.
Consumers can also define a "default" factory that is going to be used for all outputs that are considered "keep" outputs (mints + melt / swap change). This paves the way for much easier state management and WAY less code.
In this very simplistic example I show how a simple closure can be used to make sure that all the proofs generated are derived from a seed phrase, while outsourcing the counter management to the factory
80 days agoβ€’β€’β€’
- Released cashu-ts v2.2.0-rc3
- Had a massive steak
LOAD OLDER THREADS