cmdruid / tapscript

A humble library for working with Tapscript and Bitcoin Transactions.
https://www.npmjs.com/package/@cmdcode/tapscript
Creative Commons Zero v1.0 Universal
188 stars 49 forks source link

Missing crypto import statement #15

Closed BennyTheDev closed 10 months ago

BennyTheDev commented 1 year ago

import crypto from 'crypto'

is missing, hence throwing an error within node. browser is fine.

PomegranateApps commented 1 year ago

I had this same issue. It works with node v19.

cmdruid commented 1 year ago

There is a new release in development that will more gracefully handle the webcrypto issue. Using v19+ of node should work in all cases.