
import { PROVIDER_TYPE_ASYMMETRIC_CRYPTOGRAPHY } from '../../constants/provider'
import { multiplexProviderFunction } from '../provider/multiplex-provider-function'

import { SignMessage } from '../../data-structures/asymmetric-cryptography'

const signMessage: SignMessage = signMessageFunction

async function signMessageFunction (_message: any, _privateKey: string, extract?: any): Promise<any[]> {
  return multiplexProviderFunction(PROVIDER_TYPE_ASYMMETRIC_CRYPTOGRAPHY, 'signMessage', [...arguments], extract)
}


export {
  signMessage
}