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.

Reply to this note

Please Login to reply.

Discussion

No replies yet.