pub struct LocalTxProver { /* private fields */ }
Expand description

An implementation of HsmTxProver using Sapling Spend and Output parameters from locally-accessible paths.

Implementations

Creates a LocalTxProver using parameters from the given local paths.

Examples
use std::path::Path;
use zcash_proofs::prover::LocalTxProver;

let tx_prover = LocalTxProver::new(
    Path::new("/path/to/sapling-spend.params"),
    Path::new("/path/to/sapling-output.params"),
);
Panics

This function will panic if the paths do not point to valid parameter files with the expected hashes.

Trait Implementations

Type for persisting any necessary context across multiple Sapling proofs.

Instantiate a new Sapling proving context.

Create the value commitment, re-randomized key, and proof for a Sapling SpendDescription, while accumulating its value commitment randomness inside the context for later use. Read more

Create the value commitment and proof for a Sapling OutputDescription, while accumulating its value commitment randomness inside the context for later use. Read more

Create the bindingSig for a Sapling transaction. Read more

Type for persisting any necessary context across multiple Sapling proofs.

Instantiate a new Sapling proving context.

Create the value commitment, re-randomized key, and proof for a Sapling SpendDescription, while accumulating its value commitment randomness inside the context for later use. Read more

Create the value commitment and proof for a Sapling OutputDescription, while accumulating its value commitment randomness inside the context for later use. Read more

Create the bindingSig for a Sapling transaction. All calls to TxProver::spend_proof and TxProver::output_proof must be completed before calling this function. Read more

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

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

Attempts to convert self into a target type. Read more

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.