Skip to content

Commit

Permalink
feat: re-export RemoteTransactionProver (#752)
Browse files Browse the repository at this point in the history
* feat: re-export `RemoteTransactionProver`
  • Loading branch information
varun-doshi authored Feb 24, 2025
1 parent 2183ab9 commit 091be89
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 13 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

* Add check for empty pay to id notes (#714).
* [BREAKING] Refactored authentication out of the `Client` and added new separate authenticators (#718).
* Move error handling to the `TransactionRequestBuilder::build()` (#750).
* Re-exported RemoteTransactionProver in `rust-client` (#752).
* Moved error handling to the `TransactionRequestBuilder::build()` (#750).

## 0.7.0 (2025-01-28)

Expand Down
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion bin/miden-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ comfy-table = { version = "7.1" }
figment = { version = "0.10", features = ["toml", "env"] }
miden-client = { version = "0.8", path = "../../crates/rust-client", features = ["sqlite", "tonic"] }
miden-lib = { workspace = true }
miden-proving-service-client = { workspace = true , features = ["std", "tx-prover"]}
miden-objects = { workspace = true }
miette = { workspace = true }
rand = { workspace = true }
Expand Down
3 changes: 1 addition & 2 deletions bin/miden-cli/src/commands/new_transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ use miden_client::{
InputNote, OutputNote, PaymentTransactionData, SwapTransactionData, TransactionRequest,
TransactionRequestBuilder, TransactionResult,
},
Client,
Client, RemoteTransactionProver,
};
use miden_proving_service_client::proving_service::tx_prover::RemoteTransactionProver;
use tracing::info;

use crate::{
Expand Down
3 changes: 2 additions & 1 deletion crates/rust-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrent = ["miden-tx/concurrent", "std"]
default = []
idxdb = ["dep:base64", "dep:serde-wasm-bindgen", "dep:wasm-bindgen", "dep:wasm-bindgen-futures", "dep:serde"]
sqlite = ["dep:rusqlite", "dep:deadpool-sqlite", "std"]
std = ["miden-objects/std"]
std = ["miden-objects/std","miden-proving-service-client/std"]
testing = ["miden-objects/testing", "miden-lib/testing", "miden-tx/testing"]
tonic = ["std", "tonic/transport", "tonic/tls", "tonic/tls-native-roots"]
web-tonic = ["dep:tonic-web-wasm-client"]
Expand All @@ -34,6 +34,7 @@ base64 = { version = "0.22", optional = true }
chrono = { version = "0.4", optional = false }
deadpool-sqlite = { version = "0.9", features = ["rt_tokio_1"], optional = true }
hex = { version = "0.4" }
miden-proving-service-client = { workspace = true , features = ["tx-prover"]}
miden-lib = { workspace = true }
miden-objects = { workspace = true }
miden-tx = { workspace = true, features = ["async"] }
Expand Down
1 change: 1 addition & 0 deletions crates/rust-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ pub mod crypto {

pub use errors::{ClientError, IdPrefixFetchError};
pub use miden_objects::{Felt, StarkField, Word, ONE, ZERO};
pub use miden_proving_service_client::proving_service::tx_prover::RemoteTransactionProver;

/// Provides various utilities that are commonly used throughout the Miden
/// client library.
Expand Down
1 change: 0 additions & 1 deletion crates/web-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ testing = ["miden-client/testing"]
miden-client = { version = "0.8", path = "../rust-client", default-features = false, features = ["idxdb", "web-tonic"] }
miden-lib = { workspace = true }
miden-objects = { workspace = true }
miden-proving-service-client = { workspace = true }
miden-tx = { workspace = true }
rand = { workspace = true }
serde = { workspace = true }
Expand Down
3 changes: 1 addition & 2 deletions crates/web-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ use miden_client::{
authenticator::{keystore::WebKeyStore, ClientAuthenticator},
rpc::WebTonicRpcClient,
store::web_store::WebStore,
Client,
Client, RemoteTransactionProver,
};
use miden_objects::{crypto::rand::RpoRandomCoin, Felt};
use miden_proving_service_client::proving_service::tx_prover::RemoteTransactionProver;
use rand::{rngs::StdRng, Rng, SeedableRng};
use wasm_bindgen::prelude::*;

Expand Down
6 changes: 3 additions & 3 deletions crates/web-client/src/models/provers.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use alloc::sync::Arc;

use miden_client::transaction::{
LocalTransactionProver, TransactionProver as TransactionProverTrait,
use miden_client::{
transaction::{LocalTransactionProver, TransactionProver as TransactionProverTrait},
RemoteTransactionProver,
};
use miden_proving_service_client::proving_service::tx_prover::RemoteTransactionProver;
use miden_tx::ProvingOptions;
use wasm_bindgen::prelude::*;

Expand Down

0 comments on commit 091be89

Please sign in to comment.