mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-12 20:14:12 +00:00
8 lines
339 B
TypeScript
8 lines
339 B
TypeScript
|
import { getWalletLib } from 'shared/enclave/server/wallets';
|
||
|
import { SignMessageParams, SignMessageResponse } from 'shared/enclave/types';
|
||
|
|
||
|
export function signMessage(params: SignMessageParams): Promise<SignMessageResponse> {
|
||
|
const wallet = getWalletLib(params.walletType);
|
||
|
return wallet.signMessage(params.message, params.path);
|
||
|
}
|