UNPKG

@practicaloptimism/uniplexer

Version:

A multiplexer for 3rd party service providers and application protocols

15 lines (10 loc) 568 B
import { PROVIDER_TYPE_ASYMMETRIC_CRYPTOGRAPHY } from '../../constants/provider' import { multiplexProviderFunction } from '../../algorithms/provider/multiplex-provider-function' import { VerifyKeyFormat } from '../../data-structures/asymmetric-cryptography' const verifyKeyFormat: VerifyKeyFormat = verifyKeyFormatFunction async function verifyKeyFormatFunction (_key: string, extract?: any): Promise<boolean[]> { return multiplexProviderFunction(PROVIDER_TYPE_ASYMMETRIC_CRYPTOGRAPHY, 'verifyKeyFormat', [...arguments], extract) } export { verifyKeyFormat }