# CIP20 - Extensible Hash Function Precompile

**URL:** <https://forum.celo.org/t/cip20-extensible-hash-function-precompile/675>\
**Category:** Protocol\
**Created:** [November 10, 2020, 5:58pm UTC](https://forum.celo.org/t/cip20-extensible-hash-function-precompile/675 "2020-11-10T17:58:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prestwich](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.celo.org/prestwich/32/232_2.png) [@prestwich](https://forum.celo.org/u/prestwich)\
**Post date:** [November 10, 2020, 5:58pm UTC](https://forum.celo.org/t/cip20-extensible-hash-function-precompile/675/1 "2020-11-10T17:58:36Z")

</div>

Discussion thread for CIP20.

> <https://github.com/celo-org/celo-proposals/pull/44>

The goal is to provide access to some common cryptographic hash functions. We do that by adding them all to a single precompile. Any specific questions? 🙂

---

<div class="post-metadata">

**Author:** ![prestwich](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.celo.org/prestwich/32/232_2.png) [@prestwich](https://forum.celo.org/u/prestwich)\
**Post date:** [November 10, 2020, 9:43pm UTC](https://forum.celo.org/t/cip20-extensible-hash-function-precompile/675/2 "2020-11-10T21:43:07Z")

</div>

My current TODO is to add SHA2-512 and work on the benchmarking utility. If anyone has strong opinions on what that should look like, I’d love to hear

---

<div class="post-metadata">

**Author:** ![prestwich](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.celo.org/prestwich/32/232_2.png) [@prestwich](https://forum.celo.org/u/prestwich)\
**Post date:** [November 20, 2020, 10:07pm UTC](https://forum.celo.org/t/cip20-extensible-hash-function-precompile/675/3 "2020-11-20T22:07:51Z")

</div>

first draft fuzzer over here:

> **[prestwich/smash](https://github.com/prestwich/smash)**
>
> fuzzing and benching for precompiles. Contribute to prestwich/smash development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![prestwich](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.celo.org/prestwich/32/232_2.png) [@prestwich](https://forum.celo.org/u/prestwich)\
**Post date:** [November 30, 2020, 9:56pm UTC](https://forum.celo.org/t/cip20-extensible-hash-function-precompile/675/4 "2020-11-30T21:56:01Z")

</div>

Migrating this thread to the github repo

> <https://github.com/celo-org/celo-proposals/issues/99>
>
> Migrating my comments from the forum:
> The goal is to provide access to some common cryptographic hash functions. We do that by...
