Files
strfry/fbs/nostr-index.fbs
Doug Hoyte c31a213704 fixed size arrays in NostrIndex, where possible
- shrinks records by 16 bytes, and 16 bytes for every e or p tag
2023-02-02 15:04:43 -05:00

28 lines
387 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];
}
table Empty {}
root_type Empty;