Bitcoin Forum
October 07, 2024, 02:18:00 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there any PHP-MySQL full node implementation ?  (Read 788 times)
CounterEntropy (OP)
Full Member
***
Offline Offline

Activity: 214
Merit: 278


View Profile
December 29, 2015, 11:54:38 PM
Merited by ABCbits (1)
 #1

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

Activity: 5348
Merit: 13316


View Profile
December 30, 2015, 12:20:53 AM
Merited by ABCbits (2)
 #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 (OP)
Full Member
***
Offline Offline

Activity: 214
Merit: 278


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
Merit: 287


View Profile
December 31, 2015, 03:16:41 AM
Merited by ABCbits (1)
 #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:  

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