Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community

    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) => {
    Etienne Fichot
    Hi guys, anyone knows if the code of the uport ios app is available on github?
    Zach Gollwitzer
    @skkiran lifesaver!
    Tomisin Jenrola
    do others have access to my uPort app as long as I keep the clientId and signer in my files?
    Could anyone help me with below query? Is there any demo/tutorial for key recovery mechanism in uPort?
    I'm at https://developer.uport.me/myapps.html and the indicator is spinning for about 10 minutes. Is the server down?
    I just tried the uport demo to buy shares on the Rinkeby network.. so it seems to be up.
    nevermind.. it just responded.
    so.. uport AppManager says it wants to create an ethereum identity for my application and asks me to "Connect with uPort". Which i do. It replies with a Login Request.. it's asking for my name, which is fine, so i Continue.. and end up right back at the "Connect with uPort" screen.
    ok - i think i registered an app. The uPort app doesn't seem to notify the user when it has a pending transaction running. Also, the telephone number registration wants a country, but it doesn't really tell you unless you press the "+1" field. Not complaining.. just an observation.
    Hi all, I'm pretty stucked implemting a raw client in python for uport-identity, my problem is that the signature is never verified, after tons of debug I think that I'm encoding wringly the nonce value
    any ideas about the format?
    Joel Thorstensson
    @agojira can you describe what you are trying to do in more detail?
    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)
    I'm trying to build the string that will be hashed, in anothe part of the code it's done the following:
    hash = utils.sha3(hashInput )
    once signed the ecrecover is not giving me the same origin address
    I've tested that the signature of a same hash is correctly verified, but it seems that the solidity sha3 function is calculating the hashInput string in a different way, because the hashes are different
    Another test I've done is to create a contract that only tests the signature of a externaly signed hash, and it's properly verified
    These are the values of the variables when calling the sha3 function:
    tx_relay_address:   4617477c9c4df3f7970680c35819b47f2787cd94
    whitelistOwner:     0000000000000000000000000000000000000000
    nonce:              00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015
    destinationAddress: 813778abd5701a128dbc73a73ac2d50974be6615
    data:               a949c6370000000000000000000000009501f8b48b1653ca3bee375af93976193a25c4bb0000000000000000000000007d2e0d47a5af493ad4b5430e49eeace5e889fd1e0000000000000000000000008303cb0242c88a4737b275ae255bd3a4dd1a0df7
    And these are the values that the funcion in the smart contract receives:
    tx_relay_address -- 0x4617477c9C4df3f7970680C35819B47f2787cd94
    destinationAddress -- 0x813778AbD5701a128dbc73a73ac2D50974Be6615
    whitelistOwner -- 0x0000000000000000000000000000000000000000
    nonce -- 21 (15 hex = 21 int)
    z -- 00
    b -- 19
    data -- a949c6370000000000000000000000009501f8b48b1653ca3bee375af93976193a25c4bb0000000000000000000000007d2e0d47a5af493ad4b5430e49eeace5e889fd1e0000000000000000000000008303cb0242c88a4737b275ae255bd3a4dd1a0df7
    The diferrence is that the addresses are with checksum format, but I would like to assume that the sha3 function in solidity understands how to handle it, because if I try to pass the addresses in python without the implicit cheksum I get an errror. I tried to build the hashInput with the checksum in the addresses, but no success :(
    OK, I found what was wrong in python.
    def sign_string(self, _to_sign, ):
            _to_sign = utils.remove_0x_head(_to_sign)
            _to_sign = utils.decode_hex(_to_sign)
            my_hash = utils.sha3(_to_sign)
    Otherwise it's not interpreted as the bytes of the string representing an hex value, but is interpreted as the 'plain' string.
    And ofcourse the padding of the nonce was wrong
    utils.zpad(utils.int_to_bytes(my_nonce), 64).hex()
    utils.zpad(utils.int_to_bytes(my_nonce), 32).hex()
    I have a general question on uPort (if this isn't the right place to ask let me know): it appears from my research that claim attestations are stored in the mobile app on the mobile device, and not on chain anywhere. This means that if the mobile device is lost, the claims could be lost. I do understand there is a recovery mechanism, but that is for the identity from what I can see, not claims. Am I correct in understanding this?
    Joel Thorstensson
    @jharris-code you are correct. We are adding a recovery mechanism for claims also though
    Justin Eichel
    hi everyone, I was wondering if there is an ethpm package (or plans) for uport contracts, otherwise I can probably rig something up to use the npm package and some truffle integration scripts. I'm building up a private net and want to make sure the contracts are versioned and updated with bug fixes rather than copying code. Please let me know if this is a better question for elsewhere. Thank you.
    Justin Eichel
    Also, does anyone have an example of how to setup a ProvisioningServer for a private chain (based on https://developer.uport.me/flows/privatechain/)? I can't seem to find much information on it. I've already ported most of the lambda-sensui code into a node project so I can run things locally first without AWS. Again, please let me know if this is a better conversation for somewhere else. Thanks.
    Juan Castellon
    Hey everybody, does anyone know if I can have more than 1 uPort Rinkeby account on my mobile? I am doing a development where I need to simulate different roles/ids. Thx!!