I am building an app using multichain and I am using external wallet to generate keys and importing pubkey using importaddress(pubkey, rescan='false') using mcrpc [python client]. My next step is to make some operations on this key like granting permission and when I used this pubkey I got an error[mcrpc.exceptions.RpcError: Invalid address: 02c029deb8ff729988b68ecd0a17ecc535dbba47be1501ea041600beaa9fad4666]
so I made a troublshooting using (validateaddress and listaddresses ) and I got 2 different representations for the same pubkey and both are working with grant
validateaddress('02c029deb8ff729988b68ecd0a17ecc535dbba47be1501ea041600beaa9fad4666')
{'isvalid': True, 'address': '19j94mnRPes5hEgbUWVT5N5tQ7mUeJezZyB2sE', 'ismine': False}
listaddresses output is '48j2dRc9VFHBq2cmEHW79wHJhw9gU9E12qL5Us'
I want to understand the logic here to deal with addresses in a right way and should I use public address or public key ?
Also how could we remove key from the node wallet after importing using importaddress(pubkey, rescan='false')?