pubkeyBanPolicy
import { pubkeyBanPolicy } from "https://gitlab.com/soapbox-pub/strfry-policies/-/raw/develop/mod.ts";
Ban individual pubkeys from publishing events to the relay.
@example
// Ban a specific pubkey.
pubkeyBanPolicy(msg, ['e810fafa1e89cdf80cced8e013938e87e21b699b24c8570537be92aec4b12c18']);
// Load banned pubkeys from a text file.
import { readLines } from 'https://deno.land/std/io/mod.ts';
const pubkeys = readLines(await Deno.open('pubkeys.txt'));
const result = await pubkeyBanPolicy(msg, pubkeys);
const pubkeyBanPolicy: Policy<IterablePubkeys>;