@blockcerts/hashlink-verifier
Version:
Handling hashlinks in Blockcerts
16 lines (15 loc) • 499 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
// WebCrypto polyfill
const webcrypto_1 = __importDefault(require("@trust/webcrypto"));
let crypto;
if (typeof self !== 'undefined' && (self.crypto || self.msCrypto)) {
crypto = self.crypto || self.msCrypto;
}
else {
crypto = webcrypto_1.default;
}
exports.default = crypto;