@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
18 lines (17 loc) • 427 B
TypeScript
/**
* Enumeration to model key use.
*/
export declare enum KeyUse {
Encryption = "enc",
Signature = "sig"
}
/**
* Factory class to create @enum KeyUse objects.
*/
export default class KeyUseFactory {
/**
* Create the key use according to the selected algorithm.
* @param algorithm Web crypto compliant algorithm object
*/
static createViaWebCrypto(algorithm: any): KeyUse;
}