1. 22 Aug, 2021 1 commit
  2. 20 Apr, 2021 1 commit
  3. 05 Apr, 2021 1 commit
    • Daniel Martí's avatar
      allow decoding PBNode fields in any order · d0b86f76
      Daniel Martí authored
      We recently updated the spec to say that decoders "should" allow
      decoding a PBNode in either order of its fields. That is because some
      IPFS data out in the wild is already encoded in the non-canonical
      format, which is what Protobuf uses as a default, too.
      
      This change makes the decoder here comply with the spec change, adding a
      test with the encoded block that caused this entire spec change in the
      first place: go-ipfs/test/sharness/t0110-gateway-data/foofoo.block.
      
      The change to the decoder is slightly subtle, because the decoder used
      to leverage the knowledge that Links must come before Data to start the
      Links list early, and finish it as soon as Data arrives.
      
      Since that order is now unknown, we must have some extra logic to
      support either order. We also need special code to make sure Links is
      always set, just like before.
      
      We also add a test to double check that Data between Links is rejected.
      d0b86f76
  4. 15 Mar, 2021 1 commit
    • Eric Myhre's avatar
      Encode and Decode switch to verb names; docs. · b8473079
      Eric Myhre authored
      A similar change to Encode and Decode function names came in
      go-ipld-prime v0.9.0, so this keeps this library in sync.
      
      Improved package docs a bit to talk about the new go-ipld-prime
      LinkSystem, which is a bit clearer to refer to than before.
      
      Target-of-opportunity fix some typos in docs.
      b8473079
  5. 01 Jan, 2021 1 commit
  6. 08 Dec, 2020 3 commits
  7. 07 Dec, 2020 1 commit
  8. 01 Oct, 2020 1 commit
  9. 28 Sep, 2020 1 commit