I see rust-nostr support negentropy like strfry, it look cool feature. But I'm not figure how to use it properly 😅

Reply to this note

Please Login to reply.

Discussion

Wow, this is awesome, maybe nostr:npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet can enlighten us in possible use cases and how to use

The v0.27 have support to negentropy but have some issues. I fixed all the issues in master branch (you can specify a git repo and commit in the Cargo.toml or wait for v0.28)

To use negentropy you need a persistent DB. Configured that with the ClientBuilder, just call "client.reconcile". All the reconciled event will be saved in the db: use client.database().query(filters) to query what you need.