mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
lightningd: simple wallet support.
This allows us to add funds via the P2SH-wrapped Segwit Transactions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -78,6 +78,9 @@ u8 *scriptpubkey_p2wsh(const tal_t *ctx, const u8 *witnessscript);
|
||||
/* Create an output script for a 20-byte witness program. */
|
||||
u8 *scriptpubkey_p2wpkh(const tal_t *ctx, const struct pubkey *key);
|
||||
|
||||
/* Same as above, but compressed key is already DER-encoded. */
|
||||
u8 *scriptpubkey_p2wpkh_derkey(const tal_t *ctx, const u8 der[33]);
|
||||
|
||||
/* Create a witness which spends the 2of2. */
|
||||
u8 **bitcoin_witness_2of2(const tal_t *ctx,
|
||||
const secp256k1_ecdsa_signature *sig1,
|
||||
|
||||
Reference in New Issue
Block a user