SafeSlingerProject / SafeSlinger-iOS

Source code for iOS platform client SafeSlinger
MIT License
6 stars 2 forks source link

remove submission token from postRegistration #78

Closed mwfarb closed 9 years ago

mwfarb commented 9 years ago

The server has been upgraded now so that it will accept a 0 length submission token aslong as the new signed public key format is used.

tenmalin commented 9 years ago

To @mwfarb, is submission token mandatory for registration? The current registration attaches submission token. If the token data is necessary, I will close this issue.

mwfarb commented 9 years ago

@tenmalin The original submission token can be removed now, but the length field is still required and should be set to 0. The order of fields in the new scheme can be:

    lenkeyid = same
    keyId = same
    lensubtok = same (but now always 0)
    lenregid = same
    registrationId = same
    devtype = same
    lennonce = new
    nonce = new
    lenpubkey = new
    pubkey = new   
    sig_len = new
    sig =  new
mwfarb commented 9 years ago

From: https://github.com/SafeSlingerProject/SafeSlinger-AppEngine/blob/master/safeslinger-messenger/python/postRegistration.py

tenmalin commented 9 years ago

For the new fields, the current implementation already satisfies the requirement to attach signature and public key, but just attach submission token still. It could be removed in the next binary push.

tenmalin commented 9 years ago

Close in https://github.com/SafeSlingerProject/SafeSlinger-iOS/commit/bea826fa704ad5fac6f5001e25768a27b77b264a