Skip to content

Commit

Permalink
Use PrivateKey for signing calls
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed Apr 11, 2019
1 parent 44ecb40 commit 2b10bb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/client.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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<json::SigHashType>,
) -> Result<json::SignRawTransactionResult> {
let mut args = [
Expand All @@ -419,7 +419,7 @@ pub trait RpcApi: Sized {
fn sign_raw_transaction_with_key<R: RawTx>(
&self,
tx: R,
privkeys: &[&str],
privkeys: &[&PrivateKey],
prevtxs: Option<&[json::SignRawTransactionInput]>,
sighash_type: Option<json::SigHashType>,
) -> Result<json::SignRawTransactionResult> {
Expand Down

0 comments on commit 2b10bb0

Please sign in to comment.