initial commit

This commit is contained in:
Doug Hoyte
2022-12-19 14:42:40 -05:00
commit c47d07e985
42 changed files with 4652 additions and 0 deletions

17
fbs/nostr-index.fbs Normal file
View File

@ -0,0 +1,17 @@
namespace NostrIndex;
table Tag {
key: uint8;
val: [ubyte];
}
table Event {
id: [ubyte];
pubkey: [ubyte];
created_at: uint64;
kind: uint64;
tags: [Tag];
}
table Empty {}
root_type Empty;

41
fbs/yesstr.fbs Normal file
View File

@ -0,0 +1,41 @@
namespace Yesstr;
// FilterSync
table RequestSync {
filter: string; // only required for first in a sequence
reqsEncoded: [ubyte];
}
table ResponseSync {
respsEncoded: [ubyte];
}
// Request/Response wrappers
union RequestPayload {
RequestSync,
}
union ResponsePayload {
ResponseSync,
}
table Request {
requestId: uint64;
payload: RequestPayload;
}
table Response {
requestId: uint64;
payload: ResponsePayload;
}
table Empty {}
root_type Empty;