cgo

package
v1.25.0-dev.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 7

Documentation

Index

Constants

View Source
const (
	FCPResponseStatusNoError           = C.F_C_P_RESPONSE_STATUS_NO_ERROR
	FCPResponseStatusUnclassifiedError = C.F_C_P_RESPONSE_STATUS_UNCLASSIFIED_ERROR
	FCPResponseStatusCallerError       = C.F_C_P_RESPONSE_STATUS_CALLER_ERROR
	FCPResponseStatusReceiverError     = C.F_C_P_RESPONSE_STATUS_RECEIVER_ERROR
)
View Source
const (
	RegisteredSealProofStackedDrg2KiBV1                        = C.REGISTERED_SEAL_PROOF_STACKED_DRG2_KI_B_V1
	RegisteredSealProofStackedDrg8MiBV1                        = C.REGISTERED_SEAL_PROOF_STACKED_DRG8_MI_B_V1
	RegisteredSealProofStackedDrg512MiBV1                      = C.REGISTERED_SEAL_PROOF_STACKED_DRG512_MI_B_V1
	RegisteredSealProofStackedDrg32GiBV1                       = C.REGISTERED_SEAL_PROOF_STACKED_DRG32_GI_B_V1
	RegisteredSealProofStackedDrg64GiBV1                       = C.REGISTERED_SEAL_PROOF_STACKED_DRG64_GI_B_V1
	RegisteredSealProofStackedDrg2KiBV11                       = C.REGISTERED_SEAL_PROOF_STACKED_DRG2_KI_B_V1_1
	RegisteredSealProofStackedDrg8MiBV11                       = C.REGISTERED_SEAL_PROOF_STACKED_DRG8_MI_B_V1_1
	RegisteredSealProofStackedDrg512MiBV11                     = C.REGISTERED_SEAL_PROOF_STACKED_DRG512_MI_B_V1_1
	RegisteredSealProofStackedDrg32GiBV11                      = C.REGISTERED_SEAL_PROOF_STACKED_DRG32_GI_B_V1_1
	RegisteredSealProofStackedDrg64GiBV11                      = C.REGISTERED_SEAL_PROOF_STACKED_DRG64_GI_B_V1_1
	RegisteredSealProofStackedDrg2KiBV11_Feat_SyntheticPoRep   = C.REGISTERED_SEAL_PROOF_STACKED_DRG2_KI_B_V1_1__FEAT__SYNTHETIC_PO_REP
	RegisteredSealProofStackedDrg8MiBV11_Feat_SyntheticPoRep   = C.REGISTERED_SEAL_PROOF_STACKED_DRG8_MI_B_V1_1__FEAT__SYNTHETIC_PO_REP
	RegisteredSealProofStackedDrg512MiBV11_Feat_SyntheticPoRep = C.REGISTERED_SEAL_PROOF_STACKED_DRG512_MI_B_V1_1__FEAT__SYNTHETIC_PO_REP
	RegisteredSealProofStackedDrg32GiBV11_Feat_SyntheticPoRep  = C.REGISTERED_SEAL_PROOF_STACKED_DRG32_GI_B_V1_1__FEAT__SYNTHETIC_PO_REP
	RegisteredSealProofStackedDrg64GiBV11_Feat_SyntheticPoRep  = C.REGISTERED_SEAL_PROOF_STACKED_DRG64_GI_B_V1_1__FEAT__SYNTHETIC_PO_REP
)
View Source
const (
	RegisteredAggregationProofSnarkPackV1 = C.REGISTERED_AGGREGATION_PROOF_SNARK_PACK_V1
	RegisteredAggregationProofSnarkPackV2 = C.REGISTERED_AGGREGATION_PROOF_SNARK_PACK_V2
)
View Source
const (
	RegisteredPoStProofStackedDrgWinning2KiBV1    = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINNING2_KI_B_V1
	RegisteredPoStProofStackedDrgWinning8MiBV1    = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINNING8_MI_B_V1
	RegisteredPoStProofStackedDrgWinning512MiBV1  = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINNING512_MI_B_V1
	RegisteredPoStProofStackedDrgWinning32GiBV1   = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINNING32_GI_B_V1
	RegisteredPoStProofStackedDrgWinning64GiBV1   = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINNING64_GI_B_V1
	RegisteredPoStProofStackedDrgWindow2KiBV1     = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINDOW2_KI_B_V1
	RegisteredPoStProofStackedDrgWindow8MiBV1     = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINDOW8_MI_B_V1
	RegisteredPoStProofStackedDrgWindow512MiBV1   = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINDOW512_MI_B_V1
	RegisteredPoStProofStackedDrgWindow32GiBV1    = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINDOW32_GI_B_V1
	RegisteredPoStProofStackedDrgWindow64GiBV1    = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINDOW64_GI_B_V1
	RegisteredPoStProofStackedDrgWindow2KiBV1_1   = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINDOW2_KI_B_V1_1
	RegisteredPoStProofStackedDrgWindow8MiBV1_1   = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINDOW8_MI_B_V1_1
	RegisteredPoStProofStackedDrgWindow512MiBV1_1 = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINDOW512_MI_B_V1_1
	RegisteredPoStProofStackedDrgWindow32GiBV1_1  = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINDOW32_GI_B_V1_1
	RegisteredPoStProofStackedDrgWindow64GiBV1_1  = C.REGISTERED_PO_ST_PROOF_STACKED_DRG_WINDOW64_GI_B_V1_1
)
View Source
const (
	RegisteredUpdateProofStackedDrg2KiBV1   = C.REGISTERED_UPDATE_PROOF_STACKED_DRG2_KI_B_V1
	RegisteredUpdateProofStackedDrg8MiBV1   = C.REGISTERED_UPDATE_PROOF_STACKED_DRG8_MI_B_V1
	RegisteredUpdateProofStackedDrg512MiBV1 = C.REGISTERED_UPDATE_PROOF_STACKED_DRG512_MI_B_V1
	RegisteredUpdateProofStackedDrg32GiBV1  = C.REGISTERED_UPDATE_PROOF_STACKED_DRG32_GI_B_V1
	RegisteredUpdateProofStackedDrg64GiBV1  = C.REGISTERED_UPDATE_PROOF_STACKED_DRG64_GI_B_V1
)
View Source
const (
	ErrInvalidHandle   = C.FVM_ERROR_INVALID_HANDLE
	ErrNotFound        = C.FVM_ERROR_NOT_FOUND
	ErrIO              = C.FVM_ERROR_IO
	ErrInvalidArgument = C.FVM_ERROR_INVALID_ARGUMENT
	ErrPanic           = C.FVM_ERROR_PANIC
)

