Bitcoin Forum
September 20, 2018, 01:49:34 PM *
News: ♦♦ Bitcoin Core users must update to 0.16.3 [Torrent]. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Is it the correct way to accept Bitcoin ?  (Read 594 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
Sr. Member
****
Offline Offline

Activity: 384
Merit: 250


View Profile
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 ?
1537451374
Hero Member
*
Offline Offline

Posts: 1537451374

View Profile Personal Message (Offline)

Ignore
1537451374
Reply with quote  #2

1537451374
Report to moderator
1537451374
Hero Member
*
Offline Offline

Posts: 1537451374

View Profile Personal Message (Offline)

Ignore
1537451374
Reply with quote  #2

1537451374
Report to moderator
1537451374
Hero Member
*
Offline Offline

Posts: 1537451374

View Profile Personal Message (Offline)

Ignore
1537451374
Reply with quote  #2

1537451374
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537451374
Hero Member
*
Offline Offline

Posts: 1537451374

View Profile Personal Message (Offline)

Ignore
1537451374
Reply with quote  #2

1537451374
Report to moderator
1537451374
Hero Member
*
Offline Offline

Posts: 1537451374

View Profile Personal Message (Offline)

Ignore
1537451374
Reply with quote  #2

1537451374
Report to moderator
1537451374
Hero Member
*
Offline Offline

Posts: 1537451374

View Profile Personal Message (Offline)

Ignore
1537451374
Reply with quote  #2

1537451374
Report to moderator
DannyHamilton
Legendary
*
Offline Offline

Activity: 2198
Merit: 1373



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
 #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: 1862
Merit: 1064



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

What about male customers?

justusranvier
Legendary
*
Offline Offline

Activity: 1400
Merit: 1006



View Profile WWW
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!