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

Function stack_sig

bitcoin/script.c:117–123  ·  view source on GitHub ↗

Bitcoin wants DER encoding. */

Source from the content-addressed store, hash-verified

115
116/* Bitcoin wants DER encoding. */
117static u8 *stack_sig(const tal_t *ctx, const struct bitcoin_signature *sig)
118{
119 u8 der[73];
120 size_t len = signature_to_der(der, sig);
121
122 return tal_dup_arr(ctx, u8, der, len, 0);
123}
124
125static u8 *stack_preimage(const tal_t *ctx, const struct preimage *preimage)
126{

Calls 1

signature_to_derFunction · 0.85

Tested by

no test coverage detected