youtube image
From YouTube: The Right Way to Hash a Merkle Tree by Potuz | Devcon Bogotá

Description

Visit the https://archive.devcon.org/ to gain access to the entire library of Devcon talks with the ease of filtering, playlists, personalized suggestions, decentralized access on Swarm, IPFS and more.
https://archive.devcon.org/archive/watch/6/the-right-way-to-hash-a-merkle-tree/

We shill an assembly SHA256 library that is optimized to compute the hash tree root of a Merkle tree. It consists of reusing two publicly available methods:
1. Hardcoding padding block. This method is used in Bitcoin's core client hashing algo.
2. Use CPU-vectorization to hash different branches in parallell. This is Intel's "multi-buffer" method.

Initial benchmarks show up to 1200% improvement on hashing of large lists on AVX512.

A GoAssembly version is used by prysm.

Speaker(s): Potuz
Skill level: Advanced
Track: Developer Infrastructure
Keywords: Assembly,sha256,vectorization

Follow us: https://twitter.com/efdevcon, https://twitter.com/ethereum
Learn more about devcon: https://www.devcon.org/
Learn more about ethereum: https://ethereum.org/

Devcon is the Ethereum conference for developers, researchers, thinkers, and makers.
Devcon 6 was held in Bogotá, Colombia on Oct 11 - 14, 2022.
Devcon is organized and presented by the Ethereum Foundation, with the support of our sponsors. To find out more, please visit https://ethereum.foundation/