Open nelsonic opened 5 years ago
https://github.com/dwyl/cid/pull/21 will work with an Ecto.changeset
. Ecto changesets are structs themselves, which means that we can call Map.from_struct/1
on a changeset and get a map.
That map can then be turned into a JSON string, hashed and turned into a CID.
cid
(hash).