multihash

package
v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: GPL-3.0, LGPL-3.0, LGPL-3.0-or-later 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