Simple contract for testing signing message, deployed on Rinkeby network 0xB654B936eFF42C9f2cABD8B4cd0DF3c50Bf07A2A
- Create your party data with format :
[idParty (int), owner party address (address), party name(string)] - Convert party data to hash, you can use
getMessageHashfunction - Signing hash message, if you use Remix, you can use signing feature https://prnt.sc/15vg84q
- When signing complete, you will get the signature, copy the signature and split in Remix Console using command
ethers.utils.splitSignature({the signature}). Output example https://prnt.sc/15vh1h0 - Prepare you signature data with format:
[v (int256) , r (byte32), s (byte32)] - Create your party using
createPartyfunction.