def test_get_address_root_scheme(self): mnemonic = "all all all all all all all all all all all all" passphrase = "" root_node = bip32.from_mnemonic_cardano(mnemonic, passphrase) address_root = _get_address_root(root_node, {1: b'X\x1cr,zu\x81?\xaf\xde\x9f\xf9\xe4\xd4\x90\xadH$\xe9\xf3\x88\x16\xcb\xd2)\x02M\x0c#\xde'}) self.assertEqual(address_root, b'\xb3\xbbS\xa8;uN:E=\xe8\xe5\x9c\x18\xbcn\xcf\xd0c\xba\x0e\xba\xaelL}\xba\xbb')
def test_get_address_root(self): mnemonic = "plastic that delay conduct police ticket swim gospel intact harsh obtain entire" root_node = bip32.from_mnemonic_cardano(mnemonic) address_root = _get_address_root( root_node, { 1: b'X\x1cr,zu\x81?\xaf\xde\x9f\xf9\xe4\xd4\x90\xadH$\xe9\xf3\x88\x16\xcb\xd2)\x02M\x0c#\xde' }) self.assertEqual( address_root, b'\xca\x9bbQ\xa5\xaa}\x01U\xba\xe5\xa5\xaa~\x84M\x0b;\x1dM\xd8z\xe7Y\x01\xc8\x92\x91' )