We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 020421d commit d556c3fCopy full SHA for d556c3f
ergo-lib/src/wallet.rs
@@ -197,6 +197,17 @@ impl Wallet {
197
sign_reduced_transaction(&*self.prover, reduced_tx, Some(&hints)).map_err(From::from)
198
}
199
200
+ /// Generate signatures for P2PK inputs deterministically
201
+ /// See: [`Wallet::sign_transaction_deterministic`]
202
+ pub fn sign_reduced_transaction_deterministic(
203
+ &self,
204
+ reduced_tx: ReducedTransaction,
205
+ aux_rand: &[u8],
206
+ ) -> Result<Transaction, WalletError> {
207
+ let hints = self.generate_deterministic_commitments(&reduced_tx, aux_rand)?;
208
+ sign_reduced_transaction(&*self.prover, reduced_tx, Some(&hints)).map_err(From::from)
209
+ }
210
+
211
/// Signs a message
212
#[cfg(feature = "std")]
213
pub fn sign_message(
0 commit comments