-
Notifications
You must be signed in to change notification settings - Fork 9
/
auth.proto
52 lines (44 loc) · 992 Bytes
/
auth.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
syntax = "proto3";
import "blockchain.proto";
message VerifyTxReq {
uint64 valid_until_block = 1;
bytes hash = 2;
bytes signature = 3;
Crypto crypto = 4;
bytes tx_hash = 5;
bytes signer = 6; // public key only set in BlockReq
string nonce = 7;
uint32 chain_id = 8;
uint64 quota = 9;
bytes value = 10;
bytes chain_id_v1 = 11;
}
message VerifyBlockReq {
uint64 height = 1;
uint64 round = 2;
CompactBlock block = 3;
}
message VerifyBlockResp {
uint64 height = 1;
uint64 round = 2;
bool pass = 3;
Block block = 4;
}
message BlockTxHashes {
uint64 height = 1;
repeated bytes tx_hashes = 2;
uint64 block_quota_limit = 3;
AccountGasLimit account_quota_limit = 4;
bool check_quota = 5;
bytes admin_address = 6;
uint32 version = 7;
}
message BlockTxHashesReq {
uint64 height = 1;
}
message Miscellaneous {
uint32 chain_id = 1;
bytes chain_id_v1 = 2;
}
message MiscellaneousReq {
}