Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 810 Bytes

0008-serialization.md

File metadata and controls

23 lines (17 loc) · 810 Bytes
Number Category Status Author Organization Created
0008
Standards Track
Proposal
Ian Yang
Nervos Foundation
2018-12-17

Serialization

CKB use two major serialization format, CFB and JSON.

CFB (Canonical FlatBuffers) is a restricted variant of FlatBuffers for producing unequivocal transfer syntax. Since CFB generated binary is still valid FlatBuffers, any FlatBuffers reader can parse the serialized messages, but only CFB builder can serialize messages into valid binary.

CFB is in the proposal stage, and is not ready yet. Now plain FlatBuffers is used to serialize P2P messages.

JSON is used in node RPC service via JSON-RPC.