Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File data meta gzip generic #8

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

shadders
Copy link
Contributor

updated from pr # 5

Generic 'file' protocol based on Ryan X Charles' proposal.

Generic 'data' protocol

'meta' protocol for marking up other protocols with JSON meta data

'gzip' protocol for compressing data elements in any other data element based protocol.

ryanxcharles and others added 2 commits January 28, 2019 16:07
so i get credit in the commit history
@shadders shadders mentioned this pull request Jan 29, 2019
@ryanxcharles
Copy link
Contributor

can you merge this so we can start issuing new PRs? i have a new protocol to add and i think it would be best to merge against the main repo instead of against your PR.


The protocol identfier is a `PUSHDATA` data element `0x04 0x6d657461` which is the 1 byte length prefix followed by the 4 byte identifier which translates to the ASCII string `meta`.

This should be followed by a further `PUSHDATA` data element: `<metadate>` which is a a JSON encoded set of the key value pairs. The key value pairs remain unspecified.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typos: "metadate", "a a". Should be mentioned the data is UTF-8 encoded?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants