def test_parse_xpub(self): res = transaction.parse_xpub( 'fe4e13b0f311a55b8a5db9a32e959da9f011b131019d4cebe6141b9e2c93edcbfc0954c358b062a9f94111548e50bde5847a3096b8b7872dcffadb0e9579b9017b01000200' ) self.assertEquals(res, ( '04ee98d63800824486a1cf5b4376f2f574d86e0a3009a6448105703453f3368e8e1d8d090aaecdd626a45cc49876709a3bbb6dc96a4311b3cac03e225df5f63dfc', 'LTv6KFwtiNafLvxggFFQMRSQEXtBUru9eG')) res = transaction.parse_xpub( 'fd307d260305ef27224bbcf6cf5238d2b3638b5a78d5') self.assertEquals(res, (None, 'LWdgGJGqSmaGYcp6e21RvpGmcuexJorNEH'))
def test_parse_xpub(self): res = transaction.parse_xpub( 'fe4e13b0f311a55b8a5db9a32e959da9f011b131019d4cebe6141b9e2c93edcbfc0954c358b062a9f94111548e50bde5847a3096b8b7872dcffadb0e9579b9017b01000200' ) self.assertEquals(res, ( '04ee98d63800824486a1cf5b4376f2f574d86e0a3009a6448105703453f3368e8e1d8d090aaecdd626a45cc49876709a3bbb6dc96a4311b3cac03e225df5f63dfc', '19h943e4diLc68GXW7G75QNe2KWuMu7BaJ')) res = transaction.parse_xpub( 'fd007d260305ef27224bbcf6cf5238d2b3638b5a78d5') self.assertEquals(res, (None, '1CQj15y1N7LDHp7wTt28eoD1QhHgFgxECH'))
def test_parse_xpub(self): res = transaction.parse_xpub( 'fe4e13b0f311a55b8a5db9a32e959da9f011b131019d4cebe6141b9e2c93edcbfc0954c358b062a9f94111548e50bde5847a3096b8b7872dcffadb0e9579b9017b01000200' ) self.assertEquals(res, ( '04ee98d63800824486a1cf5b4376f2f574d86e0a3009a6448105703453f3368e8e1d8d090aaecdd626a45cc49876709a3bbb6dc96a4311b3cac03e225df5f63dfc', 'XjNytJHxbRZCF4s7MzaKvw4Rrf6bPRuPnW')) res = transaction.parse_xpub( 'fd4c7d260305ef27224bbcf6cf5238d2b3638b5a78d5') self.assertEquals(res, (None, 'Xn6ZqLcuKpYoSkiXKmLMWKtoF2sNExHwjT'))
def test_parse_xpub(self): res = transaction.parse_xpub( 'fe4e13b0f311a55b8a5db9a32e959da9f011b131019d4cebe6141b9e2c93edcbfc0954c358b062a9f94111548e50bde5847a3096b8b7872dcffadb0e9579b9017b01000200' ) self.assertEquals(res, ( '04ee98d63800824486a1cf5b4376f2f574d86e0a3009a6448105703453f3368e8e1d8d090aaecdd626a45cc49876709a3bbb6dc96a4311b3cac03e225df5f63dfc', 'fNoSbMxS5rMqnJWkpxuP9KENpEzWtKfb6t')) res = transaction.parse_xpub( 'fd5f7d260305ef27224bbcf6cf5238d2b3638b5a78d5') self.assertEquals(res, (None, 'fRX2YQHNpFMSyzNAnjfQii4kCcmHhwFdQq'))
def test_parse_xpub(self): res = transaction.parse_xpub( 'fe4e13b0f311a55b8a5db9a32e959da9f011b131019d4cebe6141b9e2c93edcbfc0954c358b062a9f94111548e50bde5847a3096b8b7872dcffadb0e9579b9017b01000200' ) self.assertEquals(res, ( '04ee98d63800824486a1cf5b4376f2f574d86e0a3009a6448105703453f3368e8e1d8d090aaecdd626a45cc49876709a3bbb6dc96a4311b3cac03e225df5f63dfc', 'bMRQkGyYz3j5by7tamaCJ4WWXCR5oDmzYf')) res = transaction.parse_xpub( 'fd007d260305ef27224bbcf6cf5238d2b3638b5a78d5') self.assertEquals(res, (None, 'bQ8zhKJViSigoeyJYYLDsTLsuaBraUv74z'))
def test_parse_xpub(self): res = transaction.parse_xpub( "fe4e13b0f311a55b8a5db9a32e959da9f011b131019d4cebe6141b9e2c93edcbfc0954c358b062a9f94111548e50bde5847a3096b8b7872dcffadb0e9579b9017b01000200" ) self.assertEquals( res, ( "04ee98d63800824486a1cf5b4376f2f574d86e0a3009a6448105703453f3368e8e1d8d090aaecdd626a45cc49876709a3bbb6dc96a4311b3cac03e225df5f63dfc", "19h943e4diLc68GXW7G75QNe2KWuMu7BaJ", ), ) res = transaction.parse_xpub("fd007d260305ef27224bbcf6cf5238d2b3638b5a78d5") self.assertEquals(res, (None, "1CQj15y1N7LDHp7wTt28eoD1QhHgFgxECH"))
def test_errors(self): with self.assertRaises(TypeError): transaction.Transaction.pay_script(output_type=None, addr='') with self.assertRaises(BaseException): transaction.parse_xpub('')
def test_parse_xpub(self): res = transaction.parse_xpub('fe4e13b0f311a55b8a5db9a32e959da9f011b131019d4cebe6141b9e2c93edcbfc0954c358b062a9f94111548e50bde5847a3096b8b7872dcffadb0e9579b9017b01000200') self.assertEquals(res, ('04ee98d63800824486a1cf5b4376f2f574d86e0a3009a6448105703453f3368e8e1d8d090aaecdd626a45cc49876709a3bbb6dc96a4311b3cac03e225df5f63dfc', 'tFck6qVeodBsxAyXcPZafKwYxPEhbeuDY5')) res = transaction.parse_xpub('fd007d260305ef27224bbcf6cf5238d2b3638b5a78d5') self.assertEquals(res, (None, '1CQj15y1N7LDHp7wTt28eoD1QhHgFgxECH'))
def test_parse_xpub(self): res = transaction.parse_xpub('fe4e13b0f311a55b8a5db9a32e959da9f011b131019d4cebe6141b9e2c93edcbfc0954c358b062a9f94111548e50bde5847a3096b8b7872dcffadb0e9579b9017b01000200') self.assertEquals(res, ('04ee98d63800824486a1cf5b4376f2f574d86e0a3009a6448105703453f3368e8e1d8d090aaecdd626a45cc49876709a3bbb6dc96a4311b3cac03e225df5f63dfc', 'LTv6KFwtiNafLvxggFFQMRSQEXtBUru9eG')) res = transaction.parse_xpub('fd307d260305ef27224bbcf6cf5238d2b3638b5a78d5') self.assertEquals(res, (None, 'LWdgGJGqSmaGYcp6e21RvpGmcuexJorNEH'))
def test_parse_xpub(self): res = transaction.parse_xpub('fe4e13b0f311a55b8a5db9a32e959da9f011b131019d4cebe6141b9e2c93edcbfc0954c358b062a9f94111548e50bde5847a3096b8b7872dcffadb0e9579b9017b01000200') self.assertEquals(res, ('04ee98d63800824486a1cf5b4376f2f574d86e0a3009a6448105703453f3368e8e1d8d090aaecdd626a45cc49876709a3bbb6dc96a4311b3cac03e225df5f63dfc', 'bMRQkGyYz3j5by7tamaCJ4WWXCR5oDmzYf')) res = transaction.parse_xpub('fd007d260305ef27224bbcf6cf5238d2b3638b5a78d5') self.assertEquals(res, (None, 'bQ8zhKJViSigoeyJYYLDsTLsuaBraUv74z'))