From 302c01dc7efe18013acb31dbdd044691139ad4b7 Mon Sep 17 00:00:00 2001 From: Barrie Byron Date: Mon, 22 Jan 2024 14:23:38 -0500 Subject: [PATCH 1/2] Create README.md --- src/examples/zkapps/hashing/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/examples/zkapps/hashing/README.md diff --git a/src/examples/zkapps/hashing/README.md b/src/examples/zkapps/hashing/README.md new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/src/examples/zkapps/hashing/README.md @@ -0,0 +1 @@ + From cc0e391ed7b33c88fb2e8c31c5de35198b0fe24d Mon Sep 17 00:00:00 2001 From: Barrie Byron Date: Wed, 24 Jan 2024 14:36:07 -0500 Subject: [PATCH 2/2] describe hashing example and link to docs --- src/examples/zkapps/hashing/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/examples/zkapps/hashing/README.md b/src/examples/zkapps/hashing/README.md index 8b13789179..0193400352 100644 --- a/src/examples/zkapps/hashing/README.md +++ b/src/examples/zkapps/hashing/README.md @@ -1 +1,5 @@ +Hash functions under the `Hash` namespace in o1js require binary arithmetic and operate over binary data. +This example shows how to extend the `Bytes` class and specify the length of bytes. + +See the [Keccak](https://docs.minaprotocol.com/zkapps/o1js/keccak) and [SHA-256](https://docs.minaprotocol.com/zkapps/o1js/sha256) documentation for o1js.