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

Function generate_timelock_taproot_script_address

bridge/src/scripts.rs:151–160  ·  view source on GitHub ↗
(
    network: Network,
    public_key: &XOnlyPublicKey,
    num_blocks_timelock: u32,
)

Source from the content-addressed store, hash-verified

149}
150
151pub fn generate_timelock_taproot_script_address(
152 network: Network,
153 public_key: &XOnlyPublicKey,
154 num_blocks_timelock: u32,
155) -> Address {
156 Address::p2wsh(
157 &generate_timelock_taproot_script(public_key, num_blocks_timelock),
158 network,
159 )
160}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected