Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create cid #21

Merged
merged 29 commits into from
Jan 30, 2019
Merged

Create cid #21

merged 29 commits into from
Jan 30, 2019

Conversation

RobStallion
Copy link
Member

@RobStallion RobStallion commented Jan 28, 2019

Create functions that create same CIDs as IPFS. Function takes a string, map or struct.

Currently uses ex_cid

#7 #11

Have (temporarily) renamed the module to ex_cid. See #22 for more info on this.

Adds tests and doc tests.

mix.exs Outdated
{:ex_multihash, "~> 2.0"}
{:ex_multihash, "~> 2.0"},
{:jason, "~> 1.1"},
{:cid, git: "[email protected]:SimonLab/ex-cid.git"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This project should not have a dependency on ex-cid.

@RobStallion
Copy link
Member Author

@nelsonic I have updated this now 👍

@@ -33,6 +33,7 @@ defmodule Cid do
iex> Cid.cid([1,2,3,"four"])
"invalid data type"
"""
@spec cid(String.t | map() | struct()) :: String.t
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nelsonic
Copy link
Member

@RobStallion & @Danwhy good work on adding property-based-testing. 🎉
Showcase your work by adding a Travis-CI and Codecov Badge ... 😉

@RobStallion
Copy link
Member Author

@nelsonic Will do.

This was referenced Jan 30, 2019
@RobStallion RobStallion changed the title Create cid with ex cid Create cid Jan 30, 2019
Copy link
Member

@nelsonic nelsonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RobStallion looking much better. Thanks! 🎉
Can't wait to apply this to our https:/dwyl/phoenix-ecto-append-only-log-example 😉

@nelsonic nelsonic merged commit 9c03a85 into master Jan 30, 2019
@nelsonic nelsonic deleted the create-cid-with-ex-cid branch January 30, 2019 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants