Event JSON
{
"id": "62334d7de477586729a70e670b3197b293f8b4c37e6ed2b968651e1ed098d7c8",
"pubkey": "68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272",
"created_at": 1738337131,
"kind": 1,
"tags": [
[
"e",
"622df0330db810026f6c3579b3eae7c94749a43644ccd7a8593ac31c56d469f8",
"",
"root"
],
[
"e",
"226eff5bbe159a5cbbfa0fdbd88c2dcd1bff9a637717bcf132e724933699addf"
],
[
"e",
"e47ae433974c2bbc4b8f9285f5631ded25d41c245075b175a84ac7f588ebae53",
"",
"reply"
],
[
"p",
"68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272"
],
[
"p",
"63fe6318dc58583cfe16810f86dd09e18bfd76aabc24a0081ce2856f330504ed"
],
[
"r",
"https://github.com/rust-nostr/nostr/blob/d7a8372e28a5dd7e1ce02b725ee0b43c798e332f/bindings/nostr-sdk-ffi/src/protocol/nips/nip01.rs"
],
[
"r",
"https://cjycode.com/flutter_rust_bridge/"
]
],
"content": "I usually copy the stuff I already exposed in the UniFFI bindings and adapt it to the flutter_rust_bridge.\n\nSo, 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\n\nTo 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.",
"sig": "4231bc2603d1634f0447dedbc1e7aa6991e1807cf1c3b8924737d10c8b8001b44ae4ddd4f8d90fbcf0f0cfe3ee84ccf9f7b43b94f24a4d3e254e03a23774eeed"
}