New consignment format #57
Unanswered
dr-orlovsky
asked this question in
Q&A
Replies: 0 comments 10 replies
-
Compression does help rgbc consignment files, from my experience, it's one of Carbonado's test files: |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consignments are blobs of client-side-validated data which has to be sent between users in order for RGB state transfers to happen.
Each consignment must include all information required for its validation - except information about bitcoin transactions involved in the contract (this info is provided by a bitcoin core instance).
Such information includes:
Alongside these consensus data consignment must also provide the following meta information:
Consignments may be small - just several kbytes - and grow quite large up to multiple gigabytes in size. They can be distributes via different channels, starting with dynamic QR codes (consignments with issued assets), instant messages, e-mail - or as files via FTP and HTTP. For small consignments a Base64 ascii armoring is provided to support distribution via QRs and messages. For large consignments sent over HTTP a streaming mode should be available such that the receiving party may run validation in parallel with downloading - and abort if the consignment is invalid without the need to download multiple gigabytes of data (this should prevent some of DoS attacks).
Thus, consignment binary data must support different forms:
Content of the consignment is highly entropic (due to txids, Petersen commitments, bulletproofs, anchor data being >80% of the most of the consignments) - thus, application of additional compression is not desired.
Here I propose to discuss which format must be the best to work with such requirements.
Beta Was this translation helpful? Give feedback.
All reactions