Robert Francis

Results 98 comments of Robert Francis

Have been looking into CIDs and IPFS. See [here](https://github.com/RobStallion/learn-ipfs/issues/1) for all thoughts captured. CIDs are made up of **codecs** and **multihashes**. **Multihashes** themselves are self describing hashes (e.g. they contain...

I have been able to recreate the steps listed in [this article](https://pascalprecht.github.io/posts/content-identifiers-in-ipfs/). This shows that I can at least create the same hashes at `CIDv0` myself using the command line....

At the moment I want to create the same hash as the one from the command line. e.g. the result of... ```elixir :crypto.hash(:sha256, "Hello World") ``` should be the same...

```elixir file = File.read!("hello.txt") :crypto.hash(:sha256, file) |> Base.encode16(case: :lower) |> IO.inspect() "d2a84f4b8b650937ec8f73cd8be2c74add5a911ba64df27458ed8229da804a26" ``` This is the same and the `sha256` function from the command line now. Now I know that...

I thought I would focus on `CIDv0` as it is contained in `CIDv1`... ``` CIDv1 CIDv0 ``` Also, I have installed IPFS locally and the hash string that I am...

```elixir iex(1)> codec = "dag-pb" # the codec needed to hash CIDv0 "dag-pb" iex(2)> file = File.read!("hello.txt") # reading the file with the text of Hello World (same file that...

@nelsonic I forked the repo and installed excoveralls to check the code coverage. I know that they currently only have doctests but I figured if those doctests actually worked then...

``` 1220d2a84f4b8b650937ec8f73cd8be2c74add5a911ba64df27458ed8229da804a26 ``` > As you can see, this matches my digest from IPFS. This means that the above functions are working as expected. This line was a mistake. It...

@nelsonic the doc tests do appear to be testing the functions ```elixir iex> Multihash.encode(:sha1, :crypto.hash(:sha, "Hello")) {:ok, } ``` This calls the functions with the above arguments and expects the...

https://github.com/ipfs/go-cid/issues/77. Someone has had this issue in `go`. I have confirmed that I can get a matching CID using `ex_cid` when the cid is v1 and the codec is "raw"....