reya's avatar
reya
_@reya.su
npub1zfss...w445
Projects: - Coop: https://github.com/lumehq/coop - Lume: https://github.com/lumehq/lume - Nostr Connect Extension: https://github.com/lumehq/nostr-connect
reya's avatar
reya 2 days ago
Sorry, I'm kinda wrong here, the stream events API is fine, but the problem is the negentropy part in gossip. After removed the negentropy sync and force to use typical stream events API, gossip is became very fast. Other temporary fix is set timeout for gossip sync very low like this: ``` GossipConfig::default() .sync_initial_timeout(Duration::from_millis(100)) .sync_idle_timeout(Duration::from_millis(100)), ``` So I think we should have an option to disable negentropy, also I think it will better if we have an API for client dev manual run gossip fetch for a Public Key cc @Yuki Kishimoto , @Awiteb View quoted note โ†’
reya's avatar
reya 2 days ago
Hi @Yuki Kishimoto , cc @Awiteb I wonder, can you add an option (new feature) to enable this kind of behavior for the Pool stream_events API? Detail: - With the current behavior, stream_events API connects to all relays, then waits for the result of each relay, then collects and processes (de-dups, forwards, etc.) - This behavior leads to very poor Gossip performance, users usually wait too long for the results because of the multi step stream_events calls - When a user calls stream_events with a Filter X, the SDK breaks down the filter, then fetches the NIP-65 relay list (with stream_events), then connects to those relays, then fetches events by Filter X again. The problem is the SDK waits for all relays to complete, as described here: Proposal: - stream_events will have an option to return early when the first result is received, without waiting for all relays - When gossip is enabled, stream_events will always return early - When returning early, other relays will automatically unsubscribe
reya's avatar
reya 5 days ago
@Yuki Kishimoto all latest changes in rust-nostr are insane, i'm going to fully rewrite my app ๐Ÿคฃ
reya's avatar
reya 5 days ago
kotlin is more enjoyable than rust
reya's avatar
reya 1 week ago
Progress: Coop (NIP-17 client) for Android. Fully adapts Material 3 (Expressive), built with Kotlin Multiplatform. Still WIP, but I've made good progress, maybe a release later this month. About the features, I want to keep Coop simple, a dumb app just for messaging, so it will only support NIP-17 and NIP-4e later, nothing more. Thanks @Vitor Pamplona and @Yuki Kishimoto for helping me. View quoted note โ†’
reya's avatar
reya 2 weeks ago
Hi @Yuki Kishimoto I've found a weird issue with Nostr SDK FFI for KMP. I've added relay(s) to the pool then connect. But when I subscribe or send event, the pool always empty, I also have tried get all relays from the pool by `client?.relays()` but it still empty. Nothing weird in the logs either (relay connection then relay connected).
reya's avatar
reya 2 weeks ago
I spend 1 hour just to import a fucking icon to android studio
reya's avatar
reya 2 weeks ago
After two weeks of learning kotlin, I can now read the amethyst codebase
reya's avatar
reya 3 weeks ago
Yo. Remember Nostr Connect (web extension) that was designed by @HaloKat . I've released a new version with a different name (*) called Nostr Signer. It's currently available on Firefox and under review for Chrome. Changelog: - Added support for NIP-44 - Fixed bugs * About the new name: the previous extension was published under my old email, but Google has locked my account, so I have to re-publish it under a new name.
reya's avatar
reya 3 weeks ago
I think I should use quartz (from amethyst), it's more mature for KMP
reya's avatar
reya 3 weeks ago
Hi @Yuki Kishimoto I'm using Nostr SDK FFI for my KMP project. I wonder do you plan to adapt the new API changes on the master branch for ffi anytime soon?
reya's avatar
reya 1 month ago
Hey @HaloKat , Do you still have an SVG version of the Nostr Connect extension icon? I'm working on a new update to republish it, but I've lost the SVG file for the logo. image
โ†‘