@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
26 lines • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
const useragent_plugin_secp256k1_1 = require("@microsoft/useragent-plugin-secp256k1");
const __1 = require("../..");
/**
* Crypto operations class to return Elliptic subtle crypto
*/
class EllipticCryptoOperations extends __1.CryptoFactory {
constructor(keyStore, crypto) {
super(keyStore, crypto);
this.elliptic = new useragent_plugin_secp256k1_1.SubtleCryptoElliptic(crypto);
}
/**
* Gets all of the message signing Algorithms from the plugin
* @returns a subtle crypto object for message signing
*/
getMessageSigners() {
return this.elliptic;
}
}
exports.default = EllipticCryptoOperations;
//# sourceMappingURL=EllipticCryptoOperations.js.map