Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: network flow for handshake + removed testify
- Loading branch information
Showing
26 changed files
with
2,263 additions
and
1,418 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
syntax = "proto3"; | ||
|
||
package handshake; | ||
|
||
option go_package = "berty.tech/go/internal/handshake"; | ||
|
||
import "entity.proto"; | ||
import "github.com/gogo/protobuf/gogoproto/gogo.proto"; | ||
|
||
message HandshakeFrame { | ||
enum HandshakeStep { | ||
STEP_1_KEY_AGREEMENT = 0; | ||
STEP_2_KEY_AGREEMENT = 1; | ||
|
||
STEP_3_DISPATCH = 10; // Should not be used directly | ||
|
||
STEP_3A_KNOWN_IDENTITY_PROOF = 20; | ||
STEP_4A_KNOWN_IDENTITY_DISCLOSURE = 21; | ||
STEP_5A_KNOWN_IDENTITY_DISCLOSURE = 22; | ||
|
||
STEP_3B_KNOWN_DEVICE_PROOF = 30; | ||
STEP_4B_KNOWN_DEVICE_DISCLOSURE = 31; | ||
|
||
STEP_9_DONE = 999; // Should not be used directly | ||
} | ||
|
||
HandshakeStep step = 1; | ||
bytes signatureKey = 2; | ||
bytes encryptionKey = 3; | ||
bytes encryptedPayload = 4; | ||
} | ||
|
||
message HandshakePayload { | ||
bytes signature = 1; | ||
SigChain sigChain = 2; | ||
bytes deviceKey = 3; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.