Bitcoin Forum
December 15, 2024, 07:43:22 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is the code used to generate a new address in the copper membership open source?  (Read 231 times)
nullama (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 986



View Profile
May 25, 2022, 04:44:58 AM
Merited by hugeblack (3)
 #1

In the page where you can buy a Copper Membership it says:

We are commonly asked how we know that you sent a payment. The address above was newly generated just for you, so when any BTC is sent to it, we will know to credit it to your account. It is all automatic.

I'm wondering if the code used to generate that address on the fly for the current user is open source(php code I guess?). It seems quite useful since it creates a new address per each user, and also apparently it executes some action whenever the payment is made. It seems to be a simple Bitcoin checkout, which could be great in certain use cases.

It's fine if it's not open source, but it would be great to know if it is.

░░░▄████████████████████████
░▄████████████████████████████
████████████████████████████
████████████████████████████
█████████████████████████████
█████████████████████████████
██████████████████████████████
████████████████████████████▀
█████████████████████████▀
████████████████████
█████████████████████
██████████████████████
░░███████████████████▀
█████████████████████████
█████████████████████████
█████░▄▄█████████████████
█████░███████████████████
█████░███████░███████████
████████████░████████████
██████████░█████████████
██████████░██████████████
██████████░██████████████
██████████░██████████████
████████░████████████████
█████████████████████████
█████████████████████████
 100% 
WELCOME BONUS
 UP TO 15% 
CASHBACK
 NO KYC 
PROVABLY FAIR
█████████████████████████
█████████████████████████
█████████████████████████
█████░██░░██░██░░██░█████
████░████████████████████
█████████░░███░░█████████
█████░░██████████████████
███████░░████████████████
█████████░█████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
 
  Play Now  
PX-Z
Hero Member
*****
Online Online

Activity: 1666
Merit: 984


Wallet transaction notifier @txnNotifierBot


View Profile WWW
May 25, 2022, 04:54:57 AM
 #2

Bitcoin is open source, lots of address generator library using different programming language are open source too.

Probably theymos uses open source software to do the address generation of every user, but since this forum is not open source, then there's no way theymos will make the code for the copper membership open source too.

nullama (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 986



View Profile
May 25, 2022, 06:32:07 AM
 #3

Bitcoin is open source, lots of address generator library using different programming language are open source too.

Probably theymos uses open source software to do the address generation of every user, but since this forum is not open source, then there's no way theymos will make the code for the copper membership open source too.

This forum is open source though, it's based on Simple Machines Forums, which is released under BSD: https://www.simplemachines.org/about/license.php

Thinking about it though, you're right, it would probably be easier to just use a library as you mention instead of trying to re-use this solution.

░░░▄████████████████████████
░▄████████████████████████████
████████████████████████████
████████████████████████████
█████████████████████████████
█████████████████████████████
██████████████████████████████
████████████████████████████▀
█████████████████████████▀
████████████████████
█████████████████████
██████████████████████
░░███████████████████▀
█████████████████████████
█████████████████████████
█████░▄▄█████████████████
█████░███████████████████
█████░███████░███████████
████████████░████████████
██████████░█████████████
██████████░██████████████
██████████░██████████████
██████████░██████████████
████████░████████████████
█████████████████████████
█████████████████████████
 100% 
WELCOME BONUS
 UP TO 15% 
CASHBACK
 NO KYC 
PROVABLY FAIR
█████████████████████████
█████████████████████████
█████████████████████████
█████░██░░██░██░░██░█████
████░████████████████████
█████████░░███░░█████████
█████░░██████████████████
███████░░████████████████
█████████░█████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
 
  Play Now  
PX-Z
Hero Member
*****
Online Online

Activity: 1666
Merit: 984


Wallet transaction notifier @txnNotifierBot


View Profile WWW
May 25, 2022, 06:48:14 AM
Merited by hugeblack (2), ABCbits (1), Pmalek (1)
 #4

This forum is open source though, it's based on Simple Machines Forums, which is released under BSD: https://www.simplemachines.org/about/license.php
The simple machine, yes. But this forum was already customized and improved too many times like this forum is already different from the version released by the simple machines since those hacks happened.

hugeblack
Legendary
*
Online Online

Activity: 2730
Merit: 4033



View Profile WWW
May 25, 2022, 09:27:23 AM
 #5

According to this ---> https://bitcointalk.org/index.php?topic=2385104.msg24371150#msg24371150

Quote
I wrote the system so that I can easily add additional paid memberships in the future, but I might not ever do so. Not sure.

It looks like a modified library that was used to generate addresses but I think most of the modifications come from https://btcpayserver.org/ ?!

In general, I think that the above project is open source and provides an option for everyone who does not want to strive to write code from scratch, and therefore @theymos is the one who can confirm the nature of the code.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
dkbit98
Legendary
*
Offline Offline

Activity: 2450
Merit: 7643



View Profile WWW
May 25, 2022, 01:55:10 PM
 #6

I'm wondering if the code used to generate that address on the fly for the current user is open source(php code I guess?). It seems quite useful since it creates a new address per each user, and also apparently it executes some action whenever the payment is made. It seems to be a simple Bitcoin checkout, which could be great in certain use cases.
You want to use this code for some other forum or what?
I don't think this feature needs to be open source and inspected by everyone, even if forum software is open source it can probably use other extensions with closed source code.
It's not like members are sending millions of Bitcoins every day for copper membership, it's more like symbolic amount, currently that is around 0.00080198 BTC or $24.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nullama (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 986



View Profile
May 25, 2022, 03:23:18 PM
 #7

I'm wondering if the code used to generate that address on the fly for the current user is open source(php code I guess?). It seems quite useful since it creates a new address per each user, and also apparently it executes some action whenever the payment is made. It seems to be a simple Bitcoin checkout, which could be great in certain use cases.
You want to use this code for some other forum or what?
I don't think this feature needs to be open source and inspected by everyone, even if forum software is open source it can probably use other extensions with closed source code.
It's not like members are sending millions of Bitcoins every day for copper membership, it's more like symbolic amount, currently that is around 0.00080198 BTC or $24.


I was just curious to see how it was made because it seemed like a nice lite Bitcoin checkout for websites. But as I mentioned before, it's probably tied with the forum so it would be better to use any other library.

And also I agree with you, I think there's no need for this to be open sourced.

░░░▄████████████████████████
░▄████████████████████████████
████████████████████████████
████████████████████████████
█████████████████████████████
█████████████████████████████
██████████████████████████████
████████████████████████████▀
█████████████████████████▀
████████████████████
█████████████████████
██████████████████████
░░███████████████████▀
█████████████████████████
█████████████████████████
█████░▄▄█████████████████
█████░███████████████████
█████░███████░███████████
████████████░████████████
██████████░█████████████
██████████░██████████████
██████████░██████████████
██████████░██████████████
████████░████████████████
█████████████████████████
█████████████████████████
 100% 
WELCOME BONUS
 UP TO 15% 
CASHBACK
 NO KYC 
PROVABLY FAIR
█████████████████████████
█████████████████████████
█████████████████████████
█████░██░░██░██░░██░█████
████░████████████████████
█████████░░███░░█████████
█████░░██████████████████
███████░░████████████████
█████████░█████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
 
  Play Now  
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5418
Merit: 13499


View Profile
May 25, 2022, 08:28:07 PM
Merited by bitmover (5), DdmrDdmr (3), dkbit98 (3), BlackHatCoiner (2), Foxpup (1), BitMaxz (1), ABCbits (1), Pmalek (1), tranthidung (1), nullama (1)
 #8

There's nothing fancy going on. The Bitcoin-specific part of the payments handling code is only 94 lines, and most of this deals with interfacing with bitcointalk.org. It uses Bitcoin Core via JSON-RPC; specifically, the only two JSON-RPC commands bitcointalk.org uses are listreceivedbyaddress and getnewaddress.

You could create a page which displays a user-unique address and says how much that address has received in like 10 lines of PHP if you use a JSON-RPC library. However, in reality you need to handle a large number of edge cases (eg. overpayment, underpayment, very-late payment, etc.), so I recommend using BTCPay Server, which tries to handle all such edge cases in reasonable ways.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
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!