def ypub(self):
    if self.testnet:
        version = TESTNET_YPUB
    else:
        version = MAINNET_YPUB
    return self._pub(version)
def ypub(self):
    if self.testnet:
        version = TESTNET_YPUB
    else:
        version = MAINNET_YPUB
    return self._pub(version)