bitcoin::util::contracthash
pub fn compute_tweak( pk: &PublicKey, contract: &[u8]) -> Result<SecretKey, Error>
Compute a tweak from some given data for the given public key