Documentation
¶
Index ¶
- Variables
- func CPUProviderID() int
- func SaveMetadata(dir string, v *Metadata) error
- func WithCommitment(commitment []byte) initializeOptionFunc
- func WithConfig(cfg Config) initializeOptionFunc
- func WithInitOpts(initOpts config.InitOpts) initializeOptionFunc
- func WithLogger(logger Logger) initializeOptionFunc
- type ComputeProvider
- type Config
- type ConfigMismatchError
- type DiskState
- type InitOpts
- type Initializer
- type Logger
- type Metadata
- type Proof
- type Status
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CPUProviderID ¶
func CPUProviderID() int
func SaveMetadata ¶
func WithCommitment ¶ added in v0.2.0
func WithCommitment(commitment []byte) initializeOptionFunc
func WithConfig ¶ added in v0.2.0
func WithConfig(cfg Config) initializeOptionFunc
func WithInitOpts ¶ added in v0.2.0
func WithLogger ¶ added in v0.2.0
func WithLogger(logger Logger) initializeOptionFunc
Types ¶
type ComputeProvider ¶
type ComputeProvider = gpu.ComputeProvider
func Providers ¶
func Providers() []ComputeProvider
type ConfigMismatchError ¶
type ConfigMismatchError = shared.ConfigMismatchError
type DiskState ¶
type DiskState struct {
// contains filtered or unexported fields
}
func NewDiskState ¶
func (*DiskState) NumBytesWritten ¶
func (*DiskState) NumLabelsWritten ¶
type Initializer ¶
type Initializer struct {
// contains filtered or unexported fields
}
func NewInitializer ¶
func NewInitializer(opts ...initializeOptionFunc) (*Initializer, error)
func (*Initializer) Initialize ¶
func (init *Initializer) Initialize(ctx context.Context) error
Initialize is the process in which the prover commits to store some data, by having its storage filled with pseudo-random data with respect to a specific id. This data is the result of a computationally-expensive operation.
func (*Initializer) Reset ¶
func (init *Initializer) Reset() error
func (*Initializer) SessionNumLabelsWritten ¶
func (init *Initializer) SessionNumLabelsWritten() uint64
func (*Initializer) Status ¶ added in v0.2.0
func (init *Initializer) Status() Status
Click to show internal directories.
Click to hide internal directories.