Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
signCustomData: async (data, user) => {
return customData(data, user.seed);
}
};
parseCustomData: (message) => {
if (!message || message.type !== 'customData') {
throw new Error('Incorrect data for sign custom data');
}
const { data } = message;
const { hash } = customData(data, 'fake user');
return {
id: hash,
};
},