Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: define log entry proto (secret, member, message and setting)
- Loading branch information
Showing
9 changed files
with
3,717 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto3"; | ||
|
||
option go_package = "berty.tech/go/internal/group"; | ||
|
||
message MemberEntryEnvelope { | ||
bytes encrypted_member_payload = 1; | ||
bytes member_payload_signature = 2; // Signed by member_device_priv_key | ||
} | ||
|
||
message MemberEntryPayload { | ||
bytes member_pub_key = 1; | ||
bytes member_pub_key_signature = 2; // Signed by invitation_priv_key | ||
bytes member_device_pub_key = 3; | ||
bytes member_device_pub_key_signature = 4; // Signed by member_priv_key | ||
|
||
bytes inviter_member_pub_key = 5; | ||
bytes invitation_pub_key = 6; | ||
bytes invitation_pub_key_signature = 7; // Signed by inviter_member_priv_key | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
syntax = "proto3"; | ||
|
||
option go_package = "berty.tech/go/internal/group"; | ||
|
||
message MessageEntryEnvelope { | ||
uint64 counter = 1; | ||
bytes encrypted_payload = 2; | ||
bytes signature = 3; // Signed with member_device_pub_key of author | ||
} | ||
|
||
message MessageEntryPayload { | ||
enum PayloadType { | ||
PayloadTypeMessage = 0; | ||
PayloadTypeInvitation = 1; | ||
} | ||
|
||
PayloadType type = 1; | ||
bytes message_body = 2; | ||
Invitation invitation = 3; | ||
} | ||
|
||
message Invitation { | ||
bytes inviter_member_pub_key = 1; | ||
bytes invitation_priv_key = 2; | ||
bytes invitation_pub_key_signature = 3; // Signed by inviter_member_priv_key | ||
|
||
uint32 group_version = 4; | ||
bytes group_id_pub_key = 5; | ||
bytes shared_secret = 6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto3"; | ||
|
||
option go_package = "berty.tech/go/internal/group"; | ||
|
||
message SecretEntryEnvelope { | ||
bytes encrypted_secret_payload = 1; | ||
bytes secret_payload_signature = 2; | ||
} | ||
|
||
message SecretEntryPayload { | ||
bytes dest_member_pub_key = 1; | ||
bytes sender_device_pub_key = 2; | ||
bytes encrypted_device_secret = 3; | ||
} | ||
|
||
message DeviceSecret { | ||
bytes derivation_state = 1; | ||
uint64 counter = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
syntax = "proto3"; | ||
|
||
option go_package = "berty.tech/go/internal/group"; | ||
|
||
message SettingsEntryEnvelope { | ||
bytes encrypted_settings_payload = 1; | ||
bytes settings_payload_signature = 2; | ||
} | ||
|
||
message SettingsEntryPayload { | ||
enum PayloadType { | ||
PayloadTypeGroupSetting = 0; | ||
PayloadTypeMemberSetting = 1; | ||
} | ||
|
||
PayloadType type = 1; | ||
bytes member_pub_key = 2; | ||
bytes key = 3; | ||
bytes value = 4; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.