Files
strfry/fbs/nostr-index.fbs
2023-02-08 06:48:38 -05:00

29 lines
411 B
Plaintext

namespace NostrIndex;
struct Fixed32Bytes {
val: [ubyte:32];
}
table TagGeneral {
key: uint8;
val: [ubyte];
}
table TagFixed32 {
key: uint8;
val: Fixed32Bytes;
}
table Event {
id: Fixed32Bytes;
pubkey: Fixed32Bytes;
created_at: uint64;
kind: uint64;
tagsGeneral: [TagGeneral];
tagsFixed32: [TagFixed32];
expiration: uint64;
}
table Empty {}
root_type Empty;