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

Function writeHash

src/simplicity/elements/elementsJets.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 *

Callers 15

prevOutpointFunction · 0.70
assetFunction · 0.70
amtFunction · 0.70
nonceFunction · 0.70
reissuanceBlindingFunction · 0.70
newIssuanceContractFunction · 0.70
reissuanceEntropyFunction · 0.70
simplicity_input_peginFunction · 0.70

Calls 1

write32sFunction · 0.85

Tested by

no test coverage detected