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

Encode decode examples #1

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

Conversation

okdistribute
Copy link

@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