mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
17 lines
618 B
Plaintext
17 lines
618 B
Plaintext
//IDL file for p2p message container schema.
|
|
/*Message content need to be serialised and parsed into container, we need two root types in flatbuffs to generat
|
|
needed api methods. Since Flatbuff only support one rrot at each IDL files, we had to seperate message schema to 2 files.
|
|
*/
|
|
include "p2pmsg_content.fbs";
|
|
namespace msg.fbuf.p2pmsg;
|
|
|
|
table Container { //root type for message
|
|
version:uint16;
|
|
timestamp:uint64;
|
|
pubkey:[ubyte];
|
|
lcl:[ubyte];
|
|
signature:[ubyte]; // signature of the message content
|
|
content:[ubyte]; // message content: byte array of proposal,npl,etc
|
|
}
|
|
|
|
root_type Container; |