UNPKG

@reclaimprotocol/zk-symmetric-crypto

Version:

JS Wrappers for Various ZK Snark Circuits

16 lines (15 loc) 459 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.webcrypto = void 0; exports.webcrypto = (() => { // if we're in node, we need to use // webcrypto provided by the crypto module if (typeof window !== 'undefined') { return window.crypto; } if (typeof self !== 'undefined' && self.crypto) { return self.crypto; } const { webcrypto } = require('crypto'); return webcrypto; })();