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

Function generate_timelock_script_address

bridge/src/scripts.rs:126–135  ·  view source on GitHub ↗
(
    network: Network,
    public_key: &PublicKey,
    num_blocks_timelock: u32,
)

Source from the content-addressed store, hash-verified

124}
125
126pub fn generate_timelock_script_address(
127 network: Network,
128 public_key: &PublicKey,
129 num_blocks_timelock: u32,
130) -> Address {
131 Address::p2wsh(
132 &generate_timelock_script(public_key, num_blocks_timelock),
133 network,
134 )
135}
136
137pub fn generate_timelock_taproot_script(
138 public_key: &XOnlyPublicKey,

Callers 2

generate_addressMethod · 0.85
generate_addressMethod · 0.85

Calls 1

generate_timelock_scriptFunction · 0.85

Tested by

no test coverage detected