Sketch out NS service proto

This commit is contained in:
Oskar Thoren 2019-09-04 16:25:40 +02:00
parent 6bf6d38c6d
commit 06490462d9
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E

View File

@ -0,0 +1,31 @@
syntax = "proto3";
package vac.ns;
// Should be compatible with Swarm Feeds, IPFS IPNS, ENS, and DNS.
// Name System (NS) service definition
service NS {
rpc Update(NameUpdate) returns (Response) {}
rpc Fetch(Query) returns (Content) {}
}
// TODO: NameInit?
message NameUpdate {
string name = 1;
bytes content = 1;
}
message Query {
string name = 1;
}
message Content {
bytes data = 1;
}
// XXX: Anything? Ok/Error
message Response{
bytes data = 1;
}