예제 #1
0
    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'))
예제 #2
0
    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'))
예제 #4
0
    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'))
예제 #5
0
    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'))
예제 #6
0
    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('')
예제 #8
0
    def test_errors(self):
        with self.assertRaises(TypeError):
            transaction.Transaction.pay_script(output_type=None, addr='')

        with self.assertRaises(BaseException):
            transaction.parse_xpub('')
예제 #9
0
    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'))
예제 #11
0
    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'))