multihash

package
v0.0.0-...-ac8b7ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MultihashLength = defaultMultihashLength
)

Functions

func FromMultihash

func FromMultihash(data []byte) ([]byte, error)

FromMulithash returns the digest portion of the multihash It will fail if the multihash is not a valid swarm multihash

func GetMultihashLength

func GetMultihashLength(data []byte) (int, int, error)

GetMultihashLength returns the digest length of the provided multihash It will fail if the multihash is not a valid swarm mulithash

func ToMultihash

func ToMultihash(hashData []byte) []byte

ToMulithash wraps the provided digest data with a swarm mulithash header

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL