We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5304c60 commit b403af9Copy full SHA for b403af9
commd.go
@@ -17,6 +17,11 @@ type stackFrame struct {
17
commP []byte
18
}
19
20
+// GenerateUnsealedCID generates the UnsealedCID (CommD) for a sector of size determined by the
21
+// proofType from the provided pieceInfos by merkleization the CommPs of the pieces.
22
+//
23
+// This function **assumes** that the pieces are already padded to the sector size and may not
24
+// return the correct result if this is not the case.
25
func GenerateUnsealedCID(proofType abi.RegisteredSealProof, pieceInfos []abi.PieceInfo) (cid.Cid, error) {
26
spi, found := abi.SealProofInfos[proofType]
27
if !found {
0 commit comments