Skip to content

Instantly share code, notes, and snippets.

@alanshaw
Created July 11, 2025 09:55
Show Gist options
  • Save alanshaw/be76c3d4ff555c3a0ee9f5b6e96b5436 to your computer and use it in GitHub Desktop.
Save alanshaw/be76c3d4ff555c3a0ee9f5b6e96b5436 to your computer and use it in GitHub Desktop.
Maximum PDP piece size for Piri
package main
import (
"fmt"
"github.com/filecoin-project/go-state-types/abi"
"github.com/storacha/piri/pkg/pdp/proof"
)
func main() {
fmt.Println(abi.PaddedPieceSize(proof.MaxMemtreeSize).Unpadded()) // 266338304
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment