Playing around with nostr-tools and I'm getting "ReferenceError: crypto is not defined". Any ideas how to fix?
I'm using Node.js 18.12.1 and neither of these worked:
import crypto from "crypto"
import * as crypto from "crypto"
Complete node newb so this might be basic.