MCPcopy Create free account
hub / github.com/ElementsProject/elements / simplicity_sha_256_ctx_8_init

Function simplicity_sha_256_ctx_8_init

src/simplicity/jets.c:1233–1241  ·  view source on GitHub ↗

sha_256_ctx_8_init : ONE |- CTX8 * where * CTX8 = (TWO^8)^<64 * TWO^64 * TWO^256 */

Source from the content-addressed store, hash-verified

1231 * CTX8 = (TWO^8)^<64 * TWO^64 * TWO^256
1232 */
1233bool simplicity_sha_256_ctx_8_init(frameItem* dst, frameItem src, const txEnv* env) {
1234 (void) env; /* env is unused. */
1235 (void) src; /* env is unused. */
1236
1237 uint32_t iv[8];
1238 sha256_context ctx = sha256_init(iv);
1239
1240 return simplicity_write_sha256_context(dst, &ctx);
1241}
1242
1243/* sha_256_ctx_8_add_n : CTX8 * (TWO^8)^n |- CTX8
1244 * where

Callers

nothing calls this directly

Calls 2

sha256_initFunction · 0.85

Tested by

no test coverage detected