syntax = "proto3"; package bg.api; import "bg/api/common.proto"; option go_package = "bg/api/protobuf/tx_ledger"; option java_package = "bg.protobuf"; option java_outer_classname = "TxLedgerProto"; option java_multiple_files = true; service TxLedger { rpc CreateLedger (CreateLedgerRequest) returns (CreateLedgerResponse); rpc GetLedgers (GetLedgersRequest) returns (GetLedgersResponse); rpc SendMessage (SendMessageRequest) returns (SendMessageResponse); } message CreateLedgerRequest { string name = 1; } message CreateLedgerResponse { bool ok = 1; } message GetLedgersRequest { } message GetLedgersResponse { repeated string ledgers = 1; } message SendMessageRequest { string ledger = 1; message Message { MessageType type = 1; bytes from = 2; bytes to = 3; bytes data = 4; } Message message = 2; } message SendMessageResponse { bytes hash = 1; }