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

Function stack_key

bitcoin/script.c:108–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static u8 *stack_key(const tal_t *ctx, const struct pubkey *key)
109{
110 u8 der[PUBKEY_CMPR_LEN];
111 pubkey_to_der(der, key);
112
113 return tal_dup_arr(ctx, u8, der, sizeof(der), 0);
114}
115
116/* Bitcoin wants DER encoding. */
117static u8 *stack_sig(const tal_t *ctx, const struct bitcoin_signature *sig)

Callers 1

bitcoin_witness_p2wpkhFunction · 0.85

Calls 1

pubkey_to_derFunction · 0.85

Tested by

no test coverage detected