Skip to content

prepareMessageForSigning

The prepareMessageForSigning method prepares a message for MPC signing according to EIP-191 (Ethereum signed message standard).

Usage

 
const message: chainAdapters.evm.EVMMessage = 'Sign this message'
 
const { hashToSign } = await evmChain.prepareMessageForSigning(message)

Parameters

ParameterTypeDescription
messageEVMMessageThe message to be signed

Returns

PropertyTypeDescription
hashToSignHashToSignThe hash to be signed by the MPC network