Bitcoin Forum
December 12, 2024, 05:00:26 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is it the correct way to accept Bitcoin ?  (Read 628 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
100bitcoin (OP)
Sr. Member
****
Offline Offline

Activity: 861
Merit: 423


View Profile WWW
May 14, 2014, 06:15:29 PM
 #1

To accept Bitcoin on our system, we are implementing the following process.

1. Showing user the amount of BTC she is supposed to pay.

2. Asking for the bitcoin address from where she is going to send the coins.

3. Providing her the bitcoin address where she needs to send the coin.

4. Asking for the Tx Hash from the user.

5. Now we are checking the amount, from address and to address in the raw data of the Tx Hash.

6. As soon as we are having 6 confirmations, we are accepting the payment.

Is there any problem with it ?

DannyHamilton
Legendary
*
Offline Offline

Activity: 3514
Merit: 4894



View Profile
May 14, 2014, 06:51:41 PM
 #2

2. Asking for the bitcoin address from where she is going to send the coins.

No.

No, no, no.

There is no "bitcoin address from where she is going to send the coins" with bitcoin.  You are doing this wrong.

Skip straight to step 3, and give the user a unique address that is exclusively for this particular transaction.

4. Asking for the Tx Hash from the user.

Hashes can change.  They are not reliable when they are not yet confirmed.  You should not be using a TxHash to identify the transaction.  This is a bad idea.

5. Now we are checking the amount, from address and to address in the raw data of the Tx Hash.

Just check the amount at your receiving address.  Once the balance is paid and confirmed, you are all done.

6. As soon as we are having 6 confirmations, we are accepting the payment.

6 confirmations?  Is this really neccessary?  You'll have to look into your particular business requirements, but perhaps 3 confirmations would be enough in most cases?  Perhaps you really need 10 confirmations?  It would be a good idea to understand your particular needs rather than choose an arbitrary number without knowing if it will meet or exceed your needs.

Is there any problem with it ?

Yes.
jbrnt
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500



View Profile
May 14, 2014, 07:23:16 PM
Last edit: May 14, 2014, 07:55:14 PM by jbrnt
 #3

2. Asking for the bitcoin address from where she is going to send the coins.

When I buy something with bitcoin, I do not know which address I will send from. All funds may be from one address or combined from a few addresses. Some may even send directly from an exchange and users have no way of knowing the sending address.
Abdussamad
Legendary
*
Offline Offline

Activity: 3710
Merit: 1586



View Profile
May 14, 2014, 07:26:59 PM
 #4

What about male customers?
justusranvier
Legendary
*
Offline Offline

Activity: 1400
Merit: 1013



View Profile
May 15, 2014, 02:08:26 AM
 #5

6. As soon as we are having 6 confirmations, we are accepting the payment.

6 confirmations?  Is this really neccessary?  You'll have to look into your particular business requirements, but perhaps 3 confirmations would be enough in most cases?  Perhaps you really need 10 confirmations?  It would be a good idea to understand your particular needs rather than choose an arbitrary number without knowing if it will meet or exceed your needs.
This paper could be the basis for an improved calculation: https://bitcoil.co.il/Doublespend.pdf
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!