ECDSA signature v , r , s value? How can I get?


I can't understand this function.

a signature is made up of these v, r, s components. No idea why they have this names but that's just how it is. Let's say userA has no eth to pay the transaction fees to call the approve() function. Instead he can sign a message and give you the signature. This costs no gas. If he now gives you this signature you can divide it into it's core components (v,r,s) and then do a transaction in his name based on what he signed.

1 Like

@Ubaid_Iftikhar It's difficult to get these values manually. If you are using a JavaScript library to create the signature you should be able to easily get the values. See for example Signature in Ethers.js v6.