How to recover a signature on the server side?

I need to verify the signer of a signature in my node server. const fortmaticApiKey = ‘pk_live_…’; const checkPersonalSignature = async (data, signature, signer) => { try { const { get } = configure(); const fm = new Fortmatic(fortmaticApiKey); const web3 = new Web3(fm.getProvider()); const calculatedSigner = web3.eth.personal.ecRecover(data, signature); return calculatedSigner === signer; } catch…

What is the ethersjs equivalent of `methods.myMethod.call` in web3js?

web3.js has the ability to call non-constant function and get the return data without sending a transaction: myContract.methods.myMethod([param1[, param2[, …]]]).call(options[, callback]) ethersjs apparently does not have this ability. These docs state: These methods cannot return their result to the caller. Using etherjs, how can I get the return data of a transaction without making the…

In solc 0.4.x assembly, how can I check if a non-constant function returns ‘bool’ or nothing?

I know how to do it for a constant function, for example: pragma solidity 0.4.25; contract Callee0 {function func() external pure returns (bool) {return false;}} contract Callee1 {function func() external pure returns (bool) {return true;}} contract Callee2 {function func() external pure {}} contract Caller { bytes4 private constant FUNC_SELECTOR = bytes4(uint256(keccak256(“func()”) >> (256 – 4…