Variables

This section is empty.

Functions

func Aggregate

func Aggregate(flattenedSignatures SliceRefUint8) *[96]byte

func AggregateSealProofs

func AggregateSealProofs(registeredProof RegisteredSealProof, registeredAggregation RegisteredAggregationProof, commRs SliceRefByteArray32, seeds SliceRefByteArray32, sealCommitResponses SliceRefSliceBoxedUint8) ([]byte, error)

func CheckErr

func CheckErr(resp result) error

CheckErr returns `nil` if the `code` indicates success and an error otherwise.

func ClearCache

func ClearCache(sectorSize uint64, cacheDirPath SliceRefUint8) error

func ClearLayerData

func ClearLayerData(sectorSize uint64, cacheDirPath SliceRefUint8) error

func ClearSyntheticProofs added in v1.26.0

func ClearSyntheticProofs(sectorSize uint64, cacheDirPath SliceRefUint8) error

func CreateZeroSignature

func CreateZeroSignature() *[96]byte

func EmptySectorUpdateDecodeFrom

func EmptySectorUpdateDecodeFrom(registeredProof RegisteredUpdateProof, outDataPath SliceRefUint8, replicaPath SliceRefUint8, sectorKeyPath SliceRefUint8, sectorKeyCacheDirPath SliceRefUint8, commDNew *ByteArray32) error

func EmptySectorUpdateDecodeFromRange added in v1.24.0

func EmptySectorUpdateDecodeFromRange(registeredProof RegisteredUpdateProof, commD, commR *ByteArray32, inputFd, sectorKeyFd, outputFd int32, nodesOffset, numNodes uint64) error

