Versions in this module Expand all Collapse all v0 v0.2.0 Jan 19, 2015 Changes in this version + const HashSize + const SegmentSize + func CalculateSegments(fileSize uint64) (numSegments uint64) + func VerifyReaderProof(baseSegment [SegmentSize]byte, hashSet []Hash, numSegments, proofIndex uint64, ...) bool + type Hash [HashSize]byte + func BuildReaderProof(rs io.ReadSeeker, numSegments, proofIndex uint64) (baseSegment [SegmentSize]byte, hashSet []Hash, err error) + func BytesMerkleRoot(data []byte) (hash Hash, err error) + func HashAll(data ...[]byte) Hash + func HashBytes(data []byte) Hash + func HashObject(obj interface{}) Hash + func JoinHash(left, right Hash) Hash + func MerkleRoot(leaves []Hash) Hash + func ReaderMerkleRoot(reader io.Reader, numSegments uint64) (hash Hash, err error)