github.com/filecoin-project/specs-actors/v4@v4.0.2/actors/runtime/proof/verify.go (about) 1 package proof 2 3 import ( 4 proof0 "github.com/filecoin-project/specs-actors/actors/runtime/proof" 5 ) 6 7 /// 8 /// Sealing 9 /// 10 11 // Information needed to verify a seal proof. 12 //type SealVerifyInfo struct { 13 // SealProof abi.RegisteredSealProof 14 // abi.SectorID 15 // DealIDs []abi.DealID 16 // Randomness abi.SealRandomness 17 // InteractiveRandomness abi.InteractiveSealRandomness 18 // Proof []byte 19 // 20 // // Safe because we get those from the miner actor 21 // SealedCID cid.Cid `checked:"true"` // CommR 22 // UnsealedCID cid.Cid `checked:"true"` // CommD 23 //} 24 type SealVerifyInfo = proof0.SealVerifyInfo 25 26 /// 27 /// PoSting 28 /// 29 30 // Information about a proof necessary for PoSt verification. 31 //type SectorInfo struct { 32 // SealProof abi.RegisteredSealProof // RegisteredProof used when sealing - needs to be mapped to PoSt registered proof when used to verify a PoSt 33 // SectorNumber abi.SectorNumber 34 // SealedCID cid.Cid // CommR 35 //} 36 type SectorInfo = proof0.SectorInfo 37 38 //type PoStProof struct { 39 // PoStProof abi.RegisteredPoStProof 40 // ProofBytes []byte 41 //} 42 type PoStProof = proof0.PoStProof 43 44 // Information needed to verify a Winning PoSt attached to a block header. 45 // Note: this is not used within the state machine, but by the consensus/election mechanisms. 46 //type WinningPoStVerifyInfo struct { 47 // Randomness abi.PoStRandomness 48 // Proofs []PoStProof 49 // ChallengedSectors []SectorInfo 50 // Prover abi.ActorID // used to derive 32-byte prover ID 51 //} 52 type WinningPoStVerifyInfo = proof0.WinningPoStVerifyInfo 53 54 // Information needed to verify a Window PoSt submitted directly to a miner actor. 55 //type WindowPoStVerifyInfo struct { 56 // Randomness abi.PoStRandomness 57 // Proofs []PoStProof 58 // ChallengedSectors []SectorInfo 59 // Prover abi.ActorID // used to derive 32-byte prover ID 60 //} 61 type WindowPoStVerifyInfo = proof0.WindowPoStVerifyInfo