Actyx / banyan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make link copy

rklaehn opened this issue · comments

No reason not to hardcode e.g. sha256 for links and leave the ipld ceremony for writing/reading.

The downside of this is that it is harder to work with old versions of the rust cid crate. (new versions do impl Copy)

I think it is a nice hint for users to not overdo it with the complexity of the link type. For us I envision link to be just a 32 byte SHA2-256 hash for now, which should be fine for quite some time. It will of course still be serialized as a cid.