Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommP ¶
func CommP(ctx context.Context, pieceIO pieceio.PieceIO, rt abi.RegisteredProof, data *storagemarket.DataRef) (cid.Cid, abi.UnpaddedPieceSize, error)
CommP calculates the commP for a given dataref
func VerifyResponse ¶
func VerifyResponse(ctx context.Context, resp storagemarket.SignedResponse, minerAddr address.Address, tok shared.TipSetToken, verifier VerifyFunc) error
VerifyResponse verifies the signature on the given signed response matches the given miner address, using the given signature verification function
Types ¶
Click to show internal directories.
Click to hide internal directories.