(
network: Network,
public_key: &XOnlyPublicKey,
)
| 106 | } |
| 107 | |
| 108 | pub fn generate_pay_to_pubkey_taproot_script_address( |
| 109 | network: Network, |
| 110 | public_key: &XOnlyPublicKey, |
| 111 | ) -> Address { |
| 112 | Address::p2wsh(&generate_pay_to_pubkey_taproot_script(public_key), network) |
| 113 | } |
| 114 | |
| 115 | pub fn generate_timelock_script(public_key: &PublicKey, num_blocks_timelock: u32) -> ScriptBuf { |
| 116 | script! { |
nothing calls this directly
no test coverage detected