Versions in this module Expand all Collapse all v0 v0.2.0 Mar 6, 2023 Changes in this version + const MaxPieceSize v0.1.0 Mar 29, 2021 Changes in this version + const MaxLayers + const MaxPiecePayload + const MinPiecePayload + func PadCommP(sourceCommP []byte, sourcePaddedSize, targetPaddedSize uint64) ([]byte, error) + type Calc struct + func (cp *Calc) BlockSize() int + func (cp *Calc) Digest() (commP []byte, paddedPieceSize uint64, err error) + func (cp *Calc) Reset() + func (cp *Calc) Size() int + func (cp *Calc) Sum(buf []byte) []byte + func (cp *Calc) Write(input []byte) (int, error)