func EmptySectorUpdateEncodeInto

func EmptySectorUpdateEncodeInto(registeredProof RegisteredUpdateProof, newReplicaPath SliceRefUint8, newCacheDirPath SliceRefUint8, sectorKeyPath SliceRefUint8, sectorKeyCacheDirPath SliceRefUint8, stagedDataPath SliceRefUint8, pieces SliceRefPublicPieceInfo) ([]byte, []byte, error)

func EmptySectorUpdateRemoveEncodedData

func EmptySectorUpdateRemoveEncodedData(registeredProof RegisteredUpdateProof, sectorKeyPath, sectorKeyCacheDirPath, replicaPath, replicaCachePath, dataPath SliceRefUint8, commDNew *ByteArray32) error

func Fauxrep

func Fauxrep(registeredProf RegisteredSealProof, cacheDirPath SliceRefUint8, sealedSectorPath SliceRefUint8) ([]byte, error)

func Fauxrep2

func Fauxrep2(registeredProf RegisteredSealProof, cacheDirPath SliceRefUint8, existingPAuxPath SliceRefUint8) ([]byte, error)

func FvmMachineFlush

func FvmMachineFlush(executor *FvmMachine) ([]byte, error)

func GenerateDataCommitment

func GenerateDataCommitment(registeredProof RegisteredSealProof, pieces SliceRefPublicPieceInfo) ([]byte, error)

func GenerateEmptySectorUpdatePartitionProofs

func GenerateEmptySectorUpdatePartitionProofs(registeredProof RegisteredUpdateProof, commROld, commRNew, commDNew *ByteArray32, sectorKeyPath, sectorKeyCacheDirPath, replicaPath, replicaCachePath SliceRefUint8) ([][]byte, error)

func GenerateEmptySectorUpdateProof

func GenerateEmptySectorUpdateProof(registeredProof RegisteredUpdateProof, commROld, commRNew, commDNew *ByteArray32, sectorKeyPath, sectorKeyCacheDirPath, replicaPath, replicaCachePath SliceRefUint8) ([]byte, error)

func GenerateEmptySectorUpdateProofWithVanilla

func GenerateEmptySectorUpdateProofWithVanilla(registeredProof RegisteredUpdateProof, vanillaProofs SliceRefSliceBoxedUint8, commROld, commRNew, commDNew *ByteArray32) ([]byte, error)

func GenerateFallbackSectorChallenges

func GenerateFallbackSectorChallenges(registeredProof RegisteredPoStProof, randomness *ByteArray32, sectorIds SliceRefUint64, proverId *ByteArray32) ([]uint64, [][]uint64, error)

func GeneratePieceCommitment

func GeneratePieceCommitment(registeredProof RegisteredSealProof, pieceFdRaw int32, unpaddedPieceSize uint64) ([]byte, error)

func GenerateSDR added in v1.24.0

func GenerateSDR(registeredProof RegisteredPoStProof, outDir SliceRefUint8, replicaID *ByteArray32) error

func GenerateSingleVanillaProof

func GenerateSingleVanillaProof(replica PrivateReplicaInfo, challenges SliceRefUint64) ([]byte, error)

func GenerateSynthProofs added in v1.26.0

func GenerateSynthProofs(
	registered_proof RegisteredSealProof,
	comm_r, comm_d ByteArray32,
	cache_dir_path, replica_path SliceRefUint8,
	sector_id uint64,
	prover_id, ticket ByteArray32,
	pieces SliceRefPublicPieceInfo,
) error

func GenerateTreeC added in v1.24.0

func GenerateTreeC(registeredProof RegisteredPoStProof, inputDir, outDir SliceRefUint8) ([]byte, error)

func GenerateTreeRLast added in v1.24.0

func GenerateTreeRLast(registeredProof RegisteredPoStProof, replicaPath, outDir SliceRefUint8) ([]byte, error)

func GenerateWinningPoStSectorChallenge

func GenerateWinningPoStSectorChallenge(registeredProof RegisteredPoStProof, randomness *ByteArray32, sectorSetLen uint64, proverId *ByteArray32) ([]uint64, error)

