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

"Ethereum" Keccak #11

Open
aerique opened this issue Apr 6, 2023 · 0 comments
Open

"Ethereum" Keccak #11

aerique opened this issue Apr 6, 2023 · 0 comments

Comments

@aerique
Copy link

aerique commented Apr 6, 2023

Hi, I'm working on a side project for which I have to generate hashes for Ethereum, which uses the old padding of 1 instead of 6. Changing it on this line fixed it for me:

https://github.com/Egor-Skriptunoff/pure_lua_SHA/blob/master/sha2.lua#L4618

Is there any chance of making this configurable for a user of the module or would you accept a PR for this?

This is so one does not have to maintain one's own fork of this project.

(I use this project because of its speed, easy of use and also because I use LuaJit which a lot of other projects do not support (anymore).)

Reference: https://ethereum.stackexchange.com/questions/30369/difference-between-keccak256-and-sha3

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

No branches or pull requests

1 participant