open-collaboration-protocol
Version:
Open Collaboration Protocol implementation, part of the Open Collaboration Tools project
16 lines (12 loc) • 611 B
text/typescript
// ******************************************************************************
// Copyright 2024 TypeFox GmbH
// This program and the accompanying materials are made available under the
// terms of the MIT License, which is available in the project root.
// ******************************************************************************
import { CryptoModule, setCryptoModule } from './utils/crypto.js';
export type InitializationConfig = {
cryptoModule: CryptoModule
};
export const initializeProtocol = (config: InitializationConfig) => {
setCryptoModule(config.cryptoModule);
};