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

WIP: exchange spec #53

Closed
wants to merge 2 commits into from
Closed

WIP: exchange spec #53

wants to merge 2 commits into from

Conversation

daviddias
Copy link
Member

No description provided.

`fn get(Multihash: key) -> (Vec<u8>: block, Err: err)`
`fn put(Multihash: key, Vec<u8>: block) -> Err: err`

Q: bitswap should not expect an already serialized block so that we can pick the serialization format inside when passing it around.
Copy link
Member Author

Choose a reason for hiding this comment

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

@whyrusleeping I'm trying to come with a best way to enable cbor and protobuf to coexist. We will need to make it very explicit or just let bitswap figure out how to encode something.

Also, right now blocks in datastore are stored as .data, we can have .data for serialized protobufs and .cbor for serialized IPLD objects.

Thoughts?

Copy link

Choose a reason for hiding this comment

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

.data is very generic. How about .proto for Protobufs, and .cbor for serialized IPLD.

@daviddias
Copy link
Member Author

going to open a new one :)

@daviddias daviddias closed this Apr 9, 2016
@daviddias daviddias deleted the ipfs/exchange branch April 18, 2016 16:54
@daviddias
Copy link
Member Author

See #95

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