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

Function readHash

src/simplicity/bitcoin/bitcoinJets.c:13–15  ·  view source on GitHub ↗

Read a 256-bit hash value from the 'src' frame, advancing the cursor 256 cells. * * Precondition: '*src' is a valid read frame for 256 more cells; * NULL != h; */

Source from the content-addressed store, hash-verified

11 * NULL != h;
12 */
13static void readHash(sha256_midstate* h, frameItem *src) {
14 read32s(h->s, 8, src);
15}
16
17/* Write a 256-bit hash value to the 'dst' frame, advancing the cursor 256 cells.
18 *

Calls 1

read32sFunction · 0.85

Tested by

no test coverage detected