# **Task** Parent Ticket for Account Creation. # Adding new contact: - [ ] Generate new child pub key for the new contact: rust: `pubkeyFromSeed` (will be store on contact record `childPubKey`) - [ ] Subscribe to the topics for this contact `${child_pubkey}/${index}/res/#` - [ ] Publish to register child pub key with LSP `${child_pubkey}/${index}/req/register` - [ ] Get identity back: `lspPubkey`, `scid` - [ ] Form to set `alias`, `pubkey` and `routeHint` (contact ok pubkey and contact ok key route hint) - [ ] Generate contact record with: `alias`, `pubkey`, `routeHint`, `index`, `scid`, `childPubKey`. - [ ] Send _key_exchange_ msg (use relay as reference). Fields to send on key_exchange: 1. okKey: your own `okKey` 2. routeHint: `routeHint` of your ok key 3. contactKey: `childPubKey` generated for that contact 4. contactRouteHint: build on this way -> lspPubKey_scid (`lspPubKey` from server record, `scid` from contact record) - [ ] Update contact with `contactKey` and `contactRouteHint` coming on _exchange_key_confirmation_ messsage - [ ] On _key_exchange_ message received: do same process described above and send back _key_exchange_confirmation_ message with: 1. okKey 2. routeHint 3. contactKey 4. contactRouteHint
Task
Parent Ticket for Account Creation.
Adding new contact:
pubkeyFromSeed(will be store on contact recordchildPubKey)${child_pubkey}/${index}/res/#${child_pubkey}/${index}/req/registerlspPubkey,scidalias,pubkeyandrouteHint(contact ok pubkey and contact ok key route hint)alias,pubkey,routeHint,index,scid,childPubKey.okKeyrouteHintof your ok keychildPubKeygenerated for that contactlspPubKeyfrom server record,scidfrom contact record)contactKeyandcontactRouteHintcoming on exchange_key_confirmation messsage