def test_convert_bip32_path_to_list_of_uint32(self): self.assertEqual([0, 0x80000001, 0x80000001], convert_bip32_path_to_list_of_uint32("m/0/-1/1'")) self.assertEqual([], convert_bip32_path_to_list_of_uint32("m/")) self.assertEqual( [2147483692, 2147488889, 221], convert_bip32_path_to_list_of_uint32("m/44'/5241'/221"))
def expand_path(n): return convert_bip32_path_to_list_of_uint32(n)
def test_convert_bip32_path_to_list_of_uint32(self): self.assertEqual([0, 0x80000001, 0x80000001], convert_bip32_path_to_list_of_uint32("m/0/-1/1'")) self.assertEqual([], convert_bip32_path_to_list_of_uint32("m/")) self.assertEqual([2147483692, 2147488889, 221], convert_bip32_path_to_list_of_uint32("m/44'/5241'/221"))
def expand_path(n): return convert_bip32_path_to_list_of_uint32(n)