Documentation
¶
Overview ¶
Package file provides structs for a common way to represent files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHashStr ¶
func ComputeHashStr(file io.ReadSeekCloser) (string, error)
ComputeHashStr computes a xxh3 hash from the given io.ReadSeekCloser. this is designed to be able to be used with large amounts of data.
func HashTree ¶
func HashTree[T merkletree.Content](hashes []T) (*merkletree.MerkleTree, error)
func HashTreeRootString ¶
func HashTreeRootString(tree *merkletree.MerkleTree) string
func SortHashes ¶
func SortHashes(hashes []Hash)
Types ¶
Click to show internal directories.
Click to hide internal directories.