Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 1x 1x 4x | import { EventComponent } from '@affinidi/affinity-metrics-lib' import { PublicTools } from '../CommonNetworkMember/PublicTools' import { SdkOptions } from '../dto/shared.dto' import { IPlatformCryptographyTools } from '../shared/interfaces' export const createPublicToolsFactories = ( platformCryptographyTools: IPlatformCryptographyTools, component: EventComponent, ) => { return { /** * @description Generates a new DID and creates a new instance of SDK using password * @param options - parameters with specified environment * @param password - password * @returns initialized instance of SDK */ createPublicTools: (inputOptions: SdkOptions) => { return new PublicTools(platformCryptographyTools, inputOptions, component) }, } } |