Documentation ¶
Index ¶
- func CessDestroyAggregateProof(ptr *CessAggregateProof)
- func CessDestroyAggregateResponse(ptr *CessAggregateResponse)
- func CessDestroyClearCacheResponse(ptr *CessClearCacheResponse)
- func CessDestroyFauxrepResponse(ptr *CessFauxRepResponse)
- func CessDestroyFinalizeTicketResponse(ptr *CessFinalizeTicketResponse)
- func CessDestroyGenerateDataCommitmentResponse(ptr *CessGenerateDataCommitmentResponse)
- func CessDestroyGenerateFallbackSectorChallengesResponse(ptr *CessGenerateFallbackSectorChallengesResponse)
- func CessDestroyGeneratePieceCommitmentResponse(ptr *CessGeneratePieceCommitmentResponse)
- func CessDestroyGenerateSingleVanillaProofResponse(ptr *CessGenerateSingleVanillaProofResponse)
- func CessDestroyGenerateSingleWindowPostWithVanillaResponse(ptr *CessGenerateSingleWindowPoStWithVanillaResponse)
- func CessDestroyGenerateWindowPostResponse(ptr *CessGenerateWindowPoStResponse)
- func CessDestroyGenerateWinningPostResponse(ptr *CessGenerateWinningPoStResponse)
- func CessDestroyGenerateWinningPostSectorChallenge(ptr *CessGenerateWinningPoStSectorChallenge)
- func CessDestroyGetNumPartitionForFallbackPostResponse(ptr *CessGetNumPartitionForFallbackPoStResponse)
- func CessDestroyGpuDeviceResponse(ptr *CessGpuDeviceResponse)
- func CessDestroyHashResponse(ptr *CessHashResponse)
- func CessDestroyInitLogFdResponse(ptr *CessInitLogFdResponse)
- func CessDestroyMergeWindowPostPartitionProofsResponse(ptr *CessMergeWindowPoStPartitionProofsResponse)
- func CessDestroyPrivateKeyGenerateResponse(ptr *CessPrivateKeyGenerateResponse)
- func CessDestroyPrivateKeyPublicKeyResponse(ptr *CessPrivateKeyPublicKeyResponse)
- func CessDestroyPrivateKeySignResponse(ptr *CessPrivateKeySignResponse)
- func CessDestroySealCommitPhase1Response(ptr *CessSealCommitPhase1Response)
- func CessDestroySealCommitPhase2Response(ptr *CessSealCommitPhase2Response)
- func CessDestroySealPreCommitPhase1Response(ptr *CessSealPreCommitPhase1Response)
- func CessDestroySealPreCommitPhase2Response(ptr *CessSealPreCommitPhase2Response)
- func CessDestroyStringResponse(ptr *CessStringResponse)
- func CessDestroyUnsealRangeResponse(ptr *CessUnsealRangeResponse)
- func CessDestroyVerifyAggregateSealResponse(ptr *CessVerifyAggregateSealProofResponse)
- func CessDestroyVerifySealResponse(ptr *CessVerifySealResponse)
- func CessDestroyVerifyWindowPostResponse(ptr *CessVerifyWindowPoStResponse)
- func CessDestroyVerifyWinningPostResponse(ptr *CessVerifyWinningPoStResponse)
- func CessDestroyWriteWithAlignmentResponse(ptr *CessWriteWithAlignmentResponse)
- func CessDestroyWriteWithoutAlignmentResponse(ptr *CessWriteWithoutAlignmentResponse)
- func CessDestroyZeroSignatureResponse(ptr *CessZeroSignatureResponse)
- func CessDropSignature(sig []byte)
- func CessGetMaxUserBytesPerStagedSector(registeredProof CessRegisteredSealProof) uint64
- func CessHashVerify(signaturePtr []byte, flattenedMessagesPtr []byte, flattenedMessagesLen uint, ...) int32
- func CessVerify(signaturePtr []byte, flattenedDigestsPtr []byte, flattenedDigestsLen uint, ...) int32
- type Cess32ByteArray
- type CessAggregateProof
- type CessAggregateResponse
- func (x *CessAggregateResponse) Deref()
- func (x *CessAggregateResponse) Free()
- func (x *CessAggregateResponse) PassRef() (*C.cess_AggregateResponse, *cgoAllocMap)
- func (x CessAggregateResponse) PassValue() (C.cess_AggregateResponse, *cgoAllocMap)
- func (x *CessAggregateResponse) Ref() *C.cess_AggregateResponse
- type CessAggregationInputs
- func (x *CessAggregationInputs) Deref()
- func (x *CessAggregationInputs) Free()
- func (x *CessAggregationInputs) PassRef() (*C.cess_AggregationInputs, *cgoAllocMap)
- func (x CessAggregationInputs) PassValue() (C.cess_AggregationInputs, *cgoAllocMap)
- func (x *CessAggregationInputs) Ref() *C.cess_AggregationInputs
- type CessBLSDigest
- type CessBLSPrivateKey
- type CessBLSPublicKey
- type CessBLSSignature
- type CessClearCacheResponse
- func (x *CessClearCacheResponse) Deref()
- func (x *CessClearCacheResponse) Free()
- func (x *CessClearCacheResponse) PassRef() (*C.cess_ClearCacheResponse, *cgoAllocMap)
- func (x CessClearCacheResponse) PassValue() (C.cess_ClearCacheResponse, *cgoAllocMap)
- func (x *CessClearCacheResponse) Ref() *C.cess_ClearCacheResponse
- type CessFauxRepResponse
- type CessFinalizeTicketResponse
- func (x *CessFinalizeTicketResponse) Deref()
- func (x *CessFinalizeTicketResponse) Free()
- func (x *CessFinalizeTicketResponse) PassRef() (*C.cess_FinalizeTicketResponse, *cgoAllocMap)
- func (x CessFinalizeTicketResponse) PassValue() (C.cess_FinalizeTicketResponse, *cgoAllocMap)
- func (x *CessFinalizeTicketResponse) Ref() *C.cess_FinalizeTicketResponse
- type CessGenerateDataCommitmentResponse
- func (x *CessGenerateDataCommitmentResponse) Deref()
- func (x *CessGenerateDataCommitmentResponse) Free()
- func (x *CessGenerateDataCommitmentResponse) PassRef() (*C.cess_GenerateDataCommitmentResponse, *cgoAllocMap)
- func (x CessGenerateDataCommitmentResponse) PassValue() (C.cess_GenerateDataCommitmentResponse, *cgoAllocMap)
- func (x *CessGenerateDataCommitmentResponse) Ref() *C.cess_GenerateDataCommitmentResponse
- type CessGenerateFallbackSectorChallengesResponse
- func (x *CessGenerateFallbackSectorChallengesResponse) Deref()
- func (x *CessGenerateFallbackSectorChallengesResponse) Free()
- func (x *CessGenerateFallbackSectorChallengesResponse) PassRef() (*C.cess_GenerateFallbackSectorChallengesResponse, *cgoAllocMap)
- func (x CessGenerateFallbackSectorChallengesResponse) PassValue() (C.cess_GenerateFallbackSectorChallengesResponse, *cgoAllocMap)
- func (x *CessGenerateFallbackSectorChallengesResponse) Ref() *C.cess_GenerateFallbackSectorChallengesResponse
- type CessGeneratePieceCommitmentResponse
- func (x *CessGeneratePieceCommitmentResponse) Deref()
- func (x *CessGeneratePieceCommitmentResponse) Free()
- func (x *CessGeneratePieceCommitmentResponse) PassRef() (*C.cess_GeneratePieceCommitmentResponse, *cgoAllocMap)
- func (x CessGeneratePieceCommitmentResponse) PassValue() (C.cess_GeneratePieceCommitmentResponse, *cgoAllocMap)
- func (x *CessGeneratePieceCommitmentResponse) Ref() *C.cess_GeneratePieceCommitmentResponse
- type CessGenerateSingleVanillaProofResponse
- func (x *CessGenerateSingleVanillaProofResponse) Deref()
- func (x *CessGenerateSingleVanillaProofResponse) Free()
- func (x *CessGenerateSingleVanillaProofResponse) PassRef() (*C.cess_GenerateSingleVanillaProofResponse, *cgoAllocMap)
- func (x CessGenerateSingleVanillaProofResponse) PassValue() (C.cess_GenerateSingleVanillaProofResponse, *cgoAllocMap)
- func (x *CessGenerateSingleVanillaProofResponse) Ref() *C.cess_GenerateSingleVanillaProofResponse
- type CessGenerateSingleWindowPoStWithVanillaResponse
- func (x *CessGenerateSingleWindowPoStWithVanillaResponse) Deref()
- func (x *CessGenerateSingleWindowPoStWithVanillaResponse) Free()
- func (x *CessGenerateSingleWindowPoStWithVanillaResponse) PassRef() (*C.cess_GenerateSingleWindowPoStWithVanillaResponse, *cgoAllocMap)
- func (x CessGenerateSingleWindowPoStWithVanillaResponse) PassValue() (C.cess_GenerateSingleWindowPoStWithVanillaResponse, *cgoAllocMap)
- func (x *CessGenerateSingleWindowPoStWithVanillaResponse) Ref() *C.cess_GenerateSingleWindowPoStWithVanillaResponse
- type CessGenerateWindowPoStResponse
- func CessGenerateWindowPost(randomness Cess32ByteArray, replicasPtr []CessPrivateReplicaInfo, ...) *CessGenerateWindowPoStResponse
- func CessGenerateWindowPostWithVanilla(registeredProof CessRegisteredPoStProof, randomness Cess32ByteArray, ...) *CessGenerateWindowPoStResponse
- func NewCessGenerateWindowPoStResponseRef(ref unsafe.Pointer) *CessGenerateWindowPoStResponse
- func (x *CessGenerateWindowPoStResponse) Deref()
- func (x *CessGenerateWindowPoStResponse) Free()
- func (x *CessGenerateWindowPoStResponse) PassRef() (*C.cess_GenerateWindowPoStResponse, *cgoAllocMap)
- func (x CessGenerateWindowPoStResponse) PassValue() (C.cess_GenerateWindowPoStResponse, *cgoAllocMap)
- func (x *CessGenerateWindowPoStResponse) Ref() *C.cess_GenerateWindowPoStResponse
- type CessGenerateWinningPoStResponse
- func CessGenerateWinningPost(randomness Cess32ByteArray, replicasPtr []CessPrivateReplicaInfo, ...) *CessGenerateWinningPoStResponse
- func CessGenerateWinningPostWithVanilla(registeredProof CessRegisteredPoStProof, randomness Cess32ByteArray, ...) *CessGenerateWinningPoStResponse
- func NewCessGenerateWinningPoStResponseRef(ref unsafe.Pointer) *CessGenerateWinningPoStResponse
- func (x *CessGenerateWinningPoStResponse) Deref()
- func (x *CessGenerateWinningPoStResponse) Free()
- func (x *CessGenerateWinningPoStResponse) PassRef() (*C.cess_GenerateWinningPoStResponse, *cgoAllocMap)
- func (x CessGenerateWinningPoStResponse) PassValue() (C.cess_GenerateWinningPoStResponse, *cgoAllocMap)
- func (x *CessGenerateWinningPoStResponse) Ref() *C.cess_GenerateWinningPoStResponse
- type CessGenerateWinningPoStSectorChallenge
- func (x *CessGenerateWinningPoStSectorChallenge) Deref()
- func (x *CessGenerateWinningPoStSectorChallenge) Free()
- func (x *CessGenerateWinningPoStSectorChallenge) PassRef() (*C.cess_GenerateWinningPoStSectorChallenge, *cgoAllocMap)
- func (x CessGenerateWinningPoStSectorChallenge) PassValue() (C.cess_GenerateWinningPoStSectorChallenge, *cgoAllocMap)
- func (x *CessGenerateWinningPoStSectorChallenge) Ref() *C.cess_GenerateWinningPoStSectorChallenge
- type CessGetNumPartitionForFallbackPoStResponse
- func (x *CessGetNumPartitionForFallbackPoStResponse) Deref()
- func (x *CessGetNumPartitionForFallbackPoStResponse) Free()
- func (x *CessGetNumPartitionForFallbackPoStResponse) PassRef() (*C.cess_GetNumPartitionForFallbackPoStResponse, *cgoAllocMap)
- func (x CessGetNumPartitionForFallbackPoStResponse) PassValue() (C.cess_GetNumPartitionForFallbackPoStResponse, *cgoAllocMap)
- func (x *CessGetNumPartitionForFallbackPoStResponse) Ref() *C.cess_GetNumPartitionForFallbackPoStResponse
- type CessGpuDeviceResponse
- func (x *CessGpuDeviceResponse) Deref()
- func (x *CessGpuDeviceResponse) Free()
- func (x *CessGpuDeviceResponse) PassRef() (*C.cess_GpuDeviceResponse, *cgoAllocMap)
- func (x CessGpuDeviceResponse) PassValue() (C.cess_GpuDeviceResponse, *cgoAllocMap)
- func (x *CessGpuDeviceResponse) Ref() *C.cess_GpuDeviceResponse
- type CessHashResponse
- type CessInitLogFdResponse
- func (x *CessInitLogFdResponse) Deref()
- func (x *CessInitLogFdResponse) Free()
- func (x *CessInitLogFdResponse) PassRef() (*C.cess_InitLogFdResponse, *cgoAllocMap)
- func (x CessInitLogFdResponse) PassValue() (C.cess_InitLogFdResponse, *cgoAllocMap)
- func (x *CessInitLogFdResponse) Ref() *C.cess_InitLogFdResponse
- type CessMergeWindowPoStPartitionProofsResponse
- func (x *CessMergeWindowPoStPartitionProofsResponse) Deref()
- func (x *CessMergeWindowPoStPartitionProofsResponse) Free()
- func (x *CessMergeWindowPoStPartitionProofsResponse) PassRef() (*C.cess_MergeWindowPoStPartitionProofsResponse, *cgoAllocMap)
- func (x CessMergeWindowPoStPartitionProofsResponse) PassValue() (C.cess_MergeWindowPoStPartitionProofsResponse, *cgoAllocMap)
- func (x *CessMergeWindowPoStPartitionProofsResponse) Ref() *C.cess_MergeWindowPoStPartitionProofsResponse
- type CessPartitionSnarkProof
- func (x *CessPartitionSnarkProof) Deref()
- func (x *CessPartitionSnarkProof) Free()
- func (x *CessPartitionSnarkProof) PassRef() (*C.cess_PartitionSnarkProof, *cgoAllocMap)
- func (x CessPartitionSnarkProof) PassValue() (C.cess_PartitionSnarkProof, *cgoAllocMap)
- func (x *CessPartitionSnarkProof) Ref() *C.cess_PartitionSnarkProof
- type CessPoStProof
- type CessPrivateKeyGenerateResponse
- func (x *CessPrivateKeyGenerateResponse) Deref()
- func (x *CessPrivateKeyGenerateResponse) Free()
- func (x *CessPrivateKeyGenerateResponse) PassRef() (*C.cess_PrivateKeyGenerateResponse, *cgoAllocMap)
- func (x CessPrivateKeyGenerateResponse) PassValue() (C.cess_PrivateKeyGenerateResponse, *cgoAllocMap)
- func (x *CessPrivateKeyGenerateResponse) Ref() *C.cess_PrivateKeyGenerateResponse
- type CessPrivateKeyPublicKeyResponse
- func (x *CessPrivateKeyPublicKeyResponse) Deref()
- func (x *CessPrivateKeyPublicKeyResponse) Free()
- func (x *CessPrivateKeyPublicKeyResponse) PassRef() (*C.cess_PrivateKeyPublicKeyResponse, *cgoAllocMap)
- func (x CessPrivateKeyPublicKeyResponse) PassValue() (C.cess_PrivateKeyPublicKeyResponse, *cgoAllocMap)
- func (x *CessPrivateKeyPublicKeyResponse) Ref() *C.cess_PrivateKeyPublicKeyResponse
- type CessPrivateKeySignResponse
- func (x *CessPrivateKeySignResponse) Deref()
- func (x *CessPrivateKeySignResponse) Free()
- func (x *CessPrivateKeySignResponse) PassRef() (*C.cess_PrivateKeySignResponse, *cgoAllocMap)
- func (x CessPrivateKeySignResponse) PassValue() (C.cess_PrivateKeySignResponse, *cgoAllocMap)
- func (x *CessPrivateKeySignResponse) Ref() *C.cess_PrivateKeySignResponse
- type CessPrivateReplicaInfo
- func (x *CessPrivateReplicaInfo) Deref()
- func (x *CessPrivateReplicaInfo) Free()
- func (x *CessPrivateReplicaInfo) PassRef() (*C.cess_PrivateReplicaInfo, *cgoAllocMap)
- func (x CessPrivateReplicaInfo) PassValue() (C.cess_PrivateReplicaInfo, *cgoAllocMap)
- func (x *CessPrivateReplicaInfo) Ref() *C.cess_PrivateReplicaInfo
- type CessPublicPieceInfo
- type CessPublicReplicaInfo
- func (x *CessPublicReplicaInfo) Deref()
- func (x *CessPublicReplicaInfo) Free()
- func (x *CessPublicReplicaInfo) PassRef() (*C.cess_PublicReplicaInfo, *cgoAllocMap)
- func (x CessPublicReplicaInfo) PassValue() (C.cess_PublicReplicaInfo, *cgoAllocMap)
- func (x *CessPublicReplicaInfo) Ref() *C.cess_PublicReplicaInfo
- type CessRegisteredAggregationProof
- type CessRegisteredPoStProof
- type CessRegisteredSealProof
- type CessSealCommitPhase1Response
- func (x *CessSealCommitPhase1Response) Deref()
- func (x *CessSealCommitPhase1Response) Free()
- func (x *CessSealCommitPhase1Response) PassRef() (*C.cess_SealCommitPhase1Response, *cgoAllocMap)
- func (x CessSealCommitPhase1Response) PassValue() (C.cess_SealCommitPhase1Response, *cgoAllocMap)
- func (x *CessSealCommitPhase1Response) Ref() *C.cess_SealCommitPhase1Response
- type CessSealCommitPhase2Response
- func (x *CessSealCommitPhase2Response) Deref()
- func (x *CessSealCommitPhase2Response) Free()
- func (x *CessSealCommitPhase2Response) PassRef() (*C.cess_SealCommitPhase2Response, *cgoAllocMap)
- func (x CessSealCommitPhase2Response) PassValue() (C.cess_SealCommitPhase2Response, *cgoAllocMap)
- func (x *CessSealCommitPhase2Response) Ref() *C.cess_SealCommitPhase2Response
- type CessSealPreCommitPhase1Response
- func (x *CessSealPreCommitPhase1Response) Deref()
- func (x *CessSealPreCommitPhase1Response) Free()
- func (x *CessSealPreCommitPhase1Response) PassRef() (*C.cess_SealPreCommitPhase1Response, *cgoAllocMap)
- func (x CessSealPreCommitPhase1Response) PassValue() (C.cess_SealPreCommitPhase1Response, *cgoAllocMap)
- func (x *CessSealPreCommitPhase1Response) Ref() *C.cess_SealPreCommitPhase1Response
- type CessSealPreCommitPhase2Response
- func (x *CessSealPreCommitPhase2Response) Deref()
- func (x *CessSealPreCommitPhase2Response) Free()
- func (x *CessSealPreCommitPhase2Response) PassRef() (*C.cess_SealPreCommitPhase2Response, *cgoAllocMap)
- func (x CessSealPreCommitPhase2Response) PassValue() (C.cess_SealPreCommitPhase2Response, *cgoAllocMap)
- func (x *CessSealPreCommitPhase2Response) Ref() *C.cess_SealPreCommitPhase2Response
- type CessStringResponse
- func CessGetPostCircuitIdentifier(registeredProof CessRegisteredPoStProof) *CessStringResponse
- func CessGetPostParamsCid(registeredProof CessRegisteredPoStProof) *CessStringResponse
- func CessGetPostParamsPath(registeredProof CessRegisteredPoStProof) *CessStringResponse
- func CessGetPostVerifyingKeyCid(registeredProof CessRegisteredPoStProof) *CessStringResponse
- func CessGetPostVerifyingKeyPath(registeredProof CessRegisteredPoStProof) *CessStringResponse
- func CessGetPostVersion(registeredProof CessRegisteredPoStProof) *CessStringResponse
- func CessGetSealCircuitIdentifier(registeredProof CessRegisteredSealProof) *CessStringResponse
- func CessGetSealParamsCid(registeredProof CessRegisteredSealProof) *CessStringResponse
- func CessGetSealParamsPath(registeredProof CessRegisteredSealProof) *CessStringResponse
- func CessGetSealVerifyingKeyCid(registeredProof CessRegisteredSealProof) *CessStringResponse
- func CessGetSealVerifyingKeyPath(registeredProof CessRegisteredSealProof) *CessStringResponse
- func CessGetSealVersion(registeredProof CessRegisteredSealProof) *CessStringResponse
- func NewCessStringResponseRef(ref unsafe.Pointer) *CessStringResponse
- type CessUnsealRangeResponse
- func (x *CessUnsealRangeResponse) Deref()
- func (x *CessUnsealRangeResponse) Free()
- func (x *CessUnsealRangeResponse) PassRef() (*C.cess_UnsealRangeResponse, *cgoAllocMap)
- func (x CessUnsealRangeResponse) PassValue() (C.cess_UnsealRangeResponse, *cgoAllocMap)
- func (x *CessUnsealRangeResponse) Ref() *C.cess_UnsealRangeResponse
- type CessVanillaProof
- type CessVerifyAggregateSealProofResponse
- func (x *CessVerifyAggregateSealProofResponse) Deref()
- func (x *CessVerifyAggregateSealProofResponse) Free()
- func (x *CessVerifyAggregateSealProofResponse) PassRef() (*C.cess_VerifyAggregateSealProofResponse, *cgoAllocMap)
- func (x CessVerifyAggregateSealProofResponse) PassValue() (C.cess_VerifyAggregateSealProofResponse, *cgoAllocMap)
- func (x *CessVerifyAggregateSealProofResponse) Ref() *C.cess_VerifyAggregateSealProofResponse
- type CessVerifySealResponse
- func (x *CessVerifySealResponse) Deref()
- func (x *CessVerifySealResponse) Free()
- func (x *CessVerifySealResponse) PassRef() (*C.cess_VerifySealResponse, *cgoAllocMap)
- func (x CessVerifySealResponse) PassValue() (C.cess_VerifySealResponse, *cgoAllocMap)
- func (x *CessVerifySealResponse) Ref() *C.cess_VerifySealResponse
- type CessVerifyWindowPoStResponse
- func (x *CessVerifyWindowPoStResponse) Deref()
- func (x *CessVerifyWindowPoStResponse) Free()
- func (x *CessVerifyWindowPoStResponse) PassRef() (*C.cess_VerifyWindowPoStResponse, *cgoAllocMap)
- func (x CessVerifyWindowPoStResponse) PassValue() (C.cess_VerifyWindowPoStResponse, *cgoAllocMap)
- func (x *CessVerifyWindowPoStResponse) Ref() *C.cess_VerifyWindowPoStResponse
- type CessVerifyWinningPoStResponse
- func (x *CessVerifyWinningPoStResponse) Deref()
- func (x *CessVerifyWinningPoStResponse) Free()
- func (x *CessVerifyWinningPoStResponse) PassRef() (*C.cess_VerifyWinningPoStResponse, *cgoAllocMap)
- func (x CessVerifyWinningPoStResponse) PassValue() (C.cess_VerifyWinningPoStResponse, *cgoAllocMap)
- func (x *CessVerifyWinningPoStResponse) Ref() *C.cess_VerifyWinningPoStResponse
- type CessWriteWithAlignmentResponse
- func (x *CessWriteWithAlignmentResponse) Deref()
- func (x *CessWriteWithAlignmentResponse) Free()
- func (x *CessWriteWithAlignmentResponse) PassRef() (*C.cess_WriteWithAlignmentResponse, *cgoAllocMap)
- func (x CessWriteWithAlignmentResponse) PassValue() (C.cess_WriteWithAlignmentResponse, *cgoAllocMap)
- func (x *CessWriteWithAlignmentResponse) Ref() *C.cess_WriteWithAlignmentResponse
- type CessWriteWithoutAlignmentResponse
- func (x *CessWriteWithoutAlignmentResponse) Deref()
- func (x *CessWriteWithoutAlignmentResponse) Free()
- func (x *CessWriteWithoutAlignmentResponse) PassRef() (*C.cess_WriteWithoutAlignmentResponse, *cgoAllocMap)
- func (x CessWriteWithoutAlignmentResponse) PassValue() (C.cess_WriteWithoutAlignmentResponse, *cgoAllocMap)
- func (x *CessWriteWithoutAlignmentResponse) Ref() *C.cess_WriteWithoutAlignmentResponse
- type CessZeroSignatureResponse
- func (x *CessZeroSignatureResponse) Deref()
- func (x *CessZeroSignatureResponse) Free()
- func (x *CessZeroSignatureResponse) PassRef() (*C.cess_ZeroSignatureResponse, *cgoAllocMap)
- func (x CessZeroSignatureResponse) PassValue() (C.cess_ZeroSignatureResponse, *cgoAllocMap)
- func (x *CessZeroSignatureResponse) Ref() *C.cess_ZeroSignatureResponse
- type FCPResponseStatus
- type RawString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CessDestroyAggregateProof ¶
func CessDestroyAggregateProof(ptr *CessAggregateProof)
CessDestroyAggregateProof function as declared in cess-ffi/cesscrypto.h:404
func CessDestroyAggregateResponse ¶
func CessDestroyAggregateResponse(ptr *CessAggregateResponse)
CessDestroyAggregateResponse function as declared in cess-ffi/cesscrypto.h:406
func CessDestroyClearCacheResponse ¶
func CessDestroyClearCacheResponse(ptr *CessClearCacheResponse)
CessDestroyClearCacheResponse function as declared in cess-ffi/cesscrypto.h:408
func CessDestroyFauxrepResponse ¶
func CessDestroyFauxrepResponse(ptr *CessFauxRepResponse)
CessDestroyFauxrepResponse function as declared in cess-ffi/cesscrypto.h:410
func CessDestroyFinalizeTicketResponse ¶
func CessDestroyFinalizeTicketResponse(ptr *CessFinalizeTicketResponse)
CessDestroyFinalizeTicketResponse function as declared in cess-ffi/cesscrypto.h:412
func CessDestroyGenerateDataCommitmentResponse ¶
func CessDestroyGenerateDataCommitmentResponse(ptr *CessGenerateDataCommitmentResponse)
CessDestroyGenerateDataCommitmentResponse function as declared in cess-ffi/cesscrypto.h:414
func CessDestroyGenerateFallbackSectorChallengesResponse ¶
func CessDestroyGenerateFallbackSectorChallengesResponse(ptr *CessGenerateFallbackSectorChallengesResponse)
CessDestroyGenerateFallbackSectorChallengesResponse function as declared in cess-ffi/cesscrypto.h:416
func CessDestroyGeneratePieceCommitmentResponse ¶
func CessDestroyGeneratePieceCommitmentResponse(ptr *CessGeneratePieceCommitmentResponse)
CessDestroyGeneratePieceCommitmentResponse function as declared in cess-ffi/cesscrypto.h:418
func CessDestroyGenerateSingleVanillaProofResponse ¶
func CessDestroyGenerateSingleVanillaProofResponse(ptr *CessGenerateSingleVanillaProofResponse)
CessDestroyGenerateSingleVanillaProofResponse function as declared in cess-ffi/cesscrypto.h:420
func CessDestroyGenerateSingleWindowPostWithVanillaResponse ¶
func CessDestroyGenerateSingleWindowPostWithVanillaResponse(ptr *CessGenerateSingleWindowPoStWithVanillaResponse)
CessDestroyGenerateSingleWindowPostWithVanillaResponse function as declared in cess-ffi/cesscrypto.h:422
func CessDestroyGenerateWindowPostResponse ¶
func CessDestroyGenerateWindowPostResponse(ptr *CessGenerateWindowPoStResponse)
CessDestroyGenerateWindowPostResponse function as declared in cess-ffi/cesscrypto.h:424
func CessDestroyGenerateWinningPostResponse ¶
func CessDestroyGenerateWinningPostResponse(ptr *CessGenerateWinningPoStResponse)
CessDestroyGenerateWinningPostResponse function as declared in cess-ffi/cesscrypto.h:426
func CessDestroyGenerateWinningPostSectorChallenge ¶
func CessDestroyGenerateWinningPostSectorChallenge(ptr *CessGenerateWinningPoStSectorChallenge)
CessDestroyGenerateWinningPostSectorChallenge function as declared in cess-ffi/cesscrypto.h:428
func CessDestroyGetNumPartitionForFallbackPostResponse ¶
func CessDestroyGetNumPartitionForFallbackPostResponse(ptr *CessGetNumPartitionForFallbackPoStResponse)
CessDestroyGetNumPartitionForFallbackPostResponse function as declared in cess-ffi/cesscrypto.h:430
func CessDestroyGpuDeviceResponse ¶
func CessDestroyGpuDeviceResponse(ptr *CessGpuDeviceResponse)
CessDestroyGpuDeviceResponse function as declared in cess-ffi/cesscrypto.h:432
func CessDestroyHashResponse ¶
func CessDestroyHashResponse(ptr *CessHashResponse)
CessDestroyHashResponse function as declared in cess-ffi/cesscrypto.h:434
func CessDestroyInitLogFdResponse ¶
func CessDestroyInitLogFdResponse(ptr *CessInitLogFdResponse)
CessDestroyInitLogFdResponse function as declared in cess-ffi/cesscrypto.h:436
func CessDestroyMergeWindowPostPartitionProofsResponse ¶
func CessDestroyMergeWindowPostPartitionProofsResponse(ptr *CessMergeWindowPoStPartitionProofsResponse)
CessDestroyMergeWindowPostPartitionProofsResponse function as declared in cess-ffi/cesscrypto.h:438
func CessDestroyPrivateKeyGenerateResponse ¶
func CessDestroyPrivateKeyGenerateResponse(ptr *CessPrivateKeyGenerateResponse)
CessDestroyPrivateKeyGenerateResponse function as declared in cess-ffi/cesscrypto.h:440
func CessDestroyPrivateKeyPublicKeyResponse ¶
func CessDestroyPrivateKeyPublicKeyResponse(ptr *CessPrivateKeyPublicKeyResponse)
CessDestroyPrivateKeyPublicKeyResponse function as declared in cess-ffi/cesscrypto.h:442
func CessDestroyPrivateKeySignResponse ¶
func CessDestroyPrivateKeySignResponse(ptr *CessPrivateKeySignResponse)
CessDestroyPrivateKeySignResponse function as declared in cess-ffi/cesscrypto.h:444
func CessDestroySealCommitPhase1Response ¶
func CessDestroySealCommitPhase1Response(ptr *CessSealCommitPhase1Response)
CessDestroySealCommitPhase1Response function as declared in cess-ffi/cesscrypto.h:446
func CessDestroySealCommitPhase2Response ¶
func CessDestroySealCommitPhase2Response(ptr *CessSealCommitPhase2Response)
CessDestroySealCommitPhase2Response function as declared in cess-ffi/cesscrypto.h:448
func CessDestroySealPreCommitPhase1Response ¶
func CessDestroySealPreCommitPhase1Response(ptr *CessSealPreCommitPhase1Response)
CessDestroySealPreCommitPhase1Response function as declared in cess-ffi/cesscrypto.h:450
func CessDestroySealPreCommitPhase2Response ¶
func CessDestroySealPreCommitPhase2Response(ptr *CessSealPreCommitPhase2Response)
CessDestroySealPreCommitPhase2Response function as declared in cess-ffi/cesscrypto.h:452
func CessDestroyStringResponse ¶
func CessDestroyStringResponse(ptr *CessStringResponse)
CessDestroyStringResponse function as declared in cess-ffi/cesscrypto.h:454
func CessDestroyUnsealRangeResponse ¶
func CessDestroyUnsealRangeResponse(ptr *CessUnsealRangeResponse)
CessDestroyUnsealRangeResponse function as declared in cess-ffi/cesscrypto.h:456
func CessDestroyVerifyAggregateSealResponse ¶
func CessDestroyVerifyAggregateSealResponse(ptr *CessVerifyAggregateSealProofResponse)
CessDestroyVerifyAggregateSealResponse function as declared in cess-ffi/cesscrypto.h:462
func CessDestroyVerifySealResponse ¶
func CessDestroyVerifySealResponse(ptr *CessVerifySealResponse)
CessDestroyVerifySealResponse function as declared in cess-ffi/cesscrypto.h:468
func CessDestroyVerifyWindowPostResponse ¶
func CessDestroyVerifyWindowPostResponse(ptr *CessVerifyWindowPoStResponse)
CessDestroyVerifyWindowPostResponse function as declared in cess-ffi/cesscrypto.h:470
func CessDestroyVerifyWinningPostResponse ¶
func CessDestroyVerifyWinningPostResponse(ptr *CessVerifyWinningPoStResponse)
CessDestroyVerifyWinningPostResponse function as declared in cess-ffi/cesscrypto.h:476
func CessDestroyWriteWithAlignmentResponse ¶
func CessDestroyWriteWithAlignmentResponse(ptr *CessWriteWithAlignmentResponse)
CessDestroyWriteWithAlignmentResponse function as declared in cess-ffi/cesscrypto.h:478
func CessDestroyWriteWithoutAlignmentResponse ¶
func CessDestroyWriteWithoutAlignmentResponse(ptr *CessWriteWithoutAlignmentResponse)
CessDestroyWriteWithoutAlignmentResponse function as declared in cess-ffi/cesscrypto.h:480
func CessDestroyZeroSignatureResponse ¶
func CessDestroyZeroSignatureResponse(ptr *CessZeroSignatureResponse)
CessDestroyZeroSignatureResponse function as declared in cess-ffi/cesscrypto.h:482
func CessDropSignature ¶
func CessDropSignature(sig []byte)
CessDropSignature function as declared in cess-ffi/cesscrypto.h:487
func CessGetMaxUserBytesPerStagedSector ¶
func CessGetMaxUserBytesPerStagedSector(registeredProof CessRegisteredSealProof) uint64
CessGetMaxUserBytesPerStagedSector function as declared in cess-ffi/cesscrypto.h:597
Types ¶
type Cess32ByteArray ¶
type Cess32ByteArray struct { Inner [32]byte // contains filtered or unexported fields }
Cess32ByteArray as declared in cess-ffi/cesscrypto.h:87
func NewCess32ByteArrayRef ¶
func NewCess32ByteArrayRef(ref unsafe.Pointer) *Cess32ByteArray
NewCess32ByteArrayRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*Cess32ByteArray) Deref ¶
func (x *Cess32ByteArray) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*Cess32ByteArray) Free ¶
func (x *Cess32ByteArray) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*Cess32ByteArray) PassRef ¶
func (x *Cess32ByteArray) PassRef() (*C.cess_32ByteArray, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (Cess32ByteArray) PassValue ¶
func (x Cess32ByteArray) PassValue() (C.cess_32ByteArray, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*Cess32ByteArray) Ref ¶
func (x *Cess32ByteArray) Ref() *C.cess_32ByteArray
Ref returns the underlying reference to C object or nil if struct is nil.
type CessAggregateProof ¶
type CessAggregateProof struct { StatusCode FCPResponseStatus ErrorMsg string ProofLen uint ProofPtr []byte // contains filtered or unexported fields }
CessAggregateProof as declared in cess-ffi/cesscrypto.h:83
func CessAggregateSealProofs ¶
func CessAggregateSealProofs(registeredProof CessRegisteredSealProof, registeredAggregation CessRegisteredAggregationProof, commRsPtr []Cess32ByteArray, commRsLen uint, seedsPtr []Cess32ByteArray, seedsLen uint, sealCommitResponsesPtr []CessSealCommitPhase2Response, sealCommitResponsesLen uint) *CessAggregateProof
CessAggregateSealProofs function as declared in cess-ffi/cesscrypto.h:382
func NewCessAggregateProofRef ¶
func NewCessAggregateProofRef(ref unsafe.Pointer) *CessAggregateProof
NewCessAggregateProofRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessAggregateProof) Deref ¶
func (x *CessAggregateProof) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessAggregateProof) Free ¶
func (x *CessAggregateProof) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessAggregateProof) PassRef ¶
func (x *CessAggregateProof) PassRef() (*C.cess_AggregateProof, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessAggregateProof) PassValue ¶
func (x CessAggregateProof) PassValue() (C.cess_AggregateProof, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessAggregateProof) Ref ¶
func (x *CessAggregateProof) Ref() *C.cess_AggregateProof
Ref returns the underlying reference to C object or nil if struct is nil.
type CessAggregateResponse ¶
type CessAggregateResponse struct { Signature CessBLSSignature // contains filtered or unexported fields }
CessAggregateResponse as declared in cess-ffi/cesscrypto.h:76
func CessAggregate ¶
func CessAggregate(flattenedSignaturesPtr []byte, flattenedSignaturesLen uint) *CessAggregateResponse
CessAggregate function as declared in cess-ffi/cesscrypto.h:379
func NewCessAggregateResponseRef ¶
func NewCessAggregateResponseRef(ref unsafe.Pointer) *CessAggregateResponse
NewCessAggregateResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessAggregateResponse) Deref ¶
func (x *CessAggregateResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessAggregateResponse) Free ¶
func (x *CessAggregateResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessAggregateResponse) PassRef ¶
func (x *CessAggregateResponse) PassRef() (*C.cess_AggregateResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessAggregateResponse) PassValue ¶
func (x CessAggregateResponse) PassValue() (C.cess_AggregateResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessAggregateResponse) Ref ¶
func (x *CessAggregateResponse) Ref() *C.cess_AggregateResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessAggregationInputs ¶
type CessAggregationInputs struct { CommR Cess32ByteArray CommD Cess32ByteArray SectorId uint64 Ticket Cess32ByteArray Seed Cess32ByteArray // contains filtered or unexported fields }
CessAggregationInputs as declared in cess-ffi/cesscrypto.h:95
func NewCessAggregationInputsRef ¶
func NewCessAggregationInputsRef(ref unsafe.Pointer) *CessAggregationInputs
NewCessAggregationInputsRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessAggregationInputs) Deref ¶
func (x *CessAggregationInputs) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessAggregationInputs) Free ¶
func (x *CessAggregationInputs) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessAggregationInputs) PassRef ¶
func (x *CessAggregationInputs) PassRef() (*C.cess_AggregationInputs, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessAggregationInputs) PassValue ¶
func (x CessAggregationInputs) PassValue() (C.cess_AggregationInputs, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessAggregationInputs) Ref ¶
func (x *CessAggregationInputs) Ref() *C.cess_AggregationInputs
Ref returns the underlying reference to C object or nil if struct is nil.
type CessBLSDigest ¶
type CessBLSDigest struct { Inner [96]byte // contains filtered or unexported fields }
CessBLSDigest as declared in cess-ffi/cesscrypto.h:226
func NewCessBLSDigestRef ¶
func NewCessBLSDigestRef(ref unsafe.Pointer) *CessBLSDigest
NewCessBLSDigestRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessBLSDigest) Deref ¶
func (x *CessBLSDigest) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessBLSDigest) Free ¶
func (x *CessBLSDigest) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessBLSDigest) PassRef ¶
func (x *CessBLSDigest) PassRef() (*C.cess_BLSDigest, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessBLSDigest) PassValue ¶
func (x CessBLSDigest) PassValue() (C.cess_BLSDigest, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessBLSDigest) Ref ¶
func (x *CessBLSDigest) Ref() *C.cess_BLSDigest
Ref returns the underlying reference to C object or nil if struct is nil.
type CessBLSPrivateKey ¶
type CessBLSPrivateKey struct { Inner [32]byte // contains filtered or unexported fields }
CessBLSPrivateKey as declared in cess-ffi/cesscrypto.h:248
func NewCessBLSPrivateKeyRef ¶
func NewCessBLSPrivateKeyRef(ref unsafe.Pointer) *CessBLSPrivateKey
NewCessBLSPrivateKeyRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessBLSPrivateKey) Deref ¶
func (x *CessBLSPrivateKey) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessBLSPrivateKey) Free ¶
func (x *CessBLSPrivateKey) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessBLSPrivateKey) PassRef ¶
func (x *CessBLSPrivateKey) PassRef() (*C.cess_BLSPrivateKey, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessBLSPrivateKey) PassValue ¶
func (x CessBLSPrivateKey) PassValue() (C.cess_BLSPrivateKey, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessBLSPrivateKey) Ref ¶
func (x *CessBLSPrivateKey) Ref() *C.cess_BLSPrivateKey
Ref returns the underlying reference to C object or nil if struct is nil.
type CessBLSPublicKey ¶
type CessBLSPublicKey struct { Inner [48]byte // contains filtered or unexported fields }
CessBLSPublicKey as declared in cess-ffi/cesscrypto.h:259
func NewCessBLSPublicKeyRef ¶
func NewCessBLSPublicKeyRef(ref unsafe.Pointer) *CessBLSPublicKey
NewCessBLSPublicKeyRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessBLSPublicKey) Deref ¶
func (x *CessBLSPublicKey) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessBLSPublicKey) Free ¶
func (x *CessBLSPublicKey) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessBLSPublicKey) PassRef ¶
func (x *CessBLSPublicKey) PassRef() (*C.cess_BLSPublicKey, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessBLSPublicKey) PassValue ¶
func (x CessBLSPublicKey) PassValue() (C.cess_BLSPublicKey, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessBLSPublicKey) Ref ¶
func (x *CessBLSPublicKey) Ref() *C.cess_BLSPublicKey
Ref returns the underlying reference to C object or nil if struct is nil.
type CessBLSSignature ¶
type CessBLSSignature struct { Inner [96]byte // contains filtered or unexported fields }
CessBLSSignature as declared in cess-ffi/cesscrypto.h:69
func NewCessBLSSignatureRef ¶
func NewCessBLSSignatureRef(ref unsafe.Pointer) *CessBLSSignature
NewCessBLSSignatureRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessBLSSignature) Deref ¶
func (x *CessBLSSignature) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessBLSSignature) Free ¶
func (x *CessBLSSignature) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessBLSSignature) PassRef ¶
func (x *CessBLSSignature) PassRef() (*C.cess_BLSSignature, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessBLSSignature) PassValue ¶
func (x CessBLSSignature) PassValue() (C.cess_BLSSignature, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessBLSSignature) Ref ¶
func (x *CessBLSSignature) Ref() *C.cess_BLSSignature
Ref returns the underlying reference to C object or nil if struct is nil.
type CessClearCacheResponse ¶
type CessClearCacheResponse struct { ErrorMsg string StatusCode FCPResponseStatus // contains filtered or unexported fields }
CessClearCacheResponse as declared in cess-ffi/cesscrypto.h:109
func CessClearCache ¶
func CessClearCache(sectorSize uint64, cacheDirPath string) *CessClearCacheResponse
CessClearCache function as declared in cess-ffi/cesscrypto.h:391
func NewCessClearCacheResponseRef ¶
func NewCessClearCacheResponseRef(ref unsafe.Pointer) *CessClearCacheResponse
NewCessClearCacheResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessClearCacheResponse) Deref ¶
func (x *CessClearCacheResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessClearCacheResponse) Free ¶
func (x *CessClearCacheResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessClearCacheResponse) PassRef ¶
func (x *CessClearCacheResponse) PassRef() (*C.cess_ClearCacheResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessClearCacheResponse) PassValue ¶
func (x CessClearCacheResponse) PassValue() (C.cess_ClearCacheResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessClearCacheResponse) Ref ¶
func (x *CessClearCacheResponse) Ref() *C.cess_ClearCacheResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessFauxRepResponse ¶
type CessFauxRepResponse struct { ErrorMsg string StatusCode FCPResponseStatus Commitment [32]byte // contains filtered or unexported fields }
CessFauxRepResponse as declared in cess-ffi/cesscrypto.h:122
func CessFauxrep ¶
func CessFauxrep(registeredProof CessRegisteredSealProof, cacheDirPath string, sealedSectorPath string) *CessFauxRepResponse
CessFauxrep function as declared in cess-ffi/cesscrypto.h:489
func CessFauxrep2 ¶
func CessFauxrep2(registeredProof CessRegisteredSealProof, cacheDirPath string, existingPAuxPath string) *CessFauxRepResponse
CessFauxrep2 function as declared in cess-ffi/cesscrypto.h:493
func NewCessFauxRepResponseRef ¶
func NewCessFauxRepResponseRef(ref unsafe.Pointer) *CessFauxRepResponse
NewCessFauxRepResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessFauxRepResponse) Deref ¶
func (x *CessFauxRepResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessFauxRepResponse) Free ¶
func (x *CessFauxRepResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessFauxRepResponse) PassRef ¶
func (x *CessFauxRepResponse) PassRef() (*C.cess_FauxRepResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessFauxRepResponse) PassValue ¶
func (x CessFauxRepResponse) PassValue() (C.cess_FauxRepResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessFauxRepResponse) Ref ¶
func (x *CessFauxRepResponse) Ref() *C.cess_FauxRepResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessFinalizeTicketResponse ¶
type CessFinalizeTicketResponse struct { StatusCode FCPResponseStatus ErrorMsg string Ticket [32]byte // contains filtered or unexported fields }
CessFinalizeTicketResponse as declared in cess-ffi/cesscrypto.h:128
func NewCessFinalizeTicketResponseRef ¶
func NewCessFinalizeTicketResponseRef(ref unsafe.Pointer) *CessFinalizeTicketResponse
NewCessFinalizeTicketResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessFinalizeTicketResponse) Deref ¶
func (x *CessFinalizeTicketResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessFinalizeTicketResponse) Free ¶
func (x *CessFinalizeTicketResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessFinalizeTicketResponse) PassRef ¶
func (x *CessFinalizeTicketResponse) PassRef() (*C.cess_FinalizeTicketResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessFinalizeTicketResponse) PassValue ¶
func (x CessFinalizeTicketResponse) PassValue() (C.cess_FinalizeTicketResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessFinalizeTicketResponse) Ref ¶
func (x *CessFinalizeTicketResponse) Ref() *C.cess_FinalizeTicketResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessGenerateDataCommitmentResponse ¶
type CessGenerateDataCommitmentResponse struct { StatusCode FCPResponseStatus ErrorMsg string CommD [32]byte // contains filtered or unexported fields }
CessGenerateDataCommitmentResponse as declared in cess-ffi/cesscrypto.h:134
func CessGenerateDataCommitment ¶
func CessGenerateDataCommitment(registeredProof CessRegisteredSealProof, piecesPtr []CessPublicPieceInfo, piecesLen uint) *CessGenerateDataCommitmentResponse
CessGenerateDataCommitment function as declared in cess-ffi/cesscrypto.h:500
func NewCessGenerateDataCommitmentResponseRef ¶
func NewCessGenerateDataCommitmentResponseRef(ref unsafe.Pointer) *CessGenerateDataCommitmentResponse
NewCessGenerateDataCommitmentResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessGenerateDataCommitmentResponse) Deref ¶
func (x *CessGenerateDataCommitmentResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessGenerateDataCommitmentResponse) Free ¶
func (x *CessGenerateDataCommitmentResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessGenerateDataCommitmentResponse) PassRef ¶
func (x *CessGenerateDataCommitmentResponse) PassRef() (*C.cess_GenerateDataCommitmentResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessGenerateDataCommitmentResponse) PassValue ¶
func (x CessGenerateDataCommitmentResponse) PassValue() (C.cess_GenerateDataCommitmentResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessGenerateDataCommitmentResponse) Ref ¶
func (x *CessGenerateDataCommitmentResponse) Ref() *C.cess_GenerateDataCommitmentResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessGenerateFallbackSectorChallengesResponse ¶
type CessGenerateFallbackSectorChallengesResponse struct { ErrorMsg string StatusCode FCPResponseStatus IdsPtr []uint64 IdsLen uint ChallengesPtr []uint64 ChallengesLen uint ChallengesStride uint // contains filtered or unexported fields }
CessGenerateFallbackSectorChallengesResponse as declared in cess-ffi/cesscrypto.h:144
func CessGenerateFallbackSectorChallenges ¶
func CessGenerateFallbackSectorChallenges(registeredProof CessRegisteredPoStProof, randomness Cess32ByteArray, sectorIdsPtr []uint64, sectorIdsLen uint, proverId Cess32ByteArray) *CessGenerateFallbackSectorChallengesResponse
CessGenerateFallbackSectorChallenges function as declared in cess-ffi/cesscrypto.h:508
func NewCessGenerateFallbackSectorChallengesResponseRef ¶
func NewCessGenerateFallbackSectorChallengesResponseRef(ref unsafe.Pointer) *CessGenerateFallbackSectorChallengesResponse
NewCessGenerateFallbackSectorChallengesResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessGenerateFallbackSectorChallengesResponse) Deref ¶
func (x *CessGenerateFallbackSectorChallengesResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessGenerateFallbackSectorChallengesResponse) Free ¶
func (x *CessGenerateFallbackSectorChallengesResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessGenerateFallbackSectorChallengesResponse) PassRef ¶
func (x *CessGenerateFallbackSectorChallengesResponse) PassRef() (*C.cess_GenerateFallbackSectorChallengesResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessGenerateFallbackSectorChallengesResponse) PassValue ¶
func (x CessGenerateFallbackSectorChallengesResponse) PassValue() (C.cess_GenerateFallbackSectorChallengesResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessGenerateFallbackSectorChallengesResponse) Ref ¶
func (x *CessGenerateFallbackSectorChallengesResponse) Ref() *C.cess_GenerateFallbackSectorChallengesResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessGeneratePieceCommitmentResponse ¶
type CessGeneratePieceCommitmentResponse struct { StatusCode FCPResponseStatus ErrorMsg string CommP [32]byte NumBytesAligned uint64 // contains filtered or unexported fields }
CessGeneratePieceCommitmentResponse as declared in cess-ffi/cesscrypto.h:155
func CessGeneratePieceCommitment ¶
func CessGeneratePieceCommitment(registeredProof CessRegisteredSealProof, pieceFdRaw int32, unpaddedPieceSize uint64) *CessGeneratePieceCommitmentResponse
CessGeneratePieceCommitment function as declared in cess-ffi/cesscrypto.h:518
func NewCessGeneratePieceCommitmentResponseRef ¶
func NewCessGeneratePieceCommitmentResponseRef(ref unsafe.Pointer) *CessGeneratePieceCommitmentResponse
NewCessGeneratePieceCommitmentResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessGeneratePieceCommitmentResponse) Deref ¶
func (x *CessGeneratePieceCommitmentResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessGeneratePieceCommitmentResponse) Free ¶
func (x *CessGeneratePieceCommitmentResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessGeneratePieceCommitmentResponse) PassRef ¶
func (x *CessGeneratePieceCommitmentResponse) PassRef() (*C.cess_GeneratePieceCommitmentResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessGeneratePieceCommitmentResponse) PassValue ¶
func (x CessGeneratePieceCommitmentResponse) PassValue() (C.cess_GeneratePieceCommitmentResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessGeneratePieceCommitmentResponse) Ref ¶
func (x *CessGeneratePieceCommitmentResponse) Ref() *C.cess_GeneratePieceCommitmentResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessGenerateSingleVanillaProofResponse ¶
type CessGenerateSingleVanillaProofResponse struct { ErrorMsg string VanillaProof CessVanillaProof StatusCode FCPResponseStatus // contains filtered or unexported fields }
CessGenerateSingleVanillaProofResponse as declared in cess-ffi/cesscrypto.h:166
func CessGenerateSingleVanillaProof ¶
func CessGenerateSingleVanillaProof(replica CessPrivateReplicaInfo, challengesPtr []uint64, challengesLen uint) *CessGenerateSingleVanillaProofResponse
CessGenerateSingleVanillaProof function as declared in cess-ffi/cesscrypto.h:526
func NewCessGenerateSingleVanillaProofResponseRef ¶
func NewCessGenerateSingleVanillaProofResponseRef(ref unsafe.Pointer) *CessGenerateSingleVanillaProofResponse
NewCessGenerateSingleVanillaProofResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessGenerateSingleVanillaProofResponse) Deref ¶
func (x *CessGenerateSingleVanillaProofResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessGenerateSingleVanillaProofResponse) Free ¶
func (x *CessGenerateSingleVanillaProofResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessGenerateSingleVanillaProofResponse) PassRef ¶
func (x *CessGenerateSingleVanillaProofResponse) PassRef() (*C.cess_GenerateSingleVanillaProofResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessGenerateSingleVanillaProofResponse) PassValue ¶
func (x CessGenerateSingleVanillaProofResponse) PassValue() (C.cess_GenerateSingleVanillaProofResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
type CessGenerateSingleWindowPoStWithVanillaResponse ¶
type CessGenerateSingleWindowPoStWithVanillaResponse struct { ErrorMsg string PartitionProof CessPartitionSnarkProof FaultySectorsLen uint FaultySectorsPtr []uint64 StatusCode FCPResponseStatus // contains filtered or unexported fields }
CessGenerateSingleWindowPoStWithVanillaResponse as declared in cess-ffi/cesscrypto.h:180
func CessGenerateSingleWindowPostWithVanilla ¶
func CessGenerateSingleWindowPostWithVanilla(registeredProof CessRegisteredPoStProof, randomness Cess32ByteArray, proverId Cess32ByteArray, vanillaProofsPtr []CessVanillaProof, vanillaProofsLen uint, partitionIndex uint) *CessGenerateSingleWindowPoStWithVanillaResponse
CessGenerateSingleWindowPostWithVanilla function as declared in cess-ffi/cesscrypto.h:534
func NewCessGenerateSingleWindowPoStWithVanillaResponseRef ¶
func NewCessGenerateSingleWindowPoStWithVanillaResponseRef(ref unsafe.Pointer) *CessGenerateSingleWindowPoStWithVanillaResponse
NewCessGenerateSingleWindowPoStWithVanillaResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessGenerateSingleWindowPoStWithVanillaResponse) Deref ¶
func (x *CessGenerateSingleWindowPoStWithVanillaResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessGenerateSingleWindowPoStWithVanillaResponse) Free ¶
func (x *CessGenerateSingleWindowPoStWithVanillaResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessGenerateSingleWindowPoStWithVanillaResponse) PassRef ¶
func (x *CessGenerateSingleWindowPoStWithVanillaResponse) PassRef() (*C.cess_GenerateSingleWindowPoStWithVanillaResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessGenerateSingleWindowPoStWithVanillaResponse) PassValue ¶
func (x CessGenerateSingleWindowPoStWithVanillaResponse) PassValue() (C.cess_GenerateSingleWindowPoStWithVanillaResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessGenerateSingleWindowPoStWithVanillaResponse) Ref ¶
func (x *CessGenerateSingleWindowPoStWithVanillaResponse) Ref() *C.cess_GenerateSingleWindowPoStWithVanillaResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessGenerateWindowPoStResponse ¶
type CessGenerateWindowPoStResponse struct { ErrorMsg string ProofsLen uint ProofsPtr []CessPoStProof FaultySectorsLen uint FaultySectorsPtr []uint64 StatusCode FCPResponseStatus // contains filtered or unexported fields }
CessGenerateWindowPoStResponse as declared in cess-ffi/cesscrypto.h:195
func CessGenerateWindowPost ¶
func CessGenerateWindowPost(randomness Cess32ByteArray, replicasPtr []CessPrivateReplicaInfo, replicasLen uint, proverId Cess32ByteArray) *CessGenerateWindowPoStResponse
CessGenerateWindowPost function as declared in cess-ffi/cesscrypto.h:545
func CessGenerateWindowPostWithVanilla ¶
func CessGenerateWindowPostWithVanilla(registeredProof CessRegisteredPoStProof, randomness Cess32ByteArray, proverId Cess32ByteArray, vanillaProofsPtr []CessVanillaProof, vanillaProofsLen uint) *CessGenerateWindowPoStResponse
CessGenerateWindowPostWithVanilla function as declared in cess-ffi/cesscrypto.h:554
func NewCessGenerateWindowPoStResponseRef ¶
func NewCessGenerateWindowPoStResponseRef(ref unsafe.Pointer) *CessGenerateWindowPoStResponse
NewCessGenerateWindowPoStResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessGenerateWindowPoStResponse) Deref ¶
func (x *CessGenerateWindowPoStResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessGenerateWindowPoStResponse) Free ¶
func (x *CessGenerateWindowPoStResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessGenerateWindowPoStResponse) PassRef ¶
func (x *CessGenerateWindowPoStResponse) PassRef() (*C.cess_GenerateWindowPoStResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessGenerateWindowPoStResponse) PassValue ¶
func (x CessGenerateWindowPoStResponse) PassValue() (C.cess_GenerateWindowPoStResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessGenerateWindowPoStResponse) Ref ¶
func (x *CessGenerateWindowPoStResponse) Ref() *C.cess_GenerateWindowPoStResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessGenerateWinningPoStResponse ¶
type CessGenerateWinningPoStResponse struct { ErrorMsg string ProofsLen uint ProofsPtr []CessPoStProof StatusCode FCPResponseStatus // contains filtered or unexported fields }
CessGenerateWinningPoStResponse as declared in cess-ffi/cesscrypto.h:202
func CessGenerateWinningPost ¶
func CessGenerateWinningPost(randomness Cess32ByteArray, replicasPtr []CessPrivateReplicaInfo, replicasLen uint, proverId Cess32ByteArray) *CessGenerateWinningPoStResponse
CessGenerateWinningPost function as declared in cess-ffi/cesscrypto.h:564
func CessGenerateWinningPostWithVanilla ¶
func CessGenerateWinningPostWithVanilla(registeredProof CessRegisteredPoStProof, randomness Cess32ByteArray, proverId Cess32ByteArray, vanillaProofsPtr []CessVanillaProof, vanillaProofsLen uint) *CessGenerateWinningPoStResponse
CessGenerateWinningPostWithVanilla function as declared in cess-ffi/cesscrypto.h:582
func NewCessGenerateWinningPoStResponseRef ¶
func NewCessGenerateWinningPoStResponseRef(ref unsafe.Pointer) *CessGenerateWinningPoStResponse
NewCessGenerateWinningPoStResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessGenerateWinningPoStResponse) Deref ¶
func (x *CessGenerateWinningPoStResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessGenerateWinningPoStResponse) Free ¶
func (x *CessGenerateWinningPoStResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessGenerateWinningPoStResponse) PassRef ¶
func (x *CessGenerateWinningPoStResponse) PassRef() (*C.cess_GenerateWinningPoStResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessGenerateWinningPoStResponse) PassValue ¶
func (x CessGenerateWinningPoStResponse) PassValue() (C.cess_GenerateWinningPoStResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessGenerateWinningPoStResponse) Ref ¶
func (x *CessGenerateWinningPoStResponse) Ref() *C.cess_GenerateWinningPoStResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessGenerateWinningPoStSectorChallenge ¶
type CessGenerateWinningPoStSectorChallenge struct { ErrorMsg string StatusCode FCPResponseStatus IdsPtr []uint64 IdsLen uint // contains filtered or unexported fields }
CessGenerateWinningPoStSectorChallenge as declared in cess-ffi/cesscrypto.h:209
func CessGenerateWinningPostSectorChallenge ¶
func CessGenerateWinningPostSectorChallenge(registeredProof CessRegisteredPoStProof, randomness Cess32ByteArray, sectorSetLen uint64, proverId Cess32ByteArray) *CessGenerateWinningPoStSectorChallenge
CessGenerateWinningPostSectorChallenge function as declared in cess-ffi/cesscrypto.h:573
func NewCessGenerateWinningPoStSectorChallengeRef ¶
func NewCessGenerateWinningPoStSectorChallengeRef(ref unsafe.Pointer) *CessGenerateWinningPoStSectorChallenge
NewCessGenerateWinningPoStSectorChallengeRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessGenerateWinningPoStSectorChallenge) Deref ¶
func (x *CessGenerateWinningPoStSectorChallenge) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessGenerateWinningPoStSectorChallenge) Free ¶
func (x *CessGenerateWinningPoStSectorChallenge) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessGenerateWinningPoStSectorChallenge) PassRef ¶
func (x *CessGenerateWinningPoStSectorChallenge) PassRef() (*C.cess_GenerateWinningPoStSectorChallenge, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessGenerateWinningPoStSectorChallenge) PassValue ¶
func (x CessGenerateWinningPoStSectorChallenge) PassValue() (C.cess_GenerateWinningPoStSectorChallenge, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
type CessGetNumPartitionForFallbackPoStResponse ¶
type CessGetNumPartitionForFallbackPoStResponse struct { ErrorMsg string StatusCode FCPResponseStatus NumPartition uint // contains filtered or unexported fields }
CessGetNumPartitionForFallbackPoStResponse as declared in cess-ffi/cesscrypto.h:215
func CessGetNumPartitionForFallbackPost ¶
func CessGetNumPartitionForFallbackPost(registeredProof CessRegisteredPoStProof, numSectors uint) *CessGetNumPartitionForFallbackPoStResponse
CessGetNumPartitionForFallbackPost function as declared in cess-ffi/cesscrypto.h:603
func NewCessGetNumPartitionForFallbackPoStResponseRef ¶
func NewCessGetNumPartitionForFallbackPoStResponseRef(ref unsafe.Pointer) *CessGetNumPartitionForFallbackPoStResponse
NewCessGetNumPartitionForFallbackPoStResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessGetNumPartitionForFallbackPoStResponse) Deref ¶
func (x *CessGetNumPartitionForFallbackPoStResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessGetNumPartitionForFallbackPoStResponse) Free ¶
func (x *CessGetNumPartitionForFallbackPoStResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessGetNumPartitionForFallbackPoStResponse) PassRef ¶
func (x *CessGetNumPartitionForFallbackPoStResponse) PassRef() (*C.cess_GetNumPartitionForFallbackPoStResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessGetNumPartitionForFallbackPoStResponse) PassValue ¶
func (x CessGetNumPartitionForFallbackPoStResponse) PassValue() (C.cess_GetNumPartitionForFallbackPoStResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessGetNumPartitionForFallbackPoStResponse) Ref ¶
func (x *CessGetNumPartitionForFallbackPoStResponse) Ref() *C.cess_GetNumPartitionForFallbackPoStResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessGpuDeviceResponse ¶
type CessGpuDeviceResponse struct { StatusCode FCPResponseStatus ErrorMsg string DevicesLen uint DevicesPtr []string // contains filtered or unexported fields }
CessGpuDeviceResponse as declared in cess-ffi/cesscrypto.h:222
func CessGetGpuDevices ¶
func CessGetGpuDevices() *CessGpuDeviceResponse
CessGetGpuDevices function as declared in cess-ffi/cesscrypto.h:591
func NewCessGpuDeviceResponseRef ¶
func NewCessGpuDeviceResponseRef(ref unsafe.Pointer) *CessGpuDeviceResponse
NewCessGpuDeviceResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessGpuDeviceResponse) Deref ¶
func (x *CessGpuDeviceResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessGpuDeviceResponse) Free ¶
func (x *CessGpuDeviceResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessGpuDeviceResponse) PassRef ¶
func (x *CessGpuDeviceResponse) PassRef() (*C.cess_GpuDeviceResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessGpuDeviceResponse) PassValue ¶
func (x CessGpuDeviceResponse) PassValue() (C.cess_GpuDeviceResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessGpuDeviceResponse) Ref ¶
func (x *CessGpuDeviceResponse) Ref() *C.cess_GpuDeviceResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessHashResponse ¶
type CessHashResponse struct { Digest CessBLSDigest // contains filtered or unexported fields }
CessHashResponse as declared in cess-ffi/cesscrypto.h:233
func CessHash ¶
func CessHash(messagePtr []byte, messageLen uint) *CessHashResponse
CessHash function as declared in cess-ffi/cesscrypto.h:690
func NewCessHashResponseRef ¶
func NewCessHashResponseRef(ref unsafe.Pointer) *CessHashResponse
NewCessHashResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessHashResponse) Deref ¶
func (x *CessHashResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessHashResponse) Free ¶
func (x *CessHashResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessHashResponse) PassRef ¶
func (x *CessHashResponse) PassRef() (*C.cess_HashResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessHashResponse) PassValue ¶
func (x CessHashResponse) PassValue() (C.cess_HashResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessHashResponse) Ref ¶
func (x *CessHashResponse) Ref() *C.cess_HashResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessInitLogFdResponse ¶
type CessInitLogFdResponse struct { StatusCode FCPResponseStatus ErrorMsg string // contains filtered or unexported fields }
CessInitLogFdResponse as declared in cess-ffi/cesscrypto.h:238
func CessInitLogFd ¶
func CessInitLogFd(logFd int32) *CessInitLogFdResponse
CessInitLogFd function as declared in cess-ffi/cesscrypto.h:721
func NewCessInitLogFdResponseRef ¶
func NewCessInitLogFdResponseRef(ref unsafe.Pointer) *CessInitLogFdResponse
NewCessInitLogFdResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessInitLogFdResponse) Deref ¶
func (x *CessInitLogFdResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessInitLogFdResponse) Free ¶
func (x *CessInitLogFdResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessInitLogFdResponse) PassRef ¶
func (x *CessInitLogFdResponse) PassRef() (*C.cess_InitLogFdResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessInitLogFdResponse) PassValue ¶
func (x CessInitLogFdResponse) PassValue() (C.cess_InitLogFdResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessInitLogFdResponse) Ref ¶
func (x *CessInitLogFdResponse) Ref() *C.cess_InitLogFdResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessMergeWindowPoStPartitionProofsResponse ¶
type CessMergeWindowPoStPartitionProofsResponse struct { ErrorMsg string Proof CessPoStProof StatusCode FCPResponseStatus // contains filtered or unexported fields }
CessMergeWindowPoStPartitionProofsResponse as declared in cess-ffi/cesscrypto.h:244
func CessMergeWindowPostPartitionProofs ¶
func CessMergeWindowPostPartitionProofs(registeredProof CessRegisteredPoStProof, partitionProofsPtr []CessPartitionSnarkProof, partitionProofsLen uint) *CessMergeWindowPoStPartitionProofsResponse
CessMergeWindowPostPartitionProofs function as declared in cess-ffi/cesscrypto.h:727
func NewCessMergeWindowPoStPartitionProofsResponseRef ¶
func NewCessMergeWindowPoStPartitionProofsResponseRef(ref unsafe.Pointer) *CessMergeWindowPoStPartitionProofsResponse
NewCessMergeWindowPoStPartitionProofsResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessMergeWindowPoStPartitionProofsResponse) Deref ¶
func (x *CessMergeWindowPoStPartitionProofsResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessMergeWindowPoStPartitionProofsResponse) Free ¶
func (x *CessMergeWindowPoStPartitionProofsResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessMergeWindowPoStPartitionProofsResponse) PassRef ¶
func (x *CessMergeWindowPoStPartitionProofsResponse) PassRef() (*C.cess_MergeWindowPoStPartitionProofsResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessMergeWindowPoStPartitionProofsResponse) PassValue ¶
func (x CessMergeWindowPoStPartitionProofsResponse) PassValue() (C.cess_MergeWindowPoStPartitionProofsResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessMergeWindowPoStPartitionProofsResponse) Ref ¶
func (x *CessMergeWindowPoStPartitionProofsResponse) Ref() *C.cess_MergeWindowPoStPartitionProofsResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessPartitionSnarkProof ¶
type CessPartitionSnarkProof struct { RegisteredProof CessRegisteredPoStProof ProofLen uint ProofPtr []byte // contains filtered or unexported fields }
CessPartitionSnarkProof as declared in cess-ffi/cesscrypto.h:172
func NewCessPartitionSnarkProofRef ¶
func NewCessPartitionSnarkProofRef(ref unsafe.Pointer) *CessPartitionSnarkProof
NewCessPartitionSnarkProofRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessPartitionSnarkProof) Deref ¶
func (x *CessPartitionSnarkProof) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessPartitionSnarkProof) Free ¶
func (x *CessPartitionSnarkProof) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessPartitionSnarkProof) PassRef ¶
func (x *CessPartitionSnarkProof) PassRef() (*C.cess_PartitionSnarkProof, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessPartitionSnarkProof) PassValue ¶
func (x CessPartitionSnarkProof) PassValue() (C.cess_PartitionSnarkProof, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessPartitionSnarkProof) Ref ¶
func (x *CessPartitionSnarkProof) Ref() *C.cess_PartitionSnarkProof
Ref returns the underlying reference to C object or nil if struct is nil.
type CessPoStProof ¶
type CessPoStProof struct { RegisteredProof CessRegisteredPoStProof ProofLen uint ProofPtr []byte // contains filtered or unexported fields }
CessPoStProof as declared in cess-ffi/cesscrypto.h:186
func NewCessPoStProofRef ¶
func NewCessPoStProofRef(ref unsafe.Pointer) *CessPoStProof
NewCessPoStProofRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessPoStProof) Deref ¶
func (x *CessPoStProof) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessPoStProof) Free ¶
func (x *CessPoStProof) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessPoStProof) PassRef ¶
func (x *CessPoStProof) PassRef() (*C.cess_PoStProof, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessPoStProof) PassValue ¶
func (x CessPoStProof) PassValue() (C.cess_PoStProof, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessPoStProof) Ref ¶
func (x *CessPoStProof) Ref() *C.cess_PoStProof
Ref returns the underlying reference to C object or nil if struct is nil.
type CessPrivateKeyGenerateResponse ¶
type CessPrivateKeyGenerateResponse struct { PrivateKey CessBLSPrivateKey // contains filtered or unexported fields }
CessPrivateKeyGenerateResponse as declared in cess-ffi/cesscrypto.h:255
func CessPrivateKeyGenerate ¶
func CessPrivateKeyGenerate() *CessPrivateKeyGenerateResponse
CessPrivateKeyGenerate function as declared in cess-ffi/cesscrypto.h:734
func CessPrivateKeyGenerateWithSeed ¶
func CessPrivateKeyGenerateWithSeed(rawSeed Cess32ByteArray) *CessPrivateKeyGenerateResponse
CessPrivateKeyGenerateWithSeed function as declared in cess-ffi/cesscrypto.h:747
func NewCessPrivateKeyGenerateResponseRef ¶
func NewCessPrivateKeyGenerateResponseRef(ref unsafe.Pointer) *CessPrivateKeyGenerateResponse
NewCessPrivateKeyGenerateResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessPrivateKeyGenerateResponse) Deref ¶
func (x *CessPrivateKeyGenerateResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessPrivateKeyGenerateResponse) Free ¶
func (x *CessPrivateKeyGenerateResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessPrivateKeyGenerateResponse) PassRef ¶
func (x *CessPrivateKeyGenerateResponse) PassRef() (*C.cess_PrivateKeyGenerateResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessPrivateKeyGenerateResponse) PassValue ¶
func (x CessPrivateKeyGenerateResponse) PassValue() (C.cess_PrivateKeyGenerateResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessPrivateKeyGenerateResponse) Ref ¶
func (x *CessPrivateKeyGenerateResponse) Ref() *C.cess_PrivateKeyGenerateResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessPrivateKeyPublicKeyResponse ¶
type CessPrivateKeyPublicKeyResponse struct { PublicKey CessBLSPublicKey // contains filtered or unexported fields }
CessPrivateKeyPublicKeyResponse as declared in cess-ffi/cesscrypto.h:266
func CessPrivateKeyPublicKey ¶
func CessPrivateKeyPublicKey(rawPrivateKeyPtr []byte) *CessPrivateKeyPublicKeyResponse
CessPrivateKeyPublicKey function as declared in cess-ffi/cesscrypto.h:758
func NewCessPrivateKeyPublicKeyResponseRef ¶
func NewCessPrivateKeyPublicKeyResponseRef(ref unsafe.Pointer) *CessPrivateKeyPublicKeyResponse
NewCessPrivateKeyPublicKeyResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessPrivateKeyPublicKeyResponse) Deref ¶
func (x *CessPrivateKeyPublicKeyResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessPrivateKeyPublicKeyResponse) Free ¶
func (x *CessPrivateKeyPublicKeyResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessPrivateKeyPublicKeyResponse) PassRef ¶
func (x *CessPrivateKeyPublicKeyResponse) PassRef() (*C.cess_PrivateKeyPublicKeyResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessPrivateKeyPublicKeyResponse) PassValue ¶
func (x CessPrivateKeyPublicKeyResponse) PassValue() (C.cess_PrivateKeyPublicKeyResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessPrivateKeyPublicKeyResponse) Ref ¶
func (x *CessPrivateKeyPublicKeyResponse) Ref() *C.cess_PrivateKeyPublicKeyResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessPrivateKeySignResponse ¶
type CessPrivateKeySignResponse struct { Signature CessBLSSignature // contains filtered or unexported fields }
CessPrivateKeySignResponse as declared in cess-ffi/cesscrypto.h:273
func CessPrivateKeySign ¶
func CessPrivateKeySign(rawPrivateKeyPtr []byte, messagePtr []byte, messageLen uint) *CessPrivateKeySignResponse
CessPrivateKeySign function as declared in cess-ffi/cesscrypto.h:771
func NewCessPrivateKeySignResponseRef ¶
func NewCessPrivateKeySignResponseRef(ref unsafe.Pointer) *CessPrivateKeySignResponse
NewCessPrivateKeySignResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessPrivateKeySignResponse) Deref ¶
func (x *CessPrivateKeySignResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessPrivateKeySignResponse) Free ¶
func (x *CessPrivateKeySignResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessPrivateKeySignResponse) PassRef ¶
func (x *CessPrivateKeySignResponse) PassRef() (*C.cess_PrivateKeySignResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessPrivateKeySignResponse) PassValue ¶
func (x CessPrivateKeySignResponse) PassValue() (C.cess_PrivateKeySignResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessPrivateKeySignResponse) Ref ¶
func (x *CessPrivateKeySignResponse) Ref() *C.cess_PrivateKeySignResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessPrivateReplicaInfo ¶
type CessPrivateReplicaInfo struct { RegisteredProof CessRegisteredPoStProof CacheDirPath string CommR [32]byte ReplicaPath string SectorId uint64 // contains filtered or unexported fields }
CessPrivateReplicaInfo as declared in cess-ffi/cesscrypto.h:361
func NewCessPrivateReplicaInfoRef ¶
func NewCessPrivateReplicaInfoRef(ref unsafe.Pointer) *CessPrivateReplicaInfo
NewCessPrivateReplicaInfoRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessPrivateReplicaInfo) Deref ¶
func (x *CessPrivateReplicaInfo) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessPrivateReplicaInfo) Free ¶
func (x *CessPrivateReplicaInfo) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessPrivateReplicaInfo) PassRef ¶
func (x *CessPrivateReplicaInfo) PassRef() (*C.cess_PrivateReplicaInfo, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessPrivateReplicaInfo) PassValue ¶
func (x CessPrivateReplicaInfo) PassValue() (C.cess_PrivateReplicaInfo, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessPrivateReplicaInfo) Ref ¶
func (x *CessPrivateReplicaInfo) Ref() *C.cess_PrivateReplicaInfo
Ref returns the underlying reference to C object or nil if struct is nil.
type CessPublicPieceInfo ¶
type CessPublicPieceInfo struct { NumBytes uint64 CommP [32]byte // contains filtered or unexported fields }
CessPublicPieceInfo as declared in cess-ffi/cesscrypto.h:353
func NewCessPublicPieceInfoRef ¶
func NewCessPublicPieceInfoRef(ref unsafe.Pointer) *CessPublicPieceInfo
NewCessPublicPieceInfoRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessPublicPieceInfo) Deref ¶
func (x *CessPublicPieceInfo) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessPublicPieceInfo) Free ¶
func (x *CessPublicPieceInfo) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessPublicPieceInfo) PassRef ¶
func (x *CessPublicPieceInfo) PassRef() (*C.cess_PublicPieceInfo, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessPublicPieceInfo) PassValue ¶
func (x CessPublicPieceInfo) PassValue() (C.cess_PublicPieceInfo, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessPublicPieceInfo) Ref ¶
func (x *CessPublicPieceInfo) Ref() *C.cess_PublicPieceInfo
Ref returns the underlying reference to C object or nil if struct is nil.
type CessPublicReplicaInfo ¶
type CessPublicReplicaInfo struct { RegisteredProof CessRegisteredPoStProof CommR [32]byte SectorId uint64 // contains filtered or unexported fields }
CessPublicReplicaInfo as declared in cess-ffi/cesscrypto.h:367
func NewCessPublicReplicaInfoRef ¶
func NewCessPublicReplicaInfoRef(ref unsafe.Pointer) *CessPublicReplicaInfo
NewCessPublicReplicaInfoRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessPublicReplicaInfo) Deref ¶
func (x *CessPublicReplicaInfo) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessPublicReplicaInfo) Free ¶
func (x *CessPublicReplicaInfo) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessPublicReplicaInfo) PassRef ¶
func (x *CessPublicReplicaInfo) PassRef() (*C.cess_PublicReplicaInfo, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessPublicReplicaInfo) PassValue ¶
func (x CessPublicReplicaInfo) PassValue() (C.cess_PublicReplicaInfo, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessPublicReplicaInfo) Ref ¶
func (x *CessPublicReplicaInfo) Ref() *C.cess_PublicReplicaInfo
Ref returns the underlying reference to C object or nil if struct is nil.
type CessRegisteredAggregationProof ¶
type CessRegisteredAggregationProof int32
CessRegisteredAggregationProof as declared in cess-ffi/cesscrypto.h:35
const (
CessRegisteredAggregationProofSnarkPackV1 CessRegisteredAggregationProof = C.cess_RegisteredAggregationProof_SnarkPackV1
)
CessRegisteredAggregationProof enumeration from cess-ffi/cesscrypto.h:35
type CessRegisteredPoStProof ¶
type CessRegisteredPoStProof int32
CessRegisteredPoStProof as declared in cess-ffi/cesscrypto.h:50
const ( CessRegisteredPoStProofStackedDrgWinning2KiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWinning2KiBV1 CessRegisteredPoStProofStackedDrgWinning8MiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWinning8MiBV1 CessRegisteredPoStProofStackedDrgWinning32MiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWinning32MiBV1 CessRegisteredPoStProofStackedDrgWinning512MiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWinning512MiBV1 CessRegisteredPoStProofStackedDrgWinning32GiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWinning32GiBV1 CessRegisteredPoStProofStackedDrgWinning64GiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWinning64GiBV1 CessRegisteredPoStProofStackedDrgWindow2KiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWindow2KiBV1 CessRegisteredPoStProofStackedDrgWindow8MiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWindow8MiBV1 CessRegisteredPoStProofStackedDrgWindow32MiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWindow32MiBV1 CessRegisteredPoStProofStackedDrgWindow512MiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWindow512MiBV1 CessRegisteredPoStProofStackedDrgWindow32GiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWindow32GiBV1 CessRegisteredPoStProofStackedDrgWindow64GiBV1 CessRegisteredPoStProof = C.cess_RegisteredPoStProof_StackedDrgWindow64GiBV1 )
CessRegisteredPoStProof enumeration from cess-ffi/cesscrypto.h:50
type CessRegisteredSealProof ¶
type CessRegisteredSealProof int32
CessRegisteredSealProof as declared in cess-ffi/cesscrypto.h:65
const ( CessRegisteredSealProofStackedDrg2KiBV1 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg2KiBV1 CessRegisteredSealProofStackedDrg8MiBV1 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg8MiBV1 CessRegisteredSealProofStackedDrg32MiBV1 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg32MiBV1 CessRegisteredSealProofStackedDrg512MiBV1 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg512MiBV1 CessRegisteredSealProofStackedDrg32GiBV1 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg32GiBV1 CessRegisteredSealProofStackedDrg64GiBV1 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg64GiBV1 CessRegisteredSealProofStackedDrg2KiBV11 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg2KiBV1_1 CessRegisteredSealProofStackedDrg8MiBV11 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg8MiBV1_1 CessRegisteredSealProofStackedDrg32MiBV11 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg32MiBV1_1 CessRegisteredSealProofStackedDrg512MiBV11 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg512MiBV1_1 CessRegisteredSealProofStackedDrg32GiBV11 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg32GiBV1_1 CessRegisteredSealProofStackedDrg64GiBV11 CessRegisteredSealProof = C.cess_RegisteredSealProof_StackedDrg64GiBV1_1 )
CessRegisteredSealProof enumeration from cess-ffi/cesscrypto.h:65
type CessSealCommitPhase1Response ¶
type CessSealCommitPhase1Response struct { StatusCode FCPResponseStatus ErrorMsg string SealCommitPhase1OutputPtr []byte SealCommitPhase1OutputLen uint // contains filtered or unexported fields }
CessSealCommitPhase1Response as declared in cess-ffi/cesscrypto.h:280
func CessSealCommitPhase1 ¶
func CessSealCommitPhase1(registeredProof CessRegisteredSealProof, commR Cess32ByteArray, commD Cess32ByteArray, cacheDirPath string, replicaPath string, sectorId uint64, proverId Cess32ByteArray, ticket Cess32ByteArray, seed Cess32ByteArray, piecesPtr []CessPublicPieceInfo, piecesLen uint) *CessSealCommitPhase1Response
CessSealCommitPhase1 function as declared in cess-ffi/cesscrypto.h:779
func NewCessSealCommitPhase1ResponseRef ¶
func NewCessSealCommitPhase1ResponseRef(ref unsafe.Pointer) *CessSealCommitPhase1Response
NewCessSealCommitPhase1ResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessSealCommitPhase1Response) Deref ¶
func (x *CessSealCommitPhase1Response) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessSealCommitPhase1Response) Free ¶
func (x *CessSealCommitPhase1Response) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessSealCommitPhase1Response) PassRef ¶
func (x *CessSealCommitPhase1Response) PassRef() (*C.cess_SealCommitPhase1Response, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessSealCommitPhase1Response) PassValue ¶
func (x CessSealCommitPhase1Response) PassValue() (C.cess_SealCommitPhase1Response, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessSealCommitPhase1Response) Ref ¶
func (x *CessSealCommitPhase1Response) Ref() *C.cess_SealCommitPhase1Response
Ref returns the underlying reference to C object or nil if struct is nil.
type CessSealCommitPhase2Response ¶
type CessSealCommitPhase2Response struct { StatusCode FCPResponseStatus ErrorMsg string ProofPtr []byte ProofLen uint CommitInputsPtr []CessAggregationInputs CommitInputsLen uint // contains filtered or unexported fields }
CessSealCommitPhase2Response as declared in cess-ffi/cesscrypto.h:104
func CessSealCommitPhase2 ¶
func CessSealCommitPhase2(sealCommitPhase1OutputPtr []byte, sealCommitPhase1OutputLen uint, sectorId uint64, proverId Cess32ByteArray) *CessSealCommitPhase2Response
CessSealCommitPhase2 function as declared in cess-ffi/cesscrypto.h:791
func NewCessSealCommitPhase2ResponseRef ¶
func NewCessSealCommitPhase2ResponseRef(ref unsafe.Pointer) *CessSealCommitPhase2Response
NewCessSealCommitPhase2ResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessSealCommitPhase2Response) Deref ¶
func (x *CessSealCommitPhase2Response) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessSealCommitPhase2Response) Free ¶
func (x *CessSealCommitPhase2Response) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessSealCommitPhase2Response) PassRef ¶
func (x *CessSealCommitPhase2Response) PassRef() (*C.cess_SealCommitPhase2Response, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessSealCommitPhase2Response) PassValue ¶
func (x CessSealCommitPhase2Response) PassValue() (C.cess_SealCommitPhase2Response, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessSealCommitPhase2Response) Ref ¶
func (x *CessSealCommitPhase2Response) Ref() *C.cess_SealCommitPhase2Response
Ref returns the underlying reference to C object or nil if struct is nil.
type CessSealPreCommitPhase1Response ¶
type CessSealPreCommitPhase1Response struct { ErrorMsg string StatusCode FCPResponseStatus SealPreCommitPhase1OutputPtr []byte SealPreCommitPhase1OutputLen uint // contains filtered or unexported fields }
CessSealPreCommitPhase1Response as declared in cess-ffi/cesscrypto.h:287
func CessSealPreCommitPhase1 ¶
func CessSealPreCommitPhase1(registeredProof CessRegisteredSealProof, cacheDirPath string, stagedSectorPath string, sealedSectorPath string, sectorId uint64, proverId Cess32ByteArray, ticket Cess32ByteArray, piecesPtr []CessPublicPieceInfo, piecesLen uint) *CessSealPreCommitPhase1Response
CessSealPreCommitPhase1 function as declared in cess-ffi/cesscrypto.h:800
func NewCessSealPreCommitPhase1ResponseRef ¶
func NewCessSealPreCommitPhase1ResponseRef(ref unsafe.Pointer) *CessSealPreCommitPhase1Response
NewCessSealPreCommitPhase1ResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessSealPreCommitPhase1Response) Deref ¶
func (x *CessSealPreCommitPhase1Response) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessSealPreCommitPhase1Response) Free ¶
func (x *CessSealPreCommitPhase1Response) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessSealPreCommitPhase1Response) PassRef ¶
func (x *CessSealPreCommitPhase1Response) PassRef() (*C.cess_SealPreCommitPhase1Response, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessSealPreCommitPhase1Response) PassValue ¶
func (x CessSealPreCommitPhase1Response) PassValue() (C.cess_SealPreCommitPhase1Response, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessSealPreCommitPhase1Response) Ref ¶
func (x *CessSealPreCommitPhase1Response) Ref() *C.cess_SealPreCommitPhase1Response
Ref returns the underlying reference to C object or nil if struct is nil.
type CessSealPreCommitPhase2Response ¶
type CessSealPreCommitPhase2Response struct { ErrorMsg string StatusCode FCPResponseStatus RegisteredProof CessRegisteredSealProof CommD [32]byte CommR [32]byte // contains filtered or unexported fields }
CessSealPreCommitPhase2Response as declared in cess-ffi/cesscrypto.h:295
func CessSealPreCommitPhase2 ¶
func CessSealPreCommitPhase2(sealPreCommitPhase1OutputPtr []byte, sealPreCommitPhase1OutputLen uint, cacheDirPath string, sealedSectorPath string) *CessSealPreCommitPhase2Response
CessSealPreCommitPhase2 function as declared in cess-ffi/cesscrypto.h:814
func NewCessSealPreCommitPhase2ResponseRef ¶
func NewCessSealPreCommitPhase2ResponseRef(ref unsafe.Pointer) *CessSealPreCommitPhase2Response
NewCessSealPreCommitPhase2ResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessSealPreCommitPhase2Response) Deref ¶
func (x *CessSealPreCommitPhase2Response) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessSealPreCommitPhase2Response) Free ¶
func (x *CessSealPreCommitPhase2Response) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessSealPreCommitPhase2Response) PassRef ¶
func (x *CessSealPreCommitPhase2Response) PassRef() (*C.cess_SealPreCommitPhase2Response, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessSealPreCommitPhase2Response) PassValue ¶
func (x CessSealPreCommitPhase2Response) PassValue() (C.cess_SealPreCommitPhase2Response, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessSealPreCommitPhase2Response) Ref ¶
func (x *CessSealPreCommitPhase2Response) Ref() *C.cess_SealPreCommitPhase2Response
Ref returns the underlying reference to C object or nil if struct is nil.
type CessStringResponse ¶
type CessStringResponse struct { StatusCode FCPResponseStatus ErrorMsg string StringVal string // contains filtered or unexported fields }
CessStringResponse as declared in cess-ffi/cesscrypto.h:304
func CessGetPostCircuitIdentifier ¶
func CessGetPostCircuitIdentifier(registeredProof CessRegisteredPoStProof) *CessStringResponse
CessGetPostCircuitIdentifier function as declared in cess-ffi/cesscrypto.h:610
func CessGetPostParamsCid ¶
func CessGetPostParamsCid(registeredProof CessRegisteredPoStProof) *CessStringResponse
CessGetPostParamsCid function as declared in cess-ffi/cesscrypto.h:616
func CessGetPostParamsPath ¶
func CessGetPostParamsPath(registeredProof CessRegisteredPoStProof) *CessStringResponse
CessGetPostParamsPath function as declared in cess-ffi/cesscrypto.h:623
func CessGetPostVerifyingKeyCid ¶
func CessGetPostVerifyingKeyCid(registeredProof CessRegisteredPoStProof) *CessStringResponse
CessGetPostVerifyingKeyCid function as declared in cess-ffi/cesscrypto.h:629
func CessGetPostVerifyingKeyPath ¶
func CessGetPostVerifyingKeyPath(registeredProof CessRegisteredPoStProof) *CessStringResponse
CessGetPostVerifyingKeyPath function as declared in cess-ffi/cesscrypto.h:636
func CessGetPostVersion ¶
func CessGetPostVersion(registeredProof CessRegisteredPoStProof) *CessStringResponse
CessGetPostVersion function as declared in cess-ffi/cesscrypto.h:642
func CessGetSealCircuitIdentifier ¶
func CessGetSealCircuitIdentifier(registeredProof CessRegisteredSealProof) *CessStringResponse
CessGetSealCircuitIdentifier function as declared in cess-ffi/cesscrypto.h:648
func CessGetSealParamsCid ¶
func CessGetSealParamsCid(registeredProof CessRegisteredSealProof) *CessStringResponse
CessGetSealParamsCid function as declared in cess-ffi/cesscrypto.h:654
func CessGetSealParamsPath ¶
func CessGetSealParamsPath(registeredProof CessRegisteredSealProof) *CessStringResponse
CessGetSealParamsPath function as declared in cess-ffi/cesscrypto.h:661
func CessGetSealVerifyingKeyCid ¶
func CessGetSealVerifyingKeyCid(registeredProof CessRegisteredSealProof) *CessStringResponse
CessGetSealVerifyingKeyCid function as declared in cess-ffi/cesscrypto.h:667
func CessGetSealVerifyingKeyPath ¶
func CessGetSealVerifyingKeyPath(registeredProof CessRegisteredSealProof) *CessStringResponse
CessGetSealVerifyingKeyPath function as declared in cess-ffi/cesscrypto.h:674
func CessGetSealVersion ¶
func CessGetSealVersion(registeredProof CessRegisteredSealProof) *CessStringResponse
CessGetSealVersion function as declared in cess-ffi/cesscrypto.h:680
func NewCessStringResponseRef ¶
func NewCessStringResponseRef(ref unsafe.Pointer) *CessStringResponse
NewCessStringResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessStringResponse) Deref ¶
func (x *CessStringResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessStringResponse) Free ¶
func (x *CessStringResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessStringResponse) PassRef ¶
func (x *CessStringResponse) PassRef() (*C.cess_StringResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessStringResponse) PassValue ¶
func (x CessStringResponse) PassValue() (C.cess_StringResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessStringResponse) Ref ¶
func (x *CessStringResponse) Ref() *C.cess_StringResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessUnsealRangeResponse ¶
type CessUnsealRangeResponse struct { StatusCode FCPResponseStatus ErrorMsg string // contains filtered or unexported fields }
CessUnsealRangeResponse as declared in cess-ffi/cesscrypto.h:309
func CessUnsealRange ¶
func CessUnsealRange(registeredProof CessRegisteredSealProof, cacheDirPath string, sealedSectorFdRaw int32, unsealOutputFdRaw int32, sectorId uint64, proverId Cess32ByteArray, ticket Cess32ByteArray, commD Cess32ByteArray, unpaddedByteIndex uint64, unpaddedBytesAmount uint64) *CessUnsealRangeResponse
CessUnsealRange function as declared in cess-ffi/cesscrypto.h:822
func NewCessUnsealRangeResponseRef ¶
func NewCessUnsealRangeResponseRef(ref unsafe.Pointer) *CessUnsealRangeResponse
NewCessUnsealRangeResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessUnsealRangeResponse) Deref ¶
func (x *CessUnsealRangeResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessUnsealRangeResponse) Free ¶
func (x *CessUnsealRangeResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessUnsealRangeResponse) PassRef ¶
func (x *CessUnsealRangeResponse) PassRef() (*C.cess_UnsealRangeResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessUnsealRangeResponse) PassValue ¶
func (x CessUnsealRangeResponse) PassValue() (C.cess_UnsealRangeResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessUnsealRangeResponse) Ref ¶
func (x *CessUnsealRangeResponse) Ref() *C.cess_UnsealRangeResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessVanillaProof ¶
type CessVanillaProof struct { ProofLen uint ProofPtr []byte // contains filtered or unexported fields }
CessVanillaProof as declared in cess-ffi/cesscrypto.h:160
func NewCessVanillaProofRef ¶
func NewCessVanillaProofRef(ref unsafe.Pointer) *CessVanillaProof
NewCessVanillaProofRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessVanillaProof) Deref ¶
func (x *CessVanillaProof) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessVanillaProof) Free ¶
func (x *CessVanillaProof) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessVanillaProof) PassRef ¶
func (x *CessVanillaProof) PassRef() (*C.cess_VanillaProof, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessVanillaProof) PassValue ¶
func (x CessVanillaProof) PassValue() (C.cess_VanillaProof, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessVanillaProof) Ref ¶
func (x *CessVanillaProof) Ref() *C.cess_VanillaProof
Ref returns the underlying reference to C object or nil if struct is nil.
type CessVerifyAggregateSealProofResponse ¶
type CessVerifyAggregateSealProofResponse struct { StatusCode FCPResponseStatus ErrorMsg string IsValid bool // contains filtered or unexported fields }
CessVerifyAggregateSealProofResponse as declared in cess-ffi/cesscrypto.h:315
func CessVerifyAggregateSealProof ¶
func CessVerifyAggregateSealProof(registeredProof CessRegisteredSealProof, registeredAggregation CessRegisteredAggregationProof, proverId Cess32ByteArray, proofPtr []byte, proofLen uint, commitInputsPtr []CessAggregationInputs, commitInputsLen uint) *CessVerifyAggregateSealProofResponse
CessVerifyAggregateSealProof function as declared in cess-ffi/cesscrypto.h:854
func NewCessVerifyAggregateSealProofResponseRef ¶
func NewCessVerifyAggregateSealProofResponseRef(ref unsafe.Pointer) *CessVerifyAggregateSealProofResponse
NewCessVerifyAggregateSealProofResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessVerifyAggregateSealProofResponse) Deref ¶
func (x *CessVerifyAggregateSealProofResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessVerifyAggregateSealProofResponse) Free ¶
func (x *CessVerifyAggregateSealProofResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessVerifyAggregateSealProofResponse) PassRef ¶
func (x *CessVerifyAggregateSealProofResponse) PassRef() (*C.cess_VerifyAggregateSealProofResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessVerifyAggregateSealProofResponse) PassValue ¶
func (x CessVerifyAggregateSealProofResponse) PassValue() (C.cess_VerifyAggregateSealProofResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessVerifyAggregateSealProofResponse) Ref ¶
func (x *CessVerifyAggregateSealProofResponse) Ref() *C.cess_VerifyAggregateSealProofResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessVerifySealResponse ¶
type CessVerifySealResponse struct { StatusCode FCPResponseStatus ErrorMsg string IsValid bool // contains filtered or unexported fields }
CessVerifySealResponse as declared in cess-ffi/cesscrypto.h:321
func CessVerifySeal ¶
func CessVerifySeal(registeredProof CessRegisteredSealProof, commR Cess32ByteArray, commD Cess32ByteArray, proverId Cess32ByteArray, ticket Cess32ByteArray, seed Cess32ByteArray, sectorId uint64, proofPtr []byte, proofLen uint) *CessVerifySealResponse
CessVerifySeal function as declared in cess-ffi/cesscrypto.h:866
func NewCessVerifySealResponseRef ¶
func NewCessVerifySealResponseRef(ref unsafe.Pointer) *CessVerifySealResponse
NewCessVerifySealResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessVerifySealResponse) Deref ¶
func (x *CessVerifySealResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessVerifySealResponse) Free ¶
func (x *CessVerifySealResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessVerifySealResponse) PassRef ¶
func (x *CessVerifySealResponse) PassRef() (*C.cess_VerifySealResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessVerifySealResponse) PassValue ¶
func (x CessVerifySealResponse) PassValue() (C.cess_VerifySealResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessVerifySealResponse) Ref ¶
func (x *CessVerifySealResponse) Ref() *C.cess_VerifySealResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessVerifyWindowPoStResponse ¶
type CessVerifyWindowPoStResponse struct { StatusCode FCPResponseStatus ErrorMsg string IsValid bool // contains filtered or unexported fields }
CessVerifyWindowPoStResponse as declared in cess-ffi/cesscrypto.h:327
func CessVerifyWindowPost ¶
func CessVerifyWindowPost(randomness Cess32ByteArray, replicasPtr []CessPublicReplicaInfo, replicasLen uint, proofsPtr []CessPoStProof, proofsLen uint, proverId Cess32ByteArray) *CessVerifyWindowPoStResponse
CessVerifyWindowPost function as declared in cess-ffi/cesscrypto.h:879
func NewCessVerifyWindowPoStResponseRef ¶
func NewCessVerifyWindowPoStResponseRef(ref unsafe.Pointer) *CessVerifyWindowPoStResponse
NewCessVerifyWindowPoStResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessVerifyWindowPoStResponse) Deref ¶
func (x *CessVerifyWindowPoStResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessVerifyWindowPoStResponse) Free ¶
func (x *CessVerifyWindowPoStResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessVerifyWindowPoStResponse) PassRef ¶
func (x *CessVerifyWindowPoStResponse) PassRef() (*C.cess_VerifyWindowPoStResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessVerifyWindowPoStResponse) PassValue ¶
func (x CessVerifyWindowPoStResponse) PassValue() (C.cess_VerifyWindowPoStResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessVerifyWindowPoStResponse) Ref ¶
func (x *CessVerifyWindowPoStResponse) Ref() *C.cess_VerifyWindowPoStResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessVerifyWinningPoStResponse ¶
type CessVerifyWinningPoStResponse struct { StatusCode FCPResponseStatus ErrorMsg string IsValid bool // contains filtered or unexported fields }
CessVerifyWinningPoStResponse as declared in cess-ffi/cesscrypto.h:333
func CessVerifyWinningPost ¶
func CessVerifyWinningPost(randomness Cess32ByteArray, replicasPtr []CessPublicReplicaInfo, replicasLen uint, proofsPtr []CessPoStProof, proofsLen uint, proverId Cess32ByteArray) *CessVerifyWinningPoStResponse
CessVerifyWinningPost function as declared in cess-ffi/cesscrypto.h:889
func NewCessVerifyWinningPoStResponseRef ¶
func NewCessVerifyWinningPoStResponseRef(ref unsafe.Pointer) *CessVerifyWinningPoStResponse
NewCessVerifyWinningPoStResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessVerifyWinningPoStResponse) Deref ¶
func (x *CessVerifyWinningPoStResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessVerifyWinningPoStResponse) Free ¶
func (x *CessVerifyWinningPoStResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessVerifyWinningPoStResponse) PassRef ¶
func (x *CessVerifyWinningPoStResponse) PassRef() (*C.cess_VerifyWinningPoStResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessVerifyWinningPoStResponse) PassValue ¶
func (x CessVerifyWinningPoStResponse) PassValue() (C.cess_VerifyWinningPoStResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessVerifyWinningPoStResponse) Ref ¶
func (x *CessVerifyWinningPoStResponse) Ref() *C.cess_VerifyWinningPoStResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessWriteWithAlignmentResponse ¶
type CessWriteWithAlignmentResponse struct { CommP [32]byte ErrorMsg string LeftAlignmentUnpadded uint64 StatusCode FCPResponseStatus TotalWriteUnpadded uint64 // contains filtered or unexported fields }
CessWriteWithAlignmentResponse as declared in cess-ffi/cesscrypto.h:341
func CessWriteWithAlignment ¶
func CessWriteWithAlignment(registeredProof CessRegisteredSealProof, srcFd int32, srcSize uint64, dstFd int32, existingPieceSizesPtr []uint64, existingPieceSizesLen uint) *CessWriteWithAlignmentResponse
CessWriteWithAlignment function as declared in cess-ffi/cesscrypto.h:900
func NewCessWriteWithAlignmentResponseRef ¶
func NewCessWriteWithAlignmentResponseRef(ref unsafe.Pointer) *CessWriteWithAlignmentResponse
NewCessWriteWithAlignmentResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessWriteWithAlignmentResponse) Deref ¶
func (x *CessWriteWithAlignmentResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessWriteWithAlignmentResponse) Free ¶
func (x *CessWriteWithAlignmentResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessWriteWithAlignmentResponse) PassRef ¶
func (x *CessWriteWithAlignmentResponse) PassRef() (*C.cess_WriteWithAlignmentResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessWriteWithAlignmentResponse) PassValue ¶
func (x CessWriteWithAlignmentResponse) PassValue() (C.cess_WriteWithAlignmentResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessWriteWithAlignmentResponse) Ref ¶
func (x *CessWriteWithAlignmentResponse) Ref() *C.cess_WriteWithAlignmentResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessWriteWithoutAlignmentResponse ¶
type CessWriteWithoutAlignmentResponse struct { CommP [32]byte ErrorMsg string StatusCode FCPResponseStatus TotalWriteUnpadded uint64 // contains filtered or unexported fields }
CessWriteWithoutAlignmentResponse as declared in cess-ffi/cesscrypto.h:348
func CessWriteWithoutAlignment ¶
func CessWriteWithoutAlignment(registeredProof CessRegisteredSealProof, srcFd int32, srcSize uint64, dstFd int32) *CessWriteWithoutAlignmentResponse
CessWriteWithoutAlignment function as declared in cess-ffi/cesscrypto.h:911
func NewCessWriteWithoutAlignmentResponseRef ¶
func NewCessWriteWithoutAlignmentResponseRef(ref unsafe.Pointer) *CessWriteWithoutAlignmentResponse
NewCessWriteWithoutAlignmentResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessWriteWithoutAlignmentResponse) Deref ¶
func (x *CessWriteWithoutAlignmentResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessWriteWithoutAlignmentResponse) Free ¶
func (x *CessWriteWithoutAlignmentResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessWriteWithoutAlignmentResponse) PassRef ¶
func (x *CessWriteWithoutAlignmentResponse) PassRef() (*C.cess_WriteWithoutAlignmentResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessWriteWithoutAlignmentResponse) PassValue ¶
func (x CessWriteWithoutAlignmentResponse) PassValue() (C.cess_WriteWithoutAlignmentResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessWriteWithoutAlignmentResponse) Ref ¶
func (x *CessWriteWithoutAlignmentResponse) Ref() *C.cess_WriteWithoutAlignmentResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type CessZeroSignatureResponse ¶
type CessZeroSignatureResponse struct { Signature CessBLSSignature // contains filtered or unexported fields }
CessZeroSignatureResponse as declared in cess-ffi/cesscrypto.h:116
func CessCreateZeroSignature ¶
func CessCreateZeroSignature() *CessZeroSignatureResponse
CessCreateZeroSignature function as declared in cess-ffi/cesscrypto.h:398
func NewCessZeroSignatureResponseRef ¶
func NewCessZeroSignatureResponseRef(ref unsafe.Pointer) *CessZeroSignatureResponse
NewCessZeroSignatureResponseRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*CessZeroSignatureResponse) Deref ¶
func (x *CessZeroSignatureResponse) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*CessZeroSignatureResponse) Free ¶
func (x *CessZeroSignatureResponse) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*CessZeroSignatureResponse) PassRef ¶
func (x *CessZeroSignatureResponse) PassRef() (*C.cess_ZeroSignatureResponse, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (CessZeroSignatureResponse) PassValue ¶
func (x CessZeroSignatureResponse) PassValue() (C.cess_ZeroSignatureResponse, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*CessZeroSignatureResponse) Ref ¶
func (x *CessZeroSignatureResponse) Ref() *C.cess_ZeroSignatureResponse
Ref returns the underlying reference to C object or nil if struct is nil.
type FCPResponseStatus ¶
type FCPResponseStatus int32
FCPResponseStatus as declared in cess-ffi/cesscrypto.h:31
const ( FCPResponseStatusFCPNoError FCPResponseStatus = C.FCPResponseStatus_FCPNoError FCPResponseStatusFCPUnclassifiedError FCPResponseStatus = C.FCPResponseStatus_FCPUnclassifiedError FCPResponseStatusFCPCallerError FCPResponseStatus = C.FCPResponseStatus_FCPCallerError FCPResponseStatusFCPReceiverError FCPResponseStatus = C.FCPResponseStatus_FCPReceiverError )
FCPResponseStatus enumeration from cess-ffi/cesscrypto.h:31