Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add keccak256 precompile at address 0x00..09 #73

Merged
merged 1 commit into from
Jan 22, 2018
Merged

Conversation

axic
Copy link
Member

@axic axic commented Jan 21, 2018

No description provided.

Returns the KECCAK-256 hash of the input. It is being used by the EVM Transcompiler.

Input:
- **variable length**: *input data*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is "variable length" specified in WASM?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getCallDataSize

@axic
Copy link
Member Author

axic commented Jan 22, 2018

Meanwhile I've realised that it cannot be used by evm2wasm due to the gas cost of call and it also doesn't matter anymore, because evm2wasm is runtime only and the output code size is irrelevant (mostly).

However, since keccak256 is such a widely used feature I think it deserves its well know address (at least for now).

@axic axic merged commit b543228 into master Jan 22, 2018
@axic axic deleted the keccak256-precompile branch January 22, 2018 16:51
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants