Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
V2RayConfigureFileUtil/encoding/QRCode.proto
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (22 sloc)
667 Bytes
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
syntax = "proto3"; | |
package kkdev.v2ray.ConfigureEncoding; | |
option go_package = "encoding"; | |
message LibV2RayQRCode { | |
//Declare QRCodeType | |
string Type = 1; | |
bytes MsgChecksum = 2; //Always use SHA3-256 | |
//If there is too much data to be encoded in one QR code | |
//We can let user can scan mutiply QR codes and construct. | |
enum MessageSegmentionType{ | |
NoSegmention = 0; | |
Reconstruct = 1; | |
} | |
MessageSegmentionType MessageSegType = 3; | |
int32 GroupCount = 4; | |
int32 MessgaeNumber = 5; | |
bytes Payload = 6; | |
//int32 ReconstructPadTo = 7; | |
bytes PayloadChecksum = 8; //Always use SHA3-256 | |
int32 OriginalSegmentNum = 9; | |
int32 payloadTotalSize =10; | |
} |