@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
16 lines (15 loc) • 651 B
TypeScript
import IKeyStore from '../keyStore/IKeyStore';
import CryptoFactory from './CryptoFactory';
import { SubtleCrypto } from 'webcrypto-core';
/**
* Utility class to handle all CryptoFactory dependency injection for the environment browser.
* In the same way a developer can add new CryptoFactory classes that support a different device.
*/
export default class CryptoFactoryBrowser extends CryptoFactory {
/**
* Constructs a new CryptoRegistry
* @param keyStore used to store private keys
* @param crypto The suite to use for dependency injection
*/
constructor(keyStore: IKeyStore, crypto: SubtleCrypto);
}