Damus
Yuki Kishimoto profile picture
Yuki Kishimoto
@Yuki Kishimoto

GitHub: https://github.com/yukibtc
PGP: 86F3 105A DFA8 AB58 7268 DCD7 8D3D CD04 2496 19D1

Relays (5)
  • wss://relay.nostr.wirednet.jp/ – read & write
  • wss://nostr.oxtr.dev/ – read & write
  • wss://nostr.wine/ – read & write
  • wss://pyramid.fiatjaf.com/ – write
  • wss://pyramid.fiatjaf.com/inbox – read

Recent Notes

reya · 4w
You can try run my project: https://git.reya.su/reya/coop-mobile/src/branch/develop/ it is very basic app, didn't have much code for now, and it run on a my fork of nostr-sdk-ffi, but it almost same a...
Yuki Kishimoto profile picture
I just took a quick look, and I think the problem is that the relays being added with NONE capabilites. This means they can't do anything (neither read nor write).

Unless you want to use specific capabilities, you can omit that argument in addRelay, so they will be added with the default capabilities (READ + WRITE).
reya · 4w
You can try run my project: https://git.reya.su/reya/coop-mobile/src/branch/develop/ it is very basic app, didn't have much code for now, and it run on a my fork of nostr-sdk-ffi, but it almost same as upstream (I only add more functions)
reya · 6w
Hi nostr:npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet 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 an...
Yuki Kishimoto profile picture
I've already adapted FFI APIs but not released anything yet. There are still a some things to rework before the next release.

I think if you fork the repo, you should be able to run the workflow for building them by yourself:

Fork the repo -> Go to "Actions" -> Select the "Publish" workflow -> Click on "Run workflow" -> Select the commit to use, deselect everything except "Build KMP" (the "Swift package version" can be empty) and DON'T select "Publish" -> Run it and you'll find the AAR in the artifacts (called nostr-sdk-ffi-kmp-aar).

Compilation can be done also locally, but unfortunately requires macos as it needs binaries also for iOS, and I didn't found a way to cross-compile them from Linux.

https://github.com/rust-nostr/nostr-sdk-ffi/commit/72c07c61b460c701dcfc93d51bc83e4a1c5eb689
1
reya · 5w
Yes, I've forked and added two functions: `send_event_no_wait (ack policy none)` and `send_event_to_nip17`, these are only stuffs I need
The Bitcoin Libertarian - En Español · 9w
"Eso es lo que necesitamos, un desarrollo sólido y transparente de la tecnología Nostr, sin distracciones de los shitcoins".
The Bitcoin⚡️Libertarian 🇦🇷🇺🇸🇸🇻 · 9w
Love this, more people need to be aware of Nostr and its potential to disrupt the centralized messaging systems like Twitter. We need to keep pushing the adoption of decentralized protocols like BTC and Nostr.
The Bitcoin Libertarian - En Español · 9w
"Che, esto es genial, finalmente alguien está trabajando en integrar Nostr con el Bitcoin real".
reya · 15w
Sorry, somehow all messages have been deleted on this relay, but the other relay still has them. NIP17 is driving me mad.
reya · 15w
my debug repo: https://github.com/reyakov/nostrsdk-debug cc nostr:npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet
Yuki Kishimoto profile picture
I've checked this but I can't reproduce the issue. I've tried both the auto-auth implementation and the manual one, and both successfully send the REQ after the AUTH and receive the EOSE.

To debug the messages that the client send, you have to enable the debug level: "RUST_LOG=debug cargo run"

You must enable the "env-filter" feature for the tracing-subscriber dependency, to be able use RUST_LOG
2
Willow ✨ · 15w
So we’re at the "works on my machine" stage of the grief cycle, are we? 🙄 If I have to squint at one more terminal window running `RUST_LOG=debug cargo run` just to hunt down a missing `EOSE`, I’m filing for divorce from this codebase. Hopefully, that `env-filter` actually behaves for once,...
reya · 15w
Yes, this is my struggle. Everything seems normal, but somehow the relay didn't send back any gift wrap events despite the filter listening for all events continuously. I added another relay like nip17.com, and it works fine.
reya · 16w
Hi nostr:npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet , I think I've found the problem here. It looks like the SDK is waiting for the timeout to finish before returning the result, ...
Yuki Kishimoto profile picture
Thanks, I'll check it, but I think that it's due to an unreachable relay that has just been added to the pool.
The disconnected relays are skipped (return error instead of waiting) after the second failed attempt.

To confirm it, can you try to decrease the connection timeout, configurable via the Client Builder? (I've added this feature yesterday in master branch).
Or, have you a small code snippet to reproduce it? And what relays did you used?

Regarding the issues, are perfect here on nostr.
But instead of using the text notes, the NIP34 would be better. Here is the repo: https://gitworkshop.dev/yukikishimoto.com/nostr

For desktop you can use gitplaza, by @dluvian

https://codeberg.org/dluvian/gitplaza
reya · 16w
Both. I'm just tested the sqlite backend, it still have same issue.
reya · 16w
It looks like nostr-sdk automatically runs negentropy sync when relays are added. I think this causes a bottleneck in my app and creates significant delays. My app flow works like this: 1. Users launch the app 2. The app connects to bootstrap relays 3. The app gets the user's relay list and verifie...