Alex Gleason 🐍🚬 on Nostr: The way my Web of Trust policy works, is that it's actually a simple whitelist ...
The way my Web of Trust policy works, is that it's actually a simple whitelist policy. A whitelist policy is given a set of pubkeys and only allows events by those authors. The only difference is that the WoT policy generates the pubkeys first before passing them in.
But that's an async operation. You only want it to happen once. But JavaScript constructors are synchronous. Anyways, I'm out of time.
Published at
2024-10-10 02:32:36Event JSON
{
"id": "5841f1214269343b84c578d8880694ff0bb4ce98240835e6b5e450d062cf8eb4",
"pubkey": "0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd",
"created_at": 1728527556,
"kind": 1,
"tags": [
[
"e",
"6a1ecf402012358931cab465bc20fa7b3c4403ea2aabbd8fa9927d24d22906f7",
"wss://gleasonator.dev/relay",
"root",
"0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd"
],
[
"e",
"6a1ecf402012358931cab465bc20fa7b3c4403ea2aabbd8fa9927d24d22906f7",
"wss://gleasonator.dev/relay",
"reply",
"0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd"
]
],
"content": "The way my Web of Trust policy works, is that it's actually a simple whitelist policy. A whitelist policy is given a set of pubkeys and only allows events by those authors. The only difference is that the WoT policy generates the pubkeys first before passing them in.\n\nBut that's an async operation. You only want it to happen once. But JavaScript constructors are synchronous. Anyways, I'm out of time.",
"sig": "0cb22587e40460ef7fe17126cd9a67359c459174418ce563013b8e070e2868a83507719c2435490f1ebbfe664006d207c0bfe2c2213e3a781255d3deeeef2df0"
}