Categorygithub.com/daotl/go-ipfs-ds-help
modulepackage
1.1.0
Repository: https://github.com/daotl/go-ipfs-ds-help.git
Documentation: pkg.go.dev

# README

go-ipfs-ds-help

DAOT Labs' fork of ipfs/go-ipfs-ds-help.

standard-readme compliant go.dev reference Build Status

go-ipfs-ds-help provides utilities for parsing and creating datastore keys used by go-ipfs.

Table of Contents

Install

go-ipfs-ds-help works like a regular Go module:

> go get github.com/daotl/go-ipfs-ds-help

Usage

import "github.com/daotl/go-ipfs-ds-help"

Check the GoDoc documentation

Contribute

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT

Copyright for portions of this fork are held by Protocol Labs, Inc. as part of the original go-ipfs-ds-help project. All other copyright for this fork are held by DAOT Labs. All rights reserved.

# Functions

BinaryFromDsKey returns the byte slice corresponding to the given Key encoded with Base32.
DsKeyToCidV1Raw converts the given Key (which should be a raw multihash key) to a Cid V1 of the given type (see https://pkg.go.dev/github.com/ipfs/go-cid#pkg-constants).
DsKeyToMultihash converts a Key to the corresponding Multihash.
MultihashToStrKey creates a Key from the given Multihash.
NewStrKeyFromBinary creates a new StrKey from a byte slice using Base32 encoding.