-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Generate PoH as fast as possible #6519
Comments
Any news here? |
The sha2 fork will probably not merge my PR, they don't like binary blobs in general RustCrypto/asm-hashes#9 There is a pure Rust PR using rust intrinsics but it's ~30% slower for Poh generation and it probably won't be merged for a while: RustCrypto/hashes#90 @mvines wanted to vendor the relevant code, that's a bit of work though. Need to find time to do it.. |
@sakridge They recently merged a PR supporting the AArch64 counterparts of sha256 CPU extension support: RustCrypto/asm-hashes#10. Maybe we could rewrite our PR in asm from intrinsics and use that PR as a precedent to get merged. :) |
Yea. I see. Weird that they don't mind assembly but don't like the intrinsics version. |
Will validators using multicore CPUs be utilising optimised assembly too? |
Fixed by #14746 |
Our current PoH generation is believed to be much slower than what the CPU can actually do, exposing various possible attacks. We need to ensure we're hashing as fast as possible.
cc: https://github.com/sakridge/asm-hashes
cc: https://github.com/sakridge/hashes
The text was updated successfully, but these errors were encountered: