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

Function generate_pay_to_pubkey_taproot_script

bridge/src/scripts.rs:100–106  ·  view source on GitHub ↗
(public_key: &XOnlyPublicKey)

Source from the content-addressed store, hash-verified

98}
99
100pub fn generate_pay_to_pubkey_taproot_script(public_key: &XOnlyPublicKey) -> ScriptBuf {
101 script! {
102 { *public_key }
103 OP_CHECKSIG
104 }
105 .compile()
106}
107
108pub fn generate_pay_to_pubkey_taproot_script_address(
109 network: Network,

Calls

no outgoing calls

Tested by

no test coverage detected