UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

28 lines 1.1 kB
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); const { Crypto } = require("@peculiar/webcrypto"); // var WebCrypto = require("node-webcrypto-ossl"); /** * Subtle crypto for node * */ class SubtleCryptoNode { /** * Returns the @class SubtleCrypto implementation for the nodes environment */ getSubtleCrypto() { return SubtleCryptoNode.getSubtleCrypto(); } /** * Returns the @class SubtleCrypto implementation for the nodes environment */ static getSubtleCrypto() { return SubtleCryptoNode.crypto; } } SubtleCryptoNode.crypto = new Crypto().subtle; exports.default = SubtleCryptoNode; //# sourceMappingURL=SubtleCryptoNode.js.map