Struct resource_proof::ResourceProver[][src]

pub struct ResourceProver { /* fields omitted */ }
Expand description

Object used to compute a result

Implementations

The expected number of steps is pow(2, difficulty). The process is probabilistic, so the actual number of steps required may be more or less.

The length of each step depends on data size. Total expected time is proportional to length * pow(2, difficulty).

Try one step; if successful return the proof result.

(This does not invalidate the prover. Continuing might find another valid solution.)

Keep stepping until a solution is found. Expected time can be calculated roughly (see expected_steps) but there is no upper bound (besides u64::MAX).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.