Documentation ¶
Index ¶
- Constants
- func BaseDecode(data string) (multi.Encoding, []byte, error)
- func BaseEncode(base multi.Encoding, data []byte) (string, error)
- func GetCid(str string) (cid.Cid, error)
- func GetCidString(str string) (string, error)
- func HashDecode(buf []byte) (*multi.DecodedMultihash, error)
- func HashEncode(buf []byte, code uint64) ([]byte, error)
- type Multibase
- type Multihash
Constants ¶
View Source
const Codec = mc.Raw
View Source
const MhLength = -1
View Source
const MhType = mh.SHA2_256
View Source
const Version = 1
Variables ¶
This section is empty.
Functions ¶
func GetCidString ¶
func HashDecode ¶
func HashDecode(buf []byte) (*multi.DecodedMultihash, error)
Decode parses multihash bytes into a DecodedMultihash.
Types ¶
Click to show internal directories.
Click to hide internal directories.