I am trying to make a Meta Transaction without using the conventional TypedData object.
Instead I have used ethers.utils._TypedDataEncoder.hash
to create the hash.
I signed the hash using the ethereumjs-util
and eth-sig-util
packages but want a different approach to create the signature.
Now I am not sure how to use the hash without using the ethereumjs-util
and eth-sig-util
packages but rather the signer created using the private key (const walletSigner = new ethers.Wallet(PRIVATE_KEY, provider)
).
const signature = await walletSigner.sign(hash)
Something like the above which will create a valid signature.
Please let me know if the hash can be signed using the web3.js Javascript Ethereum API.