func GetGpuDevices

func GetGpuDevices() ([]string, error)

func GetNumPartitionForFallbackPost

func GetNumPartitionForFallbackPost(registeredProof RegisteredPoStProof, numSectors uint) (uint, error)

func GetPoStVersion

func GetPoStVersion(registeredProof RegisteredPoStProof) (string, error)

func GetSealVersion

func GetSealVersion(registeredProof RegisteredSealProof) (string, error)

func Hash

func Hash(message SliceRefUint8) *[96]byte

func HashVerify

func HashVerify(signature SliceRefUint8, flattenedMessages SliceRefUint8, messageSizes SliceRefUint, flattenedPublicKeys SliceRefUint8) bool

func InitLogFd

func InitLogFd(fd int32) error

func PrivateKeyGenerate

func PrivateKeyGenerate() *[32]byte

func PrivateKeyGenerateWithSeed

func PrivateKeyGenerateWithSeed(rawSeed *ByteArray32) *[32]byte

func PrivateKeyPublicKey

func PrivateKeyPublicKey(rawPrivateKey SliceRefUint8) *[48]byte

func PrivateKeySign

func PrivateKeySign(rawPrivateKey SliceRefUint8, message SliceRefUint8) *[96]byte

func Register

func Register(ctx context.Context, externs Externs) uint64

Register a new item and get a handle.

func SealCommitPhase1

func SealCommitPhase1(registeredProof RegisteredSealProof, commR *ByteArray32, commD *ByteArray32, cacheDirPath SliceRefUint8, replicaPath SliceRefUint8, sectorId uint64, proverId *ByteArray32, ticket *ByteArray32, seed *ByteArray32, pieces SliceRefPublicPieceInfo) ([]byte, error)

func SealCommitPhase2

func SealCommitPhase2(sealCommitPhase1Output SliceRefUint8, sectorId uint64, proverId *ByteArray32) ([]byte, error)

func SealPreCommitPhase1

func SealPreCommitPhase1(registeredProof RegisteredSealProof, cacheDirPath SliceRefUint8, stagedSectorPath SliceRefUint8, sealedSectorPath SliceRefUint8, sectorId uint64, proverId *ByteArray32, ticket *ByteArray32, pieces SliceRefPublicPieceInfo) ([]byte, error)

func SealPreCommitPhase2

func SealPreCommitPhase2(sealPreCommitPhase1Output SliceRefUint8, cacheDirPath SliceRefUint8, sealedSectorPath SliceRefUint8) ([]byte, []byte, error)

func Unregister

func Unregister(handle uint64)

Unregister a blockstore.

WARNING: This method must be called at most _once_ with a handle previously returned by Register.

func UnsealRange

func UnsealRange(registeredProof RegisteredSealProof, cacheDirPath SliceRefUint8, sealedSectorFdRaw int32, unsealOutputFdRaw int32, sectorId uint64, proverId *ByteArray32, ticket *ByteArray32, commD *ByteArray32, unpaddedByteIndex uint64, unpaddedBytesAmount uint64) error

func Verify

func Verify(signature SliceRefUint8, flattenedDigests SliceRefUint8, flattenedPublicKeys SliceRefUint8) bool

func VerifyAggregateSealProof

func VerifyAggregateSealProof(registeredProof RegisteredSealProof, registeredAggregation RegisteredAggregationProof, proverId *ByteArray32, proof SliceRefUint8, commitInputs SliceRefAggregationInputs) (bool, error)

func VerifyEmptySectorUpdatePartitionProofs

func VerifyEmptySectorUpdatePartitionProofs(registeredProof RegisteredUpdateProof, proofs SliceRefSliceBoxedUint8, commROld, commRNew, commDNew *ByteArray32) (bool, error)

func VerifyEmptySectorUpdateProof

func VerifyEmptySectorUpdateProof(registeredProof RegisteredUpdateProof, proof SliceRefUint8, commROld, commRNew, commDNew *ByteArray32) (bool, error)

func VerifySeal

