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).
- 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
Add car
to your mix.exs
def deps do
[
{:car, "~> 0.1.0"}
]
end
car_binary = receive_car()
{:ok, decoded_car} = CAR.decode(car_binary)
This project is licensed under the MIT License