UNPKG

@blockcerts/hashlink-verifier

Version:
12 lines (9 loc) 276 B
// WebCrypto polyfill import isomorphicCrypto from '@trust/webcrypto'; let crypto; if (typeof self !== 'undefined' && (self.crypto || (self as any).msCrypto)) { crypto = self.crypto || (self as any).msCrypto; } else { crypto = isomorphicCrypto; } export default crypto;