def xpub(self):
    if self.testnet:
        version = TESTNET_XPUB
    else:
        version = MAINNET_XPUB
    return self._pub(version)
def xpub(self):
    if self.testnet:
        version = TESTNET_XPUB
    else:
        version = MAINNET_XPUB
    return self._pub(version)