mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-13 12:35:38 +00:00
8 lines
335 B
TypeScript
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);
|
|
}
|