Construct a script expression for taproot_construct for pk(hex_key).
(hex_key)
| 164 | return bytes.fromhex(hex_key) |
| 165 | |
| 166 | def pk(hex_key): |
| 167 | """Construct a script expression for taproot_construct for pk(hex_key).""" |
| 168 | return (None, CScript([bytes.fromhex(hex_key), OP_CHECKSIG])) |
| 169 | |
| 170 | def compute_taproot_address(pubkey, scripts): |
| 171 | """Compute the address for a taproot output with given inner key and scripts.""" |