Skip to content

Encode decode examples#1

Open
okdistribute wants to merge 2 commits intomasterfrom
encode-decode-examples
Open

Encode decode examples#1
okdistribute wants to merge 2 commits intomasterfrom
encode-decode-examples

Conversation

@okdistribute
Copy link
Copy Markdown

@okdistribute okdistribute commented Nov 1, 2020

This allows you to use the examples to encode a file and then decode it. I am assuming hex encoding but it could be encoded in other ways, right? What's the preferred encoding?

node example/encode.js example/alexandria.pbf > encoded.peermaps
node example/decode encoded.peermaps

Another question: does decoded work fine like this line by line, or do they need to be decoded in batches?

@okdistribute okdistribute requested review from a user and mk30 November 1, 2020 02:40
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.

1 participant