-
Notifications
You must be signed in to change notification settings - Fork 35
/
proof_types.go
78 lines (66 loc) · 2.27 KB
/
proof_types.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package proof
import (
"github.com/filecoin-project/go-state-types/abi"
"github.com/ipfs/go-cid"
)
type PoStProof struct {
PoStProof abi.RegisteredPoStProof
ProofBytes []byte
}
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 ExtendedSectorInfo 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
SectorKey *cid.Cid
SealedCID cid.Cid // CommR
}
type WinningPoStVerifyInfo struct {
Randomness abi.PoStRandomness
Proofs []PoStProof
ChallengedSectors []SectorInfo
Prover abi.ActorID // used to derive 32-byte prover ID
}
// 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 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 AggregateSealVerifyInfo struct {
Number abi.SectorNumber
Randomness abi.SealRandomness
InteractiveRandomness abi.InteractiveSealRandomness
// Safe because we get those from the miner actor
SealedCID cid.Cid `checked:"true"` // CommR
UnsealedCID cid.Cid `checked:"true"` // CommD
}
type AggregateSealVerifyProofAndInfos struct {
Miner abi.ActorID
SealProof abi.RegisteredSealProof
AggregateProof abi.RegisteredAggregationProof
Proof []byte
Infos []AggregateSealVerifyInfo
}
type ReplicaUpdateInfo struct {
UpdateProofType abi.RegisteredUpdateProof
OldSealedSectorCID cid.Cid
NewSealedSectorCID cid.Cid
NewUnsealedSectorCID cid.Cid
Proof []byte
}