Damus

Recent Notes

pippellia profile picture
the query "max" didn't return great results....

Check out npub.world for a great search experience. That client is powered by @nprofile1q..., which has a free search api

pippellia profile picture
In the future I'll be looking at replacing go-nostr, and this seems a good library for it.

Just a few comments:

1) ID, Pubkey, Sig imo should be specific types of [32]byte or [64]byte, all represented as string with the method Hex(). This would allow inspections of individual bytes which I think might be useful.

2) Filter.Limit, when unspecified I think it should be MaxInt, because an unspecified limit means "give me everything". Similar to Since and Until, this would allow to avoid pointer checks and simply using comparison operators.

if filter.Limit > 1000 {
filter.Limit = 1000
}

pippellia profile picture
yeah, I like this approach. It's what I'm following already, but not at the same level of categorization

- library for data structures (now go-nostr, but not for long)
- relay framework = rely (was, messages, relay logic)
- database (nostr-sqlite)



pippellia profile picture
I have mixed feelings on it. It's very cool but also it doesn't reach the DX I would love. I'll borrow a few parts and credit your work

pippellia profile picture
yes I don't like go-nostr either. In the future all of my project will migrate to a minimal library.

Where can I check your work?

pippellia profile picture
you can make whatever database you want and it will fit into rely.

Take a look it's super modular, which I agree it's a very important property of code

pippellia profile picture
Nip-46 does

Client <--> public relays <--> Signer

And instead you are saying that it should be

Client <--> Signer

So you remove a roundtrip. For the authentication, the easiest to code would be the client sends an event signed by the employee key, signer validates signature and rules, and returns the same event signed by the company key.

Using traditional auth is going to be I think more complex and less secure.

I could build this with rely relatively easy

pippellia profile picture
yes. So the credits are linked to the key that signed the event.

Any reputable key on nostr gets 100 credits / day. If the user is signed out you would have to hardcode a key.

But actually I would just ask the user to sign in.