Colby Serpa💡 on Nostr: MessagePack and BSON are the only 2 other binary formats that are schemaless, so ...
MessagePack and BSON are the only 2 other binary formats that are schemaless, so converting any JSON to them is seamless like it is with CBOR.
Although, CBOR has the best data consistency of the 3 options — which is paramount to data that is hashed, since a single character being inconsistent can lead to a changed hash.
Published at
2024-06-22 01:51:42Event JSON
{
"id": "740c71a9eaed008e9ab1cc3af1a083bdb498683da999668de4890d625c7d5052",
"pubkey": "59cacbd83ad5c54ad91dacf51a49c06e0bef730ac0e7c235a6f6fa29b9230f02",
"created_at": 1719013902,
"kind": 1,
"tags": [
[
"e",
"06efd9f832d46740b8e7d23fc29fa183a67b409e2fb263c5f90f366c1f4b33de",
"",
"root"
],
[
"e",
"e26531034e7bd88ef50ce48557931f6985e3eca663c55c5e862c0c5ff291945d",
"",
"reply"
],
[
"p",
"a4cb51f4618cfcd16b2d3171c466179bed8e197c43b8598823b04de266cef110"
],
[
"p",
"e8ed3798c6ffebffa08501ac39e271662bfd160f688f94c45d692d8767dd345a"
]
],
"content": "MessagePack and BSON are the only 2 other binary formats that are schemaless, so converting any JSON to them is seamless like it is with CBOR.\n\nAlthough, CBOR has the best data consistency of the 3 options — which is paramount to data that is hashed, since a single character being inconsistent can lead to a changed hash.",
"sig": "594ac42b491326f95cfb7cf0be8f5e9dc476e514b128bf315efc66009290d4382382264fc4132e643e82a7d65bfdbb25990093f1783008600c0f1164a6dba13d"
}