What is Nostr?
Yuki Kishimoto
npub1drv…seet
2025-01-31 15:25:31
in reply to nevent1q…yzhp

Yuki Kishimoto on Nostr: I usually copy the stuff I already exposed in the UniFFI bindings and adapt it to the ...

I usually copy the stuff I already exposed in the UniFFI bindings and adapt it to the flutter_rust_bridge.

So, in the case of metadata stuff, I would copy and adapt this: https://github.com/rust-nostr/nostr/blob/d7a8372e28a5dd7e1ce02b725ee0b43c798e332f/bindings/nostr-sdk-ffi/src/protocol/nips/nip01.rs

To adapt it, I follow these docs https://cjycode.com/flutter_rust_bridge/ or I just check the other modules I already adapted. In short: replace the uniffi macros with `frb` and use the `Result` from anyhow. If a new module is added, it must be exported in the `lib/nostr_sdk.dart` file.
Author Public Key
npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet