const signer: MessagePartialSigner<'1234..5678'> = {
address: address('1234..5678'),
signMessages: async (
messages: SignableMessage[]
): Promise<SignatureDictionary[]> => {
// My custom signing logic.
},
};
Here are the main characteristics of this signer interface:
A signer interface that signs an array of SignableMessage | SignableMessages without modifying their content.
It defines a MessagePartialSigner#signMessages | signMessages function that returns a SignatureDictionary for each provided message. Such signature dictionaries are expected to be merged with the existing ones if any.