Skip to content

Commit

Permalink
Rename zcash_client_backend::welding_rig to `zcash_client_backend::…
Browse files Browse the repository at this point in the history
…scanning`
  • Loading branch information
nuttycom committed Jul 2, 2023
1 parent 11134d2 commit b2e742d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions zcash_client_backend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ and this library adheres to Rust's notion of
- `ScannedBlock`
- `wallet::input_sellection::Proposal::{min_target_height, min_anchor_height}`:
- `zcash_client_backend::wallet::WalletSaplingOutput::note_commitment_tree_position`
- `zcash_client_backend::welding_rig::ScanError`
- `zcash_client_backend::scanning::ScanError`

### Changed
- MSRV is now 1.65.0.
Expand Down Expand Up @@ -55,9 +55,10 @@ and this library adheres to Rust's notion of
- Arguments to `{propose_transaction, propose_shielding}` have changed.
- `zcash_client_backend::wallet::ReceivedSaplingNote::note_commitment_tree_position`
has replaced the `witness` field in the same struct.
- `zcash_client_backend::welding_rig::ScanningKey::sapling_nf` has been changed to
- `zcash_client_backend::welding_rig` has been renamed to `zcash_client_backend::scanning`
- `zcash_client_backend::scanning::ScanningKey::sapling_nf` has been changed to
take a note position instead of an incremental witness for the note.
- Arguments to `zcash_client_backend::welding_rig::scan_block` have changed. This
- Arguments to `zcash_client_backend::scanning::scan_block` have changed. This
method now takes an optional `BlockMetadata` argument instead of a base commitment
tree and incremental witnesses for each previously-known note. In addition, the
return type has now been updated to return a `Result<ScannedBlock, ScanError>`
Expand All @@ -79,7 +80,7 @@ and this library adheres to Rust's notion of
- `zcash_client_backend::data_api::chain::validate_chain` TODO: document how
to handle validation given out-of-order blocks.
- `zcash_client_backend::data_api::chain::error::{ChainError, Cause}` have been
replaced by `zcash_client_backend::welding_rig::ScanError`
replaced by `zcash_client_backend::scanning::ScanError`
- `zcash_client_backend::wallet::WalletSaplingOutput::{witness, witness_mut}`
have been removed as individual incremental witnesses are no longer tracked on a
per-note basis. The global note commitment tree for the wallet should be used
Expand Down
2 changes: 1 addition & 1 deletion zcash_client_backend/src/data_api/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ use crate::{
data_api::{NullifierQuery, WalletWrite},
proto::compact_formats::CompactBlock,
scan::BatchRunner,
welding_rig::{add_block_to_runner, scan_block_with_runner},
scanning::{add_block_to_runner, scan_block_with_runner},
};

pub mod error;
Expand Down
2 changes: 1 addition & 1 deletion zcash_client_backend/src/data_api/chain/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use std::error;
use std::fmt::{self, Debug, Display};

use crate::welding_rig::ScanError;
use crate::scanning::ScanError;

/// Errors related to chain validation and scanning.
#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion zcash_client_backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub mod keys;
pub mod proto;
pub mod scan;
pub mod wallet;
pub mod welding_rig;
pub mod scanning;
pub mod zip321;

pub use decrypt::{decrypt_transaction, DecryptedOutput, TransferType};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use crate::{
/// nullifier for the note can also be obtained.
///
/// [`CompactSaplingOutput`]: crate::proto::compact_formats::CompactSaplingOutput
/// [`scan_block`]: crate::welding_rig::scan_block
/// [`scan_block`]: crate::scanning::scan_block
pub trait ScanningKey {
/// The type representing the scope of the scanning key.
type Scope: Clone + Eq + std::hash::Hash + Send + 'static;
Expand Down Expand Up @@ -165,7 +165,7 @@ impl fmt::Display for ScanError {
/// [`ExtendedFullViewingKey`]: zcash_primitives::zip32::ExtendedFullViewingKey
/// [`SaplingIvk`]: zcash_primitives::sapling::SaplingIvk
/// [`CompactBlock`]: crate::proto::compact_formats::CompactBlock
/// [`ScanningKey`]: crate::welding_rig::ScanningKey
/// [`ScanningKey`]: crate::scanning::ScanningKey
/// [`CommitmentTree`]: zcash_primitives::sapling::CommitmentTree
/// [`IncrementalWitness`]: zcash_primitives::sapling::IncrementalWitness
/// [`WalletSaplingOutput`]: crate::wallet::WalletSaplingOutput
Expand Down

0 comments on commit b2e742d

Please sign in to comment.