-
Notifications
You must be signed in to change notification settings - Fork 47
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
add some helpers for creating new CIDs #52
Conversation
Unlike Prefix, we can extend continue to extend this helper as the options grow.
inlineMax int | ||
} | ||
|
||
// TODO: detect bad formats? Probably not worth it. We catch them on Sum anyways. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
} | ||
} | ||
|
||
// TODO: Split length and hash? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(discuss)
mh "github.com/multiformats/go-multihash" | ||
) | ||
|
||
// TODO: Move these to the correct go-ipld-* crates? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(discuss)
} | ||
|
||
// TODO: Do we actually want this or should users always extend Format | ||
// That is, DagCBORFormat.With(OptHash(...)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(discuss)
@Stebalien what I had in mind was something a little simpler but more extensible I will create a new p.r. with what I had in mind. |
Closing in favor of #53. |
Unlike Prefix, we can extend continue to extend this helper as the options grow.