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

Function add_push_key

bitcoin/script.c:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static void add_push_key(u8 **scriptp, const struct pubkey *key)
82{
83 u8 der[PUBKEY_CMPR_LEN];
84 pubkey_to_der(der, key);
85
86 script_push_bytes(scriptp, der, sizeof(der));
87}
88
89static void add_push_sig(u8 **scriptp, const struct bitcoin_signature *sig)
90{

Callers 8

bitcoin_redeem_2of2Function · 0.85
bitcoin_redeem_p2pkhFunction · 0.85
anchor_to_remote_redeemFunction · 0.85
bitcoin_wscript_to_localFunction · 0.85
bitcoin_wscript_htlc_txFunction · 0.85
bitcoin_wscript_anchorFunction · 0.85

Calls 2

pubkey_to_derFunction · 0.70
script_push_bytesFunction · 0.70

Tested by

no test coverage detected