Skip to content
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

Add SIGHASH opcode #226

Closed
jannikluhn opened this issue Dec 18, 2017 · 1 comment
Closed

Add SIGHASH opcode #226

jannikluhn opened this issue Dec 18, 2017 · 1 comment
Assignees
Labels

Comments

@jannikluhn
Copy link
Contributor

jannikluhn commented Dec 18, 2017

What is wrong?

Checking transaction signatures in account abstraction (#225) involves calculating the hash of the transaction, excluding the data field containing the signature itself. This is not possible right now, as there are no opcodes for all transaction fields.

How can it be fixed

Add an opcode SIGHASH with byte value 0x3f that gets sha3(rlp(tx \ {data})), where tx \ {data} refers to the transaction without the data field.

@jannikluhn jannikluhn self-assigned this Jan 8, 2018
@jannikluhn
Copy link
Contributor Author

Will include this in #230 because it's needed for testing there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant