UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

1 lines • 1.11 kB
{"version":3,"file":"KeyManagementModule.mjs","names":[],"sources":["../../../src/modules/kms/KeyManagementModule.ts"],"sourcesContent":["import type { DependencyManager, Module } from '../../plugins'\nimport { KeyManagementApi } from './KeyManagementApi'\nimport type { KeyManagementModuleConfigOptions } from './KeyManagementModuleConfig'\nimport { KeyManagementModuleConfig } from './KeyManagementModuleConfig'\n\nexport class KeyManagementModule implements Module {\n public readonly api = KeyManagementApi\n public readonly config: KeyManagementModuleConfig\n\n public constructor(config: KeyManagementModuleConfigOptions) {\n this.config = new KeyManagementModuleConfig(config)\n }\n\n /**\n * Registers the dependencies of the key management module.\n */\n public register(dependencyManager: DependencyManager) {\n // Config\n dependencyManager.registerInstance(KeyManagementModuleConfig, this.config)\n }\n}\n"],"mappings":";;;;;;AAKA,IAAa,sBAAb,MAAmD;CAIjD,AAAO,YAAY,QAA0C;OAH7C,MAAM;AAIpB,OAAK,SAAS,IAAI,0BAA0B,OAAO;;;;;CAMrD,AAAO,SAAS,mBAAsC;AAEpD,oBAAkB,iBAAiB,2BAA2B,KAAK,OAAO"}