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

Function stack_sig

bitcoin/script.c:106–112  ·  view source on GitHub ↗

Bitcoin wants DER encoding. */

Source from the content-addressed store, hash-verified

104
105/* Bitcoin wants DER encoding. */
106static u8 *stack_sig(const tal_t *ctx, const struct bitcoin_signature *sig)
107{
108 u8 der[73];
109 size_t len = signature_to_der(der, sig);
110
111 return tal_dup_arr(ctx, u8, der, len, 0);
112}
113
114static u8 *stack_preimage(const tal_t *ctx, const struct preimage *preimage)
115{

Calls 1

signature_to_derFunction · 0.85

Tested by

no test coverage detected