Skip to content

Commit

Permalink
Start mapping out protobuf structure
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmabc committed Apr 8, 2023
1 parent 2b52fab commit 13ed183
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Protobufs/OpenBazaarApi.proto
@@ -0,0 +1,27 @@
syntax = "proto3";
package openbazaar_api;

enum NodeAddressType {
ONION = 0;
CLEAR = 1;
IPV4 = 2;
IPV6 = 3;
}

message NodeLocationRequest {
bytes address = 1;
}

message NodeLocationResponse {
NodeAddressType addressType = 1;
string address = 2;
}

message MessageLocationResponse {
repeated NodeLocationResponse addresses = 1;
}

service OpenBazaarApi {
rpc LookUp (NodeLocationRequest) returns (NodeLocationResponse);
rpc MessageLookUp (NodeLocationRequest) returns (MessageLocationResponse);
}

0 comments on commit 13ed183

Please sign in to comment.