Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

powPolicy

import { powPolicy } from "https://gitlab.com/soapbox-pub/strfry-policies/-/raw/develop/mod.ts";

Reject events which don't meet Proof-of-Work (NIP-13) criteria.

@example
powPolicy(msg, { difficulty: 20 });
const powPolicy: Policy<POW>;