func VerifySeal(registeredProof RegisteredSealProof, commR *ByteArray32, commD *ByteArray32, proverId *ByteArray32, ticket *ByteArray32, seed *ByteArray32, sectorId uint64, proof SliceRefUint8) (bool, error)

func VerifyWindowPoSt

func VerifyWindowPoSt(randomness *ByteArray32, replicas SliceRefPublicReplicaInfo, proofs SliceRefPoStProof, proverId *ByteArray32) (bool, error)

func VerifyWinningPoSt

func VerifyWinningPoSt(randomness *ByteArray32, replicas SliceRefPublicReplicaInfo, proofs SliceRefPoStProof, proverId *ByteArray32) (bool, error)

func WriteWithAlignment

func WriteWithAlignment(registeredProof RegisteredSealProof, srcFd int32, srcSize uint64, dstFd int32, existingPieceSizes SliceRefUint64) (uint64, uint64, []byte, error)

func WriteWithoutAlignment

func WriteWithoutAlignment(registeredProof RegisteredSealProof, srcFd int32, srcSize uint64, dstFd int32) (uint64, []byte, error)

Types

type AggregationInputs

type AggregationInputs = C.AggregationInputs_t

func NewAggregationInputs

func NewAggregationInputs(commR ByteArray32, commD ByteArray32, sectorId uint64, ticket ByteArray32, seed ByteArray32) AggregationInputs

type ByteArray32

type ByteArray32 = C.uint8_32_array_t

func AsByteArray32

func AsByteArray32(goSlice []byte) ByteArray32

type ByteArray48

type ByteArray48 = C.uint8_48_array_t

type ByteArray96

type ByteArray96 = C.uint8_96_array_t

type ConsensusFault

type ConsensusFault struct {
	// Address of the miner at fault (always an ID address).
	Target address.Address
	// Epoch of the fault, which is the higher epoch of the two blocks causing it.
	Epoch abi.ChainEpoch
	// Type of fault.
	Type ConsensusFaultType
}

type ConsensusFaultType

type ConsensusFaultType int64
const (
	ConsensusFaultNone             ConsensusFaultType = 0
	ConsensusFaultDoubleForkMining ConsensusFaultType = 1
	ConsensusFaultParentGrinding   ConsensusFaultType = 2
	ConsensusFaultTimeOffsetMining ConsensusFaultType = 3
)

type Externs

type Externs interface {
	GetChainRandomness(ctx context.Context, epoch abi.ChainEpoch) ([32]byte, error)
	GetBeaconRandomness(ctx context.Context, epoch abi.ChainEpoch) ([32]byte, error)
	VerifyConsensusFault(ctx context.Context, h1, h2, extra []byte) (*ConsensusFault, int64)
	TipsetCid(ctx context.Context, epoch abi.ChainEpoch) (cid.Cid, error)

	blockstore.Blockstore
	blockstore.Viewer
}

func Lookup

func Lookup(handle uint64) (Externs, context.Context)

Lookup a blockstore by handle.

type FCPResponseStatus

type FCPResponseStatus = int64

type FvmMachine

type FvmMachine = C.InnerFvmMachine_t

func CreateFvmDebugMachine

func CreateFvmDebugMachine(fvmVersion FvmRegisteredVersion, chainEpoch, chainTimestamp, chainId, baseFeeHi, baseFeeLo, baseCircSupplyHi, baseCircSupplyLo, networkVersion uint64, stateRoot SliceRefUint8, actorRedirect SliceRefUint8, tracing bool, blockstoreId, externsId uint64) (*FvmMachine, error)

func CreateFvmMachine

func CreateFvmMachine(fvmVersion FvmRegisteredVersion, chainEpoch, chainTimestamp, chainId, baseFeeHi, baseFeeLo, baseCircSupplyHi, baseCircSupplyLo, networkVersion uint64, stateRoot SliceRefUint8, tracing bool, blockstoreId, externsId uint64) (*FvmMachine, error)

func (*FvmMachine) Destroy

func (ptr *FvmMachine) Destroy()

type FvmMachineExecuteResponse

type FvmMachineExecuteResponse = C.FvmMachineExecuteResponse_t

type FvmMachineExecuteResponseGo

