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

(WIP) add ability to invite others to a group #1

Merged
merged 23 commits into from
Jun 9, 2020
Merged

(WIP) add ability to invite others to a group #1

merged 23 commits into from
Jun 9, 2020

Conversation

mixmix
Copy link
Member

@mixmix mixmix commented Mar 5, 2020

Requires:

  • derive shared-dm-key

    • make a test vector for private-group-spec
    • write a function for generating these
    • make sure it includes key scheme
  • using shared-dm-key

    • include a cache
    • for unboxing, add to key-store#author.getKeys()
      • decide if this key should be before / after group keys
    • for boxing, make sure cache is also accessible
  • make unbox3 test vector to cover envelope to a DM

  • write method/group/invite (with test)

    • decide where the members tangle starts at
      • (a) group init?
      • (b) first add-member? << I think this one will make backlink lookups quicker, but how do we know which is the canonical members tangle ?
    • calculate heads of members tangle
    • calculate heads of group tangle
  • add maxAttempts to private-group-spec

  • re-index :

    • watch for receipt of group invite, reindex if a new one shows up
    • decide which views to destroy
    • can an add-member be sent to another group?
      • NOTE a group needs to know all recipients to work (because of how we try unboxing). Therefore this only works in the case where you start a subgroup which is totally visible to parent group. (this ensures all subgroup members are known)
      • don't do this now >:(
      • YES - in the case of a subgroup visible to parent group (a

@mixmix
Copy link
Member Author

mixmix commented Mar 5, 2020

thanks for watching @cryptix !
god, I thought "I'd better just make a little checklist before I got to bed". Turns out there are some kinda hard problems hidden in here. Sigh

lib/direct-message-key.js Outdated Show resolved Hide resolved
@mixmix mixmix merged commit c142c24 into master Jun 9, 2020
@mixmix mixmix deleted the invite branch June 16, 2020 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant