From 17c04b5b716f969f099c4cd608e03b7a2ae492d9 Mon Sep 17 00:00:00 2001 From: Assaf Shomer Date: Mon, 1 Sep 2014 14:01:06 +0300 Subject: [PATCH 1/2] Added rvmrc to gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1b7d69b..d4dc6df 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ Gemfile.lock pkg/* coverage *~ - +.rvmrc From 1a3440725e0ee7277c96e88eb514443c004fec94 Mon Sep 17 00:00:00 2001 From: Assaf Shomer Date: Mon, 1 Sep 2014 14:01:19 +0300 Subject: [PATCH 2/2] Added dumpprivkey method to client --- lib/bitcoin-client/client.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/bitcoin-client/client.rb b/lib/bitcoin-client/client.rb index 901caaa..0c8c834 100644 --- a/lib/bitcoin-client/client.rb +++ b/lib/bitcoin-client/client.rb @@ -183,6 +183,11 @@ def importprivkey(bitcoinprivkey, label = nil, rescan = true) @api.request 'importprivkey', bitcoinprivkey, label, rescan end + # Reveals the private key corresponding to an address. + def dumpprivkey(bitcoinaddress) + @api.request 'dumpprivkey', bitcoinaddress + end + # Returns Object that has account names as keys, account balances as values. def listaccounts(minconf = 1) @api.request 'listaccounts', minconf