Replace old GroupID with new Dervied GroupID #357
No reviewers
Labels
No Label
applications
BLOCKED
bug
design
duplicate
enhancement
fixed?
funding-needed
help wanted
infrastructure
invalid
payments
qubes
question
ready-for-implementation
refactor
spam
tapir-server
testing
tor
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch#357
Loading…
Reference in New Issue
No description provided.
Delete Branch "groupwiring"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As we move towards a group model that allows for different management
constitutions we need to deprecate our old group security model that relied
on "owners" and transitive signing/verification checks.
This new model derives GroupID from the GroupKey and the GroupServer
binding it both. This allows participants to know if a message was
intended for the same group they are apart of (as GroupID is included
in every encrypted/signed message to Groups) while allowing more dynamic
management protocols to be built on top of the (now agnostic) group protocols.
This PR also adds more validation logic to invites and provides the ValidateInvite
function to allow the UI to validate invites separately from processing them.
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/129
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/131
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch/133
@ -224,0 +236,4 @@
func ValidateInvite(invite string) (*groups.GroupInvite, error) {
// We prefix invites for groups with torv3
if strings.HasPrefix(invite, GroupInvitePrefix) {
data, err := base64.StdEncoding.DecodeString(invite[5:])
invite[len(GroupInvitePrefix):]
@ -224,0 +243,4 @@
func ValidateInvite(invite string) (*groups.GroupInvite, error) {
// We prefix invites for groups with torv3
if strings.HasPrefix(invite, GroupInvitePrefix) {
data, err := base64.StdEncoding.DecodeString(invite[5:])
invite[len(GroupInvitePrefix):]
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/135
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/137