syntax = "proto3";

package exchain.nebula.v1;

import "google/protobuf/descriptor.proto";
import "nebula/ext/options.proto";
import "nebula/v1/transaction.proto";

option csharp_namespace = "ExChain.Nebula.V1";
option go_package = "github.com/exchain/go-exchain/exchain/protocol/nebula/v1";
option java_multiple_files = true;
option java_outer_classname = "BlockProto";
option java_package = "org.exchain.nebula.v1";
option php_namespace = "ExChain\\Nebula\\v1";

message BlockHeader {
  uint64 height = 1;
  bytes hash = 2;
  bytes parent_hash = 3;
  uint64 timestamp = 4;
  string proposer = 5;
}

message Block {
  BlockHeader header = 1;
  repeated Transaction transactions = 2;
}
