util

package
v1.0.0-preview Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: Apache-2.0 Imports: 9 Imported by: 1,092

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(contents []byte, hash []byte) []byte

ComputeHash computes contents hash based on previous hash

func HashFilesInDir

func HashFilesInDir(rootDir string, dir string, hash []byte, tw *tar.Writer) ([]byte, error)

HashFilesInDir computes h=hash(h,file bytes) for each file in a directory Directory entries are traversed recursively. In the end a single hash value is returned for the entire directory structure

func IsCodeExist

func IsCodeExist(tmppath string) error

IsCodeExist checks the chaincode if exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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