ffidirect

package
v1.24.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Overview

This is a wrapper around the FFI functions that allows them to be called by reflection. For the Curio GPU selector, see lib/ffiselect/ffiselect.go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FFI

type FFI struct{}

This allow reflection access to the FFI functions.

func (FFI) EncodeInto added in v1.23.0

func (FFI) EncodeInto(
	proofType abi.RegisteredUpdateProof,
	newReplicaPath string,
	newReplicaCachePath string,
	sectorKeyPath string,
	sectorKeyCachePath string,
	stagedDataPath string,
	pieces []abi.PieceInfo,
) (out storiface.SectorCids, err error)

func (FFI) GenerateSinglePartitionWindowPoStWithVanilla

func (FFI) GenerateSinglePartitionWindowPoStWithVanilla(
	proofType abi.RegisteredPoStProof,
	minerID abi.ActorID,
	randomness abi.PoStRandomness,
	proofs [][]byte,
	partitionIndex uint,
) (*ffi.PartitionProof, error)

func (FFI) GenerateUpdateProofWithVanilla added in v1.23.0

func (FFI) GenerateUpdateProofWithVanilla(
	proofType abi.RegisteredUpdateProof,
	key, sealed, unsealed cid.Cid,
	vproofs [][]byte,
) ([]byte, error)

func (FFI) GenerateWinningPoStWithVanilla

func (FFI) GenerateWinningPoStWithVanilla(
	proofType abi.RegisteredPoStProof,
	minerID abi.ActorID,
	randomness abi.PoStRandomness,
	proofs [][]byte,
) ([]proof.PoStProof, error)

func (FFI) SealCommitPhase2

func (FFI) SealCommitPhase2(
	phase1Output []byte,
	sectorNum abi.SectorNumber,
	minerID abi.ActorID,
) ([]byte, error)

func (FFI) SealPreCommitPhase2

func (FFI) SealPreCommitPhase2(
	phase1Output []byte,
	cacheDirPath string,
	sealedSectorPath string,
) (out storiface.SectorCids, err error)

func (FFI) SelfTest

func (FFI) SelfTest(val1 int, val2 cid.Cid) (cid.Cid, error)

Jump to

Keyboard shortcuts

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