web3swift icon indicating copy to clipboard operation
web3swift copied to clipboard

EIPSigned response is not same as web and android

Open shoaibhassan01 opened this issue 1 year ago • 2 comments

What happened?

I am trying to sign a Key Value by converting it to Data but it has very different implementation as compared to android and python resulting into different r,s and v values, Can we have a sample example for managing a struct or key value so that i can have same results.

What are the steps to reproduce?

Create Data fromKey Value

What is the expected behavior?

Corrent r,s and v values

What is the error thrown?

Not matching results.

What's the stack trace said?

nothing,

OS version

iOS 18

Library version

3.3.0

shoaibhassan01 avatar Feb 13 '25 12:02 shoaibhassan01

Thank you for filling this. We're still on our way to return from the oblivion, but we're not there yet. So the fix whatever it is would take month or two to be applied.

yaroslavyaroslav avatar Feb 13 '25 22:02 yaroslavyaroslav

@shoaibhassan01 hi, can you elaborate. provide some sample code. I will take a look... I made sample code in JS & on swift. Signatures of personal messages are different. https://gist.github.com/SYhotmail/799d313eaf5edaf280f7f58f7de26384

SYhotmail avatar Apr 16 '25 06:04 SYhotmail