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

Function writeHash

src/simplicity/bitcoin/bitcoinJets.c:22–24  ·  view source on GitHub ↗

Write a 256-bit hash value to the 'dst' frame, advancing the cursor 256 cells. * * Precondition: '*dst' is a valid write frame for 256 more cells; * NULL != h; */

Source from the content-addressed store, hash-verified

20 * NULL != h;
21 */
22static void writeHash(frameItem* dst, const sha256_midstate* h) {
23 write32s(dst, h->s, 8);
24}
25
26/* Write an outpoint value to the 'dst' frame, advancing the cursor 288 cells.
27 *

Calls 1

write32sFunction · 0.85

Tested by

no test coverage detected