{
Simplest option: add following to your html file:
<script src="https://unpkg.com/uport-connect/dist/uport-connect.min.js"></script>
add following to the top of the component where you want to access functions in uPort library:
declare var uportconnect: any;
then use following to connect to uport:
const uport = new uportconnect.Connect('MyDApp')
uport.requestAddress().then((address) => {
console.log(address)
})
hashInput = '0x19' + '00' + tx_relay_address[2:].lower() + whitelistOwner[2:].lower() + str(utils.zpad(utils.int_to_bytes(my_nonce), 64).hex()) + destinationAddress[2:].lower() + utils.encode_hex(data)