Commit 6df3bd3b authored by Kevin Atkinson's avatar Kevin Atkinson

Enable CidV1 (and other prefixes) in the Dag Modifier.

License: MIT
Signed-off-by: default avatarKevin Atkinson <k@kevina.org>
parent 0a5f16ec
...@@ -42,6 +42,9 @@ var v1CidPrefix = cid.Prefix{ ...@@ -42,6 +42,9 @@ var v1CidPrefix = cid.Prefix{
Version: 1, Version: 1,
} }
func V0CidPrefix() cid.Prefix { return v0CidPrefix }
func V1CidPrefix() cid.Prefix { return v1CidPrefix }
// PrefixForCidVersion returns the Protobuf prefix for a given CID version // PrefixForCidVersion returns the Protobuf prefix for a given CID version
func PrefixForCidVersion(version int) (cid.Prefix, error) { func PrefixForCidVersion(version int) (cid.Prefix, error) {
switch version { switch version {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment