2018-05-04 00:26:25 -04:00

8 lines
335 B
TypeScript

import { getWalletLib } from 'shared/enclave/server/wallets';
import { SignMessageParams, SignMessageResponse } from 'shared/enclave/types';
export default function(params: SignMessageParams): Promise<SignMessageResponse> {
const wallet = getWalletLib(params.walletType);
return wallet.signMessage(params.message, params.path);
}