M. Dilger on Nostr: Thanks. I've tried several times (unsuccessfully) to build another library on top of ...
Thanks.
I've tried several times (unsuccessfully) to build another library on top of nostr-types which provide a futures Stream<Item=Event> over a websocket listener, provides high-level actions that use it (like post, fetch a post, fetch a contact list, etc), and allows the consumer to plug-in their own websocket listening code as long as it implements the Trait I need to drive it. That would be the library to build new clients on. But it's rather tricky to write that kind of rust. I may not be quite smart enough, or maybe I've just not succeeded yet.
Published at
2023-01-26 07:25:33Event JSON
{
"id": "10f8f5583adb860a6c5dd5215eed3f5cef5705e98f7619e3d23d3388fff7eb8c",
"pubkey": "ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49",
"created_at": 1674717933,
"kind": 1,
"tags": [
[
"p",
"d3d74124ddfb5bdc61b8f18d17c3335bbb4f8c71182a35ee27314a49a4eb7b1d"
],
[
"p",
"d0debf9fb12def81f43d7c69429bb784812ac1e4d2d53a202db6aac7ea4b466c"
],
[
"e",
"fdbca2a546005ec1d4d6a35ae453fcd62fac205ecd03937ac1c6e859740672c4",
"wss://nostr-pub.wellorder.net",
"root"
],
[
"e",
"001063ac50be8a09a4a27fa409e6eb45163b04604dbd1e42ad34f429fdc1052b",
"wss://nostr-pub.wellorder.net",
"reply"
],
[
"client",
"gossip"
]
],
"content": "Thanks.\n\nI've tried several times (unsuccessfully) to build another library on top of nostr-types which provide a futures Stream\u003cItem=Event\u003e over a websocket listener, provides high-level actions that use it (like post, fetch a post, fetch a contact list, etc), and allows the consumer to plug-in their own websocket listening code as long as it implements the Trait I need to drive it. That would be the library to build new clients on. But it's rather tricky to write that kind of rust. I may not be quite smart enough, or maybe I've just not succeeded yet.",
"sig": "aad31fb0ed7991c386b9489cd6b9afe338cf7e1fa60ee612fb95404d463e05712aefbe14725ac0e7d6287366fad2938fdf16e96ffc01378f666b9eb3a3b6e111"
}