Vitor Pamplona on Nostr: Leo, I need to define a bloom/cuckoo filter format for pubkeys so that implementation ...
Leo, I need to define a bloom/cuckoo filter format for pubkeys so that implementation A creates the filter that implementation B will use. Do you have any recommendations on how to encode the resulting filter itself?
The filter will be saved in every event as a tag, so it must be something the other client can easily decode and apply.
Bonus if the writer of the filter can specify the precision. Any tips?
Published at
2024-09-13 14:28:34Event JSON
{
"id": "1cb6966c25410f298acf5a128a3e25864c3d50dfb80032455bfb38bb47867886",
"pubkey": "460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"created_at": 1726237714,
"kind": 1,
"tags": [
[
"e",
"75f8b4e77cad6eb2d5dcdef11e195954baa6b0f97405e353a4a051af9291c80a",
"",
"root"
],
[
"e",
"9bbbb0e5202cb23702c8cecfb12334a0aca15c9be456ba9663e54f0a92e5a636"
],
[
"e",
"71800a260c3155709925e6e9e50ebdc623d3bbe0e6301bf2c52716e9b937e9d2",
"",
"reply"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"5b459807bf935ddc2f83405821bced1c8a05dfee7c80b000c337ba6bd0ad78ed"
],
[
"p",
"46fcbe3065eaf1ae7811465924e48923363ff3f526bd6f73d7c184b16bd8ce4d"
]
],
"content": "Leo, I need to define a bloom/cuckoo filter format for pubkeys so that implementation A creates the filter that implementation B will use. Do you have any recommendations on how to encode the resulting filter itself? \n\nThe filter will be saved in every event as a tag, so it must be something the other client can easily decode and apply.\n\nBonus if the writer of the filter can specify the precision. Any tips?",
"sig": "c9fad92d39bde56b640d00085bfb1d9e2299cbe4f0ab55edb15c24cbb73ef4f2f630bfd19586ce5590ff5b91cc611cc9d9c95eeb82eb3a17fe00da100bc93a3a"
}