mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
bitcoin_script: get rid of scriptpubkey_pay_to_pubkeyhash.
We no longer generate any pay-to-pubkeys. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -244,20 +244,6 @@ u8 *scriptpubkey_p2sh(const tal_t *ctx, const u8 *redeemscript)
|
|||||||
return script;
|
return script;
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 *scriptpubkey_pay_to_pubkeyhash(const tal_t *ctx,
|
|
||||||
const struct bitcoin_address *addr)
|
|
||||||
{
|
|
||||||
u8 *script = tal_arr(ctx, u8, 0);
|
|
||||||
|
|
||||||
add_op(&script, OP_DUP);
|
|
||||||
add_op(&script, OP_HASH160);
|
|
||||||
add_push_bytes(&script, addr, sizeof(*addr));
|
|
||||||
add_op(&script, OP_EQUALVERIFY);
|
|
||||||
add_op(&script, OP_CHECKSIG);
|
|
||||||
|
|
||||||
return script;
|
|
||||||
}
|
|
||||||
|
|
||||||
u8 *scriptsig_pay_to_pubkeyhash(const tal_t *ctx,
|
u8 *scriptsig_pay_to_pubkeyhash(const tal_t *ctx,
|
||||||
const struct pubkey *key,
|
const struct pubkey *key,
|
||||||
const struct bitcoin_signature *sig)
|
const struct bitcoin_signature *sig)
|
||||||
|
|||||||
@@ -35,10 +35,6 @@ u8 *bitcoin_redeem_revocable(const tal_t *ctx,
|
|||||||
/* Create an output script using p2sh for this redeem script. */
|
/* Create an output script using p2sh for this redeem script. */
|
||||||
u8 *scriptpubkey_p2sh(const tal_t *ctx, const u8 *redeemscript);
|
u8 *scriptpubkey_p2sh(const tal_t *ctx, const u8 *redeemscript);
|
||||||
|
|
||||||
/* Create an output script to pay to pubkey hash */
|
|
||||||
u8 *scriptpubkey_pay_to_pubkeyhash(const tal_t *ctx,
|
|
||||||
const struct bitcoin_address *addr);
|
|
||||||
|
|
||||||
/* Create an input script to accept pay to pubkey */
|
/* Create an input script to accept pay to pubkey */
|
||||||
u8 *scriptsig_pay_to_pubkeyhash(const tal_t *ctx,
|
u8 *scriptsig_pay_to_pubkeyhash(const tal_t *ctx,
|
||||||
const struct pubkey *key,
|
const struct pubkey *key,
|
||||||
|
|||||||
Reference in New Issue
Block a user