Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new Contact #360

Open
9 tasks
tomsmith8 opened this issue Nov 29, 2023 · 0 comments
Open
9 tasks

Adding new Contact #360

tomsmith8 opened this issue Nov 29, 2023 · 0 comments
Labels

Comments

@tomsmith8
Copy link

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
@tomsmith8 tomsmith8 added the V2 label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant