Bitcoin Forum
November 09, 2024, 01:25:50 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain Wallet API: Generating New Address and Second Password  (Read 2521 times)
buffett (OP)
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
December 15, 2013, 02:20:12 PM
Last edit: December 15, 2013, 04:41:24 PM by buffett
 #1

Hi,

I do not know if here is the right forum, but i submitted here anyway...

I'm developing a web application integrated with Blockchain wallet API. The application needs to generate new address automatically for each order. Your wallet api offers creating new addresses (which is great) but the problem is it requires second password to proceed. It means developers need to write the second password in their script which i think it is not a very wise decision. Second password should only be needed for transactional (sending btc out of wallet) and account management actions (changing email/password). Generating new addresses is sure not one of them. Hackers can do no harm by generating new addresses. The most important is the wallet balance safe when the main password is compromised. By forcing applications to send second password for generating new address, is increasing chance for hackers to find the second password and gain full control of the wallet.

Please consider to remove second password for generating new address. Most ecommerce applications need to generate addresses automatically without risking their second password will be stolen by hacker when their server are compromised. Second password should be held by wallet's owner safely and only be needed when making outgoing transfers.

Thanks.
microlavka
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile WWW
December 15, 2013, 03:50:55 PM
 #2

No password required
buffett (OP)
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
December 15, 2013, 04:34:56 PM
 #3

No password required

i'm pretty sure password is required.

Code:
curl "https://blockchain.info/merchant/{identifier}/new_address?password={mypassword}&label=test"
{"error":"Second Password Incorrect"}

maybe you've mistaken with Blockchain Receive Payments API which can be used without an account. What Im referring is Blockchain Wallet API
piuk
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
December 19, 2013, 11:44:54 PM
 #4

Unfortunately this isn't possible with our current setup. The newly generated address needs to be encrypted with the second password before it can be inserted into the wallet. It would be possible to leave the key unencrypted and encrypt it on next login but that feature is not available at the moment.

sampathneo
Full Member
***
Offline Offline

Activity: 173
Merit: 100



View Profile
December 22, 2013, 05:34:27 AM
 #5

No password required

yes of cause, no password required for create a new receiving address
sampathneo
Full Member
***
Offline Offline

Activity: 173
Merit: 100



View Profile
December 22, 2013, 05:35:39 AM
 #6

here is official api docs you should read it https://blockchain.info/api/api_receive
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
December 22, 2013, 07:56:09 AM
 #7

Hi,

I do not know if here is the right forum, but i submitted here anyway...

I'm developing a web application integrated with Blockchain wallet API. The application needs to generate new address automatically for each order. Your wallet api offers creating new addresses (which is great) but the problem is it requires second password to proceed. It means developers need to write the second password in their script which i think it is not a very wise decision. Second password should only be needed for transactional (sending btc out of wallet) and account management actions (changing email/password). Generating new addresses is sure not one of them. Hackers can do no harm by generating new addresses. The most important is the wallet balance safe when the main password is compromised. By forcing applications to send second password for generating new address, is increasing chance for hackers to find the second password and gain full control of the wallet.

Please consider to remove second password for generating new address. Most ecommerce applications need to generate addresses automatically without risking their second password will be stolen by hacker when their server are compromised. Second password should be held by wallet's owner safely and only be needed when making outgoing transfers.

Thanks.

If you are worried about security look into generating addresses using Electrum MPK. Your private keys will never touch the web server and it'll be much more secure than relying on a third party. There are a few implementations that you can refer to:

https://github.com/prusnak/addrgen

http://wordpress.org/plugins/bitcoin-payments-for-woocommerce/

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!