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

Function copyOutput

src/simplicity/bitcoin/env.c:30–33  ·  view source on GitHub ↗

Initialize a 'sigOutput' from a 'rawOutput', copying or hashing the data as needed. * * Precondition: NULL != result; * NULL != output; */

Source from the content-addressed store, hash-verified

28 * NULL != output;
29 */
30static void copyOutput(sigOutput* result, const rawBitcoinOutput* output) {
31 hashBuffer(&result->scriptPubKey, &output->scriptPubKey);
32 result->value = output->value;
33}
34
35/* Initialize a 'sigInput' from a 'rawBitcoinInput', copying or hashing the data as needed.
36 *

Callers 2

copyInputFunction · 0.70

Calls 1

hashBufferFunction · 0.70

Tested by

no test coverage detected