When I write the smart contract, I want to complete the function of domain name transfer, but I found that the following methods need to be passed in for signature. How can I call them? Again, I ask you to help me answer the following questions?
If you can, please help write the sample code
So owner should be 32 bytes, name_hash should be 32 bytes and contract address should also be 32 bytes. I.e. you got 32 + 32 + 32 = 96 bytes that should be signed using the private key of the owner account.
Let’s imagine you got the signature (which is also 32 bytes, btw) in a variable named s then you call AENS.transfer like this:
This question and several similar questions have been answered before. I suggest you try to write some code. And once you get properly stuck on something concrete first search properly for the answer, then ask a concrete question.