[][src]Function firma::common::check_compatibility

pub fn check_compatibility(n1: Network, n2: Network) -> Result<()>

returns Ok if networks are both bitcoin or are both not bitcoin this is useful because for example an extended key starting with tprv is used in both Regtest and Testnet