MCPcopy Create free account
hub / github.com/BitVM/BitVM / generate_pay_to_pubkey_taproot_script_address

Function generate_pay_to_pubkey_taproot_script_address

bridge/src/scripts.rs:108–113  ·  view source on GitHub ↗
(
    network: Network,
    public_key: &XOnlyPublicKey,
)

Source from the content-addressed store, hash-verified

106}
107
108pub 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
115pub fn generate_timelock_script(public_key: &PublicKey, num_blocks_timelock: u32) -> ScriptBuf {
116 script! {

Callers

nothing calls this directly

Tested by

no test coverage detected