-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass hex string data to sign-tx #56
Comments
+1 Detailed DescriptionIn the Current implementation, sign-tx is expecting data filed to be in UTF8 string format, this is the limitation that blocking sing-tx method to be used for smart contract calls, smart contract calls require hex data to be supported by the data field. Possible ImplementationOption1: Change existing sing-tx function to accept data in raw hex string. |
Any Update on this issue? |
Are you asking for a flag that tells the plugin to convert the data field from a string (UTF8) to hexadecimal prior to signing? Something like this?
This means that the incoming data has to be rendered as a UTF8 string first. |
The problem is with providing the data payload as UTF8 string, The data payload can be a smart contract function call, and UTF8 character set will cover all hexadecimal values possible. I'd want it to support like this.
|
I chose a different approach. Please advise if this is acceptable. If so, I will close this issue. This approach allows you to sign arbitrary binary data - with the limitation that you supply the data in a file.
|
Is this expects the file to be sitting in the machine where the vault is running? The data payload is generated dynamically in the DApp on the client side, this approach of the file will not work in our scenario. |
When I set "data" property to hex string it seems that hex string is interpreted as utf8 byte array instead of simply setting "data" of ethereum transaction to original hex string. This makes it impossible to encode contract call on client side. This is a MAJOR ISSUE. Any workarounds?
The text was updated successfully, but these errors were encountered: