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

Function stack_key

bitcoin/script.c:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static u8 *stack_key(const tal_t *ctx, const struct pubkey *key)
98{
99 u8 der[PUBKEY_CMPR_LEN];
100 pubkey_to_der(der, key);
101
102 return tal_dup_arr(ctx, u8, der, sizeof(der), 0);
103}
104
105/* Bitcoin wants DER encoding. */
106static 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.70

Tested by

no test coverage detected