From 2b10bb0e4e4056cbe3a9977d186827d43dd11bb0 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Thu, 11 Apr 2019 16:01:57 +0100 Subject: [PATCH] Use PrivateKey for signing calls --- client/src/client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/client.rs b/client/src/client.rs index aebb767a..9550b118 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -17,7 +17,7 @@ use secp256k1; use serde; use serde_json; -use bitcoin::{Address, Block, BlockHeader, Transaction}; +use bitcoin::{Address, Block, BlockHeader, PrivateKey, Transaction}; use bitcoin_amount::Amount; use bitcoin_hashes::sha256d; use log::Level::Trace; @@ -403,7 +403,7 @@ pub trait RpcApi: Sized { &self, tx: R, utxos: Option<&[json::SignRawTransactionInput]>, - private_keys: Option<&[&str]>, + private_keys: Option<&[&PrivateKey]>, sighash_type: Option, ) -> Result { let mut args = [ @@ -419,7 +419,7 @@ pub trait RpcApi: Sized { fn sign_raw_transaction_with_key( &self, tx: R, - privkeys: &[&str], + privkeys: &[&PrivateKey], prevtxs: Option<&[json::SignRawTransactionInput]>, sighash_type: Option, ) -> Result {