forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
block.proto
36 lines (31 loc) · 889 Bytes
/
block.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
syntax = "proto3";
package iroha.protocol;
import "commands.proto";
import "primitive.proto";
message Header {
uint64 created_time = 1;
repeated Signature signatures = 2;
}
message Transaction {
message Payload {
repeated Command commands = 1;
string creator_account_id = 2;
uint64 tx_counter = 3;
uint64 created_time = 4;
}
Payload payload = 1;
repeated Signature signature = 2;
}
message Block {
// everything that should be signed:
message Payload {
repeated Transaction transactions = 1;
uint32 tx_number = 2; // the number of transactions inside. Maximum 16384 or 2^14
uint64 height = 3; // the current block number in a ledger
bytes merkle_root = 4; // global merkle root
bytes prev_block_hash = 5; // Previous block hash
uint64 created_time = 6;
}
Payload payload = 1;
repeated Signature signatures = 2;
}