MCPcopy Create free account
hub / github.com/ElementsProject/lightning / scriptpubkey_witness_raw

Function scriptpubkey_witness_raw

bitcoin/script.c:304–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304u8 *scriptpubkey_witness_raw(const tal_t *ctx, u8 version,
305 const u8 *wprog, size_t wprog_size)
306{
307 u8 *script = tal_arr(ctx, u8, 0);
308 add_number(&script, version);
309 script_push_bytes(&script, wprog, wprog_size);
310 return script;
311}
312
313/* BOLT #3:
314 *

Callers 2

decode_fFunction · 0.85

Calls 2

add_numberFunction · 0.85
script_push_bytesFunction · 0.70

Tested by

no test coverage detected