proof

package
v0.14.0-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 87

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateSealVerifyInfo

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
}

func (*AggregateSealVerifyInfo) MarshalCBOR added in v0.14.0

func (t *AggregateSealVerifyInfo) MarshalCBOR(w io.Writer) error

func (*AggregateSealVerifyInfo) UnmarshalCBOR added in v0.14.0

func (t *AggregateSealVerifyInfo) UnmarshalCBOR(r io.Reader) (err error)

type AggregateSealVerifyProofAndInfos

type AggregateSealVerifyProofAndInfos struct {
	Miner          abi.ActorID
	SealProof      abi.RegisteredSealProof
	AggregateProof abi.RegisteredAggregationProof
	Proof          []byte
	Infos          []AggregateSealVerifyInfo
}

func (*AggregateSealVerifyProofAndInfos) MarshalCBOR added in v0.14.0

func (t *AggregateSealVerifyProofAndInfos) MarshalCBOR(w io.Writer) error

func (*AggregateSealVerifyProofAndInfos) UnmarshalCBOR added in v0.14.0

func (t *AggregateSealVerifyProofAndInfos) UnmarshalCBOR(r io.Reader) (err error)

type ExtendedSectorInfo

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
}

func (*ExtendedSectorInfo) MarshalCBOR

func (t *ExtendedSectorInfo) MarshalCBOR(w io.Writer) error

func (*ExtendedSectorInfo) UnmarshalCBOR

func (t *ExtendedSectorInfo) UnmarshalCBOR(r io.Reader) (err error)

type PoStProof

type PoStProof struct {
	PoStProof  abi.RegisteredPoStProof
	ProofBytes []byte
}

func (*PoStProof) MarshalCBOR

func (t *PoStProof) MarshalCBOR(w io.Writer) error

func (*PoStProof) UnmarshalCBOR

func (t *PoStProof) UnmarshalCBOR(r io.Reader) (err error)

type ReplicaUpdateInfo

type ReplicaUpdateInfo struct {
	UpdateProofType      abi.RegisteredUpdateProof
	OldSealedSectorCID   cid.Cid
	NewSealedSectorCID   cid.Cid
	NewUnsealedSectorCID cid.Cid
	Proof                []byte
}

func (*ReplicaUpdateInfo) MarshalCBOR added in v0.14.0

func (t *ReplicaUpdateInfo) MarshalCBOR(w io.Writer) error

func (*ReplicaUpdateInfo) UnmarshalCBOR added in v0.14.0

func (t *ReplicaUpdateInfo) UnmarshalCBOR(r io.Reader) (err error)

type SealVerifyInfo

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
}

func (*SealVerifyInfo) MarshalCBOR

func (t *SealVerifyInfo) MarshalCBOR(w io.Writer) error

func (*SealVerifyInfo) UnmarshalCBOR

func (t *SealVerifyInfo) UnmarshalCBOR(r io.Reader) (err error)

type SectorInfo

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
}

func (*SectorInfo) MarshalCBOR

func (t *SectorInfo) MarshalCBOR(w io.Writer) error

func (*SectorInfo) UnmarshalCBOR

func (t *SectorInfo) UnmarshalCBOR(r io.Reader) (err error)

type WindowPoStVerifyInfo

type WindowPoStVerifyInfo 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.

func (*WindowPoStVerifyInfo) MarshalCBOR

func (t *WindowPoStVerifyInfo) MarshalCBOR(w io.Writer) error

func (*WindowPoStVerifyInfo) UnmarshalCBOR

func (t *WindowPoStVerifyInfo) UnmarshalCBOR(r io.Reader) (err error)

type WinningPoStVerifyInfo

type WinningPoStVerifyInfo struct {
	Randomness        abi.PoStRandomness
	Proofs            []PoStProof
	ChallengedSectors []SectorInfo
	Prover            abi.ActorID // used to derive 32-byte prover ID
}

func (*WinningPoStVerifyInfo) MarshalCBOR

func (t *WinningPoStVerifyInfo) MarshalCBOR(w io.Writer) error

func (*WinningPoStVerifyInfo) UnmarshalCBOR

func (t *WinningPoStVerifyInfo) UnmarshalCBOR(r io.Reader) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL