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