Doug Hoyte on Nostr: Got it! I will try to think of the best way to do read-level authorisation, which I ...
Got it! I will try to think of the best way to do read-level authorisation, which I think is the building block we need for this. I'm thinking something like a "virtual filter" that is applied to all queries and has the ability to remove disallowed events from the output. I think this would be integrated at the DB querying level, so that (ie) you don't get fewer results than your limit, as might happen if it was done at a post-processing stage.
Published at
2023-05-07 14:47:37Event JSON
{
"id": "5d406dd9e45ddbed3b12af209ef66397bd13216e54a159ac96bb97d6e82248af",
"pubkey": "218238431393959d6c8617a3bd899303a96609b44a644e973891038a7de8622d",
"created_at": 1683470857,
"kind": 1,
"tags": [
[
"e",
"f70d6db9005ce00a8abf314caa16463c8b1b0b2cc1fe8ecebc144d1823a0bd74",
"",
"root"
],
[
"e",
"8570c9e4253f9ef4283017f8fa1ff76ee1a4743283faa7d0f47ca9471f2464cf",
"",
"reply"
],
[
"p",
"ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49"
],
[
"p",
"218238431393959d6c8617a3bd899303a96609b44a644e973891038a7de8622d"
],
[
"p",
"79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6"
],
[
"p",
"2d5b6404df532de082d9e77f7f4257a6f43fb79bb9de8dd3ac7df5e6d4b500b0"
],
[
"p",
"1bc70a0148b3f316da33fe3c89f23e3e71ac4ff998027ec712b905cd24f6a411"
],
[
"p",
"0c99877612291bd818b3dd92f2852b823557b3744c3cb10470865c7a56a4929b"
]
],
"content": "Got it! I will try to think of the best way to do read-level authorisation, which I think is the building block we need for this. I'm thinking something like a \"virtual filter\" that is applied to all queries and has the ability to remove disallowed events from the output. I think this would be integrated at the DB querying level, so that (ie) you don't get fewer results than your limit, as might happen if it was done at a post-processing stage.",
"sig": "d3c317788526a4f423be48cc235cc2b8ef8eb949a48044b9034d5ad72fcd8e2075a6c2745cfd8a2d45cf291b68ea1a2e525b7b82b7c97f5bce89c1bcbc033626"
}