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

Function generate_p2pkh_address

bridge/src/scripts.rs:66–71  ·  view source on GitHub ↗
(network: Network, public_key: &PublicKey)

Source from the content-addressed store, hash-verified

64}
65
66pub fn generate_p2pkh_address(network: Network, public_key: &PublicKey) -> Address {
67 Address::p2pkh(
68 CompressedPublicKey::try_from(*public_key).expect("Could not compress public key"),
69 network,
70 )
71}
72
73pub fn generate_p2wpkh_address(network: Network, public_key: &PublicKey) -> Address {
74 Address::p2wpkh(

Callers 1

test_peg_out_successFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_peg_out_successFunction · 0.68