BufferProof.correct: law of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha/packed/buffer_proof.bend as BufferProof Lines 11-14 of bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha/packed/buffer_proof.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha/packed/buffer_proof.bend&start_line=11&end_line=14 import Base import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/packed/buffer.bend as B import bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha/packed.bend as R import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/packed/sha256.bend as SHA law correct: for a: Array for +length: Nat {SHA.sha256(a,length) == B.result(R.hash(a,length)) : Maybe<&1,Array>} Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.cong https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha/packed/packed_proof.bend&name=hash_correct https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha/packed.bend&name=hash https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/packed/buffer.bend&name=result https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/packed/packed.bend&name=hash https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/packed/sha256.bend&name=sha256 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/state.bend&name=State