UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

19 lines (18 loc) 758 B
/// <reference types="node" /> /// <reference types="pouchdb-core" /> import PrivateKey from "../PrivateKey"; import CryptoFactory from "../../plugin/CryptoFactory"; /** * Class to model EC pairwise keys */ export default class EcPairwiseKey { /** * Generate a pairwise key for the specified algorithms * @param cryptoFactory defining the key store and the used crypto api * @param personaMasterKey Master key for the current selected persona * @param algorithm for the key * @param peerId Id for the peer * @param extractable True if key is exportable */ static generate(cryptoFactory: CryptoFactory, personaMasterKey: Buffer, algorithm: EcKeyGenParams, peerId: string): Promise<PrivateKey>; }