Versions in this module Expand all Collapse all v0 v0.0.1 Apr 12, 2019 Changes in this version + const CommitmentBytesLen + const LiveMode + const PoStBytesLen + const PoStChallengeSeedBytesLen + const SealBytesLen + const TestMode + func CProofsMode(cfg Mode) (*C.ConfiguredStore, error) + type CommD [CommitmentBytesLen]byte + type CommR [CommitmentBytesLen]byte + type CommRStar [CommitmentBytesLen]byte + type FakeVerifier struct + func NewFakeVerifier(isValid bool, err error) FakeVerifier + func (FakeVerifier) VerifySeal(VerifySealRequest) (VerifySealResponse, error) + func (fp FakeVerifier) VerifyPoST(VerifyPoSTRequest) (VerifyPoSTResponse, error) + type Mode int + type PoStChallengeSeed [PoStChallengeSeedBytesLen]byte + type PoStProof [PoStBytesLen]byte + type RustVerifier struct + func (rp *RustVerifier) VerifyPoST(req VerifyPoSTRequest) (VerifyPoSTResponse, error) + func (rp *RustVerifier) VerifySeal(req VerifySealRequest) (VerifySealResponse, error) + type SealProof [SealBytesLen]byte + type Verifier interface + VerifyPoST func(VerifyPoSTRequest) (VerifyPoSTResponse, error) + VerifySeal func(VerifySealRequest) (VerifySealResponse, error) + type VerifyPoSTRequest struct + ChallengeSeed PoStChallengeSeed + CommRs []CommR + Faults []uint64 + Proofs []PoStProof + ProofsMode Mode + type VerifyPoSTResponse struct + IsValid bool + type VerifySealRequest struct + CommD CommD + CommR CommR + CommRStar CommRStar + Proof SealProof + ProofsMode Mode + ProverID [31]byte + SectorID [31]byte + type VerifySealResponse struct + IsValid bool