Giter VIP home page Giter VIP logo

Comments (5)

dignifiedquire avatar dignifiedquire commented on July 17, 2024

Nothing to forgive,

  1. Actually it is not, as far as I understand go-bitswap casts the key to a string on the conversion to protobuf, which results in a conversion to base58
  2. cough typo *cough
  3. it's buffering up a single message, which we have to because the protocol-buffer parser we are using can only parse a complete message
  4. I like that spelling :)

from js-ipfs-bitswap.

daviddias avatar daviddias commented on July 17, 2024

Actually it is not, as far as I understand go-bitswap casts the key to a string on the conversion to protobuf, which results in a conversion to base58

Still, not hex. Still you catched a bunch of these in your PR, but miss this one -> https://github.com/ipfs/js-ipfs-bitswap/pull/17/files#diff-e4c2bb9741805e47edd01ae04b0894b5R52

from js-ipfs-bitswap.

dignifiedquire avatar dignifiedquire commented on July 17, 2024

still, not hex. Still you catched a bunch of these in your PR, but miss this one

yes correct

from js-ipfs-bitswap.

jbenet avatar jbenet commented on July 17, 2024

Actually it is not, as far as I understand go-bitswap casts the key to a string on the conversion to protobuf, which results in a conversion to base58

I don't think this https://github.com/ipfs/go-ipfs/blob/master/exchange/bitswap/message/message.go#L156 calls https://github.com/ipfs/go-ipfs/blob/master/blocks/key/key.go#L16-L18 -- i think the keys are sent as straight up binary. calling string(buf) only casts to string, does not call .String(). cc @whyrusleeping

it's buffering up a single message, which we have to because the protocol-buffer parser we are using can only parse a complete message

ok so only one message? it releases the previous messages?

from js-ipfs-bitswap.

daviddias avatar daviddias commented on July 17, 2024

There is now a bit more documentation of Bitswap - https://github.com/ipfs/js-ipfs-bitswap#development

A lot came from this PR - #76 pointing it here for context

from js-ipfs-bitswap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.