type FvmMachineExecuteResponseGo struct {
	ExitCode             uint64
	ReturnVal            []byte
	GasUsed              uint64
	PenaltyHi            uint64
	PenaltyLo            uint64
	MinerTipHi           uint64
	MinerTipLo           uint64
	BaseFeeBurnHi        uint64
	BaseFeeBurnLo        uint64
	OverEstimationBurnHi uint64
	OverEstimationBurnLo uint64
	RefundHi             uint64
	RefundLo             uint64
	GasRefund            int64
	GasBurned            int64
	ExecTrace            []byte
	FailureInfo          string
	Events               []byte
	EventsRoot           []byte
}

/ FvmMachineExecuteResponse is a go allocated version of `FvmMachineExecuteResponse`.

func FvmMachineExecuteMessage

func FvmMachineExecuteMessage(executor *FvmMachine, message SliceRefUint8, chainLen, applyKind uint64) (FvmMachineExecuteResponseGo, error)

type FvmRegisteredVersion

type FvmRegisteredVersion = C.FvmRegisteredVersion_t

type PartitionSnarkProof

type PartitionSnarkProof = C.PartitionSnarkProof_t

func NewPartitionSnarkProof

func NewPartitionSnarkProof(pp RegisteredPoStProof, proof []byte) PartitionSnarkProof

type PartitionSnarkProofGo

type PartitionSnarkProofGo struct {
	RegisteredProof RegisteredPoStProof
	Proof           []byte
}

PartitionSnarkProofGo is a go allocated version of `PartitionSnarkProof`.

func GenerateSingleWindowPoStWithVanilla

func GenerateSingleWindowPoStWithVanilla(registeredProof RegisteredPoStProof, randomness, proverId *ByteArray32, vanillaProofs SliceRefSliceBoxedUint8, partitionIndex uint) (PartitionSnarkProofGo, []uint64, error)

type PoStProof

type PoStProof = C.PoStProof_t

func NewPoStProof

func NewPoStProof(pp RegisteredPoStProof, proof []byte) PoStProof

func (*PoStProof) Destroy

func (ptr *PoStProof) Destroy()

type PoStProofGo

type PoStProofGo struct {
	RegisteredProof RegisteredPoStProof
	Proof           []byte
}

PoStProofGo is a go allocated version of `PoStProof`.

func GenerateWindowPoSt

func GenerateWindowPoSt(randomness *ByteArray32, replicas SliceRefPrivateReplicaInfo, proverId *ByteArray32) ([]PoStProofGo, []uint64, error)

func GenerateWindowPoStWithVanilla

func GenerateWindowPoStWithVanilla(registeredProof RegisteredPoStProof, randomness, proverId *ByteArray32, vanillaProofs SliceRefSliceBoxedUint8) ([]PoStProofGo, []uint64, error)

func GenerateWinningPoSt

func GenerateWinningPoSt(randomness *ByteArray32, replicas SliceRefPrivateReplicaInfo, proverId *ByteArray32) ([]PoStProofGo, error)

func GenerateWinningPoStWithVanilla

func GenerateWinningPoStWithVanilla(registeredProof RegisteredPoStProof, randomness, proverId *ByteArray32, vanillaProofs SliceRefSliceBoxedUint8) ([]PoStProofGo, error)

func MergeWindowPoStPartitionProofs

func MergeWindowPoStPartitionProofs(registeredProof RegisteredPoStProof, partitionProofs SliceRefSliceBoxedUint8) (PoStProofGo, error)

type PrivateReplicaInfo

type PrivateReplicaInfo = C.PrivateReplicaInfo_t

func NewPrivateReplicaInfo

func NewPrivateReplicaInfo(pp RegisteredPoStProof, cacheDirPath string, commR ByteArray32, replicaPath string, sectorId uint64) PrivateReplicaInfo

func (*PrivateReplicaInfo) Destroy

func (ptr *PrivateReplicaInfo) Destroy()

type PublicPieceInfo

type PublicPieceInfo = C.PublicPieceInfo_t

func NewPublicPieceInfo

func NewPublicPieceInfo(numBytes uint64, commP ByteArray32) PublicPieceInfo

