Bitcoin Forum
November 23, 2017, 04:36:55 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Is there any PHP-MySQL full node implementation ?  (Read 657 times)
CounterEntropy
Full Member
***
Offline Offline

Activity: 147


View Profile
December 29, 2015, 11:54:38 PM
 #1

I was talking to some people if it could be done. Should we use openssl_random_pseudo_bytes() to generate random values ?
1511411815
Hero Member
*
Offline Offline

Posts: 1511411815

View Profile Personal Message (Offline)

Ignore
1511411815
Reply with quote  #2

1511411815
Report to moderator
1511411815
Hero Member
*
Offline Offline

Posts: 1511411815

View Profile Personal Message (Offline)

Ignore
1511411815
Reply with quote  #2

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

Posts: 1511411815

View Profile Personal Message (Offline)

Ignore
1511411815
Reply with quote  #2

1511411815
Report to moderator
1511411815
Hero Member
*
Offline Offline

Posts: 1511411815

View Profile Personal Message (Offline)

Ignore
1511411815
Reply with quote  #2

1511411815
Report to moderator
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2856


View Profile
December 30, 2015, 12:20:53 AM
 #2

Implementing a full node in any language is extremely difficult because you need to match the behavior of Bitcoin Core exactly, even including bugs and unknown behavior. Don't try it.

It has occurred to me that it might be useful to do payment processing or a wallet by writing a non-verifying "node" in PHP which talks exclusively to a trusted full node over a secure connection (note that Bitcoin network connections are not by themselves secure). I wrote some working PHP code for Bitcoin protocol communication back when I was running blockexplorer.com. It's not that difficult.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
CounterEntropy
Full Member
***
Offline Offline

Activity: 147


View Profile
December 30, 2015, 08:36:07 PM
 #3

Implementing a full node in any language is extremely difficult because you need to match the behavior of Bitcoin Core exactly, even including bugs and unknown behavior. Don't try it.
May be it is difficult, but not impossible. There is already a full node implementation in Go - https://github.com/btcsuite/btcd.

It has occurred to me that it might be useful to do payment processing or a wallet by writing a non-verifying "node" in PHP which talks exclusively to a trusted full node over a secure connection (note that Bitcoin network connections are not by themselves secure). I wrote some working PHP code for Bitcoin protocol communication back when I was running blockexplorer.com. It's not that difficult.
The basic requirement to run core on the web is a VPS, which is costly. Not to mention, there are technical complexities as well. I believe, it would be far easier for an average web developer to run a full node, if it were available in PHP-MySQL format and thereby increasing the number of full nodes to secure the bitcoin network. This can be run on a shared hosting if it is used only for validation and providing network data, but not as a wallet.
fbueller
Sr. Member
****
Offline Offline

Activity: 412


View Profile
December 31, 2015, 03:16:41 AM
 #4

I've started writing a full node a while ago: https://github.com/Bit-wasp/node-php It uses headers first syncing, but it's very early days, it probably needs a lot of love before people start using it

Bitwasp Developer.
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!