generated

package
v0.0.0-...-e42303f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

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

func CessHashVerify

func CessHashVerify(signaturePtr []byte, flattenedMessagesPtr []byte, flattenedMessagesLen uint, messageSizesPtr []uint, messageSizesLen uint, flattenedPublicKeysPtr []byte, flattenedPublicKeysLen uint) int32

CessHashVerify function as declared in cess-ffi/cesscrypto.h:704

func CessVerify

func CessVerify(signaturePtr []byte, flattenedDigestsPtr []byte, flattenedDigestsLen uint, flattenedPublicKeysPtr []byte, flattenedPublicKeysLen uint) int32

CessVerify function as declared in cess-ffi/cesscrypto.h:844

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

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

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

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

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

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

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

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

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

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

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessGenerateDataCommitmentResponse) Ref

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessGenerateFallbackSectorChallengesResponse) Ref

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessGeneratePieceCommitmentResponse) Ref

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessGenerateSingleVanillaProofResponse) Ref

Ref returns the underlying reference to C object or nil if struct is nil.

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessGenerateSingleWindowPoStWithVanillaResponse) Ref

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessGenerateWindowPoStResponse) Ref

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessGenerateWinningPoStResponse) Ref

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessGenerateWinningPoStSectorChallenge) Ref

Ref returns the underlying reference to C object or nil if struct is nil.

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessGetNumPartitionForFallbackPoStResponse) Ref

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

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

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

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessMergeWindowPoStPartitionProofsResponse) Ref

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessPrivateKeyGenerateResponse) Ref

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessPrivateKeyPublicKeyResponse) Ref

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

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

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

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

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

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

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessSealPreCommitPhase1Response) Ref

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessSealPreCommitPhase2Response) Ref

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

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

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

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessVerifyAggregateSealProofResponse) Ref

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

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

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

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessWriteWithAlignmentResponse) Ref

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

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

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

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

PassValue does the same as PassRef except that it will try to dereference the returned pointer.

func (*CessWriteWithoutAlignmentResponse) Ref

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

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

type RawString

type RawString string

RawString reperesents a string backed by data on the C side.

func (RawString) Copy

func (raw RawString) Copy() string

Copy returns a Go-managed copy of raw string.

Jump to

Keyboard shortcuts

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