(network: Network, public_key: &PublicKey)
| 64 | } |
| 65 | |
| 66 | pub 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 | |
| 73 | pub fn generate_p2wpkh_address(network: Network, public_key: &PublicKey) -> Address { |
| 74 | Address::p2wpkh( |
no outgoing calls