Versions in this module Expand all Collapse all v0 v0.6.1 May 15, 2023 v0.6.0 May 10, 2023 Changes in this version + const ComputeAPIClassCPU + const ComputeAPIClassCuda + const ComputeAPIClassUnspecified + const ComputeAPIClassVulkan + const StopResultError + const StopResultErrorAlready + const StopResultErrorCancelled + const StopResultErrorInvalidParameter + const StopResultErrorInvalidProvider + const StopResultErrorNoComputeOptions + const StopResultErrorTimeout + const StopResultOk + const StopResultPowFound + func CPUProviderID() uint + type ComputeAPIClass uint + func (c ComputeAPIClass) String() string + type ComputeProvider struct + ComputeAPI ComputeAPIClass + ID uint + Model string + func Providers() []ComputeProvider + type OptionFunc func(*option) error + func WithBitsPerLabel(bitsPerLabel uint32) OptionFunc + func WithCommitment(commitment []byte) OptionFunc + func WithComputeLeaves(enabled bool) OptionFunc + func WithComputePow(difficulty []byte) OptionFunc + func WithComputeProviderID(id uint) OptionFunc + func WithSalt(salt []byte) OptionFunc + func WithScryptParams(n, r, p uint32) OptionFunc + func WithStartAndEndPosition(start, end uint64) OptionFunc + type ScryptPositionsResult struct + HashesPerSec int + IdxSolution *uint64 + Output []byte + Stopped bool + func ScryptPositions(opts ...OptionFunc) (*ScryptPositionsResult, error) + type StopResult int + func Stop() StopResult + func (s StopResult) String() string