An Elixir package for dealing with CARv1 (content archive) files.

Currently only just a basic decoder for use in Comet, but hopefully to become a fully fledged CAR library for all sorts of uses (eventually).

TODO

  • Encoding CAR files
  • Support for more codecs specified in a block's CID (e.g. DAG-PB, RAW). Currently only DAG-CBOR is supported and automatically.
  • Tests

Installation

Add car to your mix.exs

def deps do
  [
    {:car, "~> 0.1.0"}
  ]
end

Basic Usage

car_binary = receive_car()
{:ok, decoded_car} = CAR.decode(car_binary)

License

This project is licensed under the MIT License