type PublicReplicaInfo

type PublicReplicaInfo = C.PublicReplicaInfo_t

func NewPublicReplicaInfo

func NewPublicReplicaInfo(pp RegisteredPoStProof, commR ByteArray32, sectorId uint64) PublicReplicaInfo

type RegisteredAggregationProof

type RegisteredAggregationProof = C.RegisteredAggregationProof_t

type RegisteredPoStProof

type RegisteredPoStProof = C.RegisteredPoStProof_t

type RegisteredSealProof

type RegisteredSealProof = C.RegisteredSealProof_t

type RegisteredUpdateProof

type RegisteredUpdateProof = C.RegisteredUpdateProof_t

type SliceBoxedPoStProof

type SliceBoxedPoStProof = C.struct_slice_boxed_PoStProof

type SliceBoxedSliceBoxedUint64

type SliceBoxedSliceBoxedUint64 = C.slice_boxed_slice_boxed_uint64_t

type SliceBoxedSliceBoxedUint8

type SliceBoxedSliceBoxedUint8 = C.slice_boxed_slice_boxed_uint8_t

type SliceBoxedUint64

type SliceBoxedUint64 = C.struct_slice_boxed_uint64

type SliceBoxedUint8

type SliceBoxedUint8 = C.struct_slice_boxed_uint8

func AllocSliceBoxedUint8

func AllocSliceBoxedUint8(goBytes []byte) SliceBoxedUint8

func (*SliceBoxedUint8) Destroy

func (ptr *SliceBoxedUint8) Destroy()

type SliceRefAggregationInputs

type SliceRefAggregationInputs = C.slice_ref_AggregationInputs_t

func AsSliceRefAggregationInputs

func AsSliceRefAggregationInputs(goSlice []AggregationInputs) SliceRefAggregationInputs

type SliceRefByteArray32

type SliceRefByteArray32 = C.slice_ref_uint8_32_array_t

func AsSliceRefByteArray32

func AsSliceRefByteArray32(goSlice []ByteArray32) SliceRefByteArray32

type SliceRefPoStProof

type SliceRefPoStProof = C.slice_ref_PoStProof_t

func AsSliceRefPoStProof

func AsSliceRefPoStProof(goSlice []PoStProof) SliceRefPoStProof

type SliceRefPrivateReplicaInfo

type SliceRefPrivateReplicaInfo = C.slice_ref_PrivateReplicaInfo_t

func AsSliceRefPrivateReplicaInfo

func AsSliceRefPrivateReplicaInfo(goSlice []PrivateReplicaInfo) SliceRefPrivateReplicaInfo

type SliceRefPublicPieceInfo

type SliceRefPublicPieceInfo = C.slice_ref_PublicPieceInfo_t

func AsSliceRefPublicPieceInfo

func AsSliceRefPublicPieceInfo(goSlice []PublicPieceInfo) SliceRefPublicPieceInfo

type SliceRefPublicReplicaInfo

type SliceRefPublicReplicaInfo = C.slice_ref_PublicReplicaInfo_t

func AsSliceRefPublicReplicaInfo

func AsSliceRefPublicReplicaInfo(goSlice []PublicReplicaInfo) SliceRefPublicReplicaInfo

type SliceRefSliceBoxedUint8

type SliceRefSliceBoxedUint8 = C.slice_ref_slice_boxed_uint8_t

func AsSliceRefSliceBoxedUint8

func AsSliceRefSliceBoxedUint8(goSlice []SliceBoxedUint8) SliceRefSliceBoxedUint8

type SliceRefUint

type SliceRefUint = C.slice_ref_size_t

func AsSliceRefUint

func AsSliceRefUint(goSlice []uint) SliceRefUint

type SliceRefUint64

type SliceRefUint64 = C.slice_ref_uint64_t

func AsSliceRefUint64

func AsSliceRefUint64(goBytes []uint64) SliceRefUint64

type SliceRefUint8

type SliceRefUint8 = C.slice_ref_uint8_t

func AsSliceRefUint8

func AsSliceRefUint8(goBytes []byte) SliceRefUint8

Jump to

Keyboard shortcuts

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