Bitcoin Forum
June 21, 2024, 06:51:57 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: Creating Blockchain with Javascript to use website visitors as node?  (Read 362 times)
valduz10 (OP)
Newbie
*
Offline Offline

Activity: 54
Merit: 0


View Profile
June 13, 2017, 07:06:13 PM
 #1

Hi,

I am developing websites as a hobby and I am wondering if it would be possible to create a blockchain using Javascript or Ajax to utilize the hardware resources of a website visitor during its stay on a website via a peer-to-peer network between users. I already created websites with 1,500 visitors online at the same time. With PC specs of like 4 CPU cores, 1 GB GPU and 4 GB RAM this would mean I have access to 1,500 GB GPU Power 6,000 CPU Cores and 6 Terabyte Ram.

Wouldn't this be enough to run a network of nodes to store and process payments with a token or coin, and also mining this token at the same time?

This answer seems to sum up all available options to establish peer-to-peer connections between users: https://stackoverflow.com/a/10837667

Here you can test it yourself with 2 open browser windows, to connect to yourself to send messages peer-to-peer (which of course would also work with another user somewhere else: http://cdn.peerjs.com/demo/chat.html

Based on the assumption above and the implementation of such a chat you basically could send and receive a part of a blockchain and validate it against other parts of the same blockchain stored at other clients etc.

Does anybody see a reasonable potential with this approach?
HeRetiK
Legendary
*
Offline Offline

Activity: 2968
Merit: 2111



View Profile
June 13, 2017, 11:08:21 PM
 #2

Sounds like it could be a fun proof of concept. Security-wise however I assume that such a blockchain could be easily overtaken by a custom WebRTC client that doesn't get bogged down by the browser environment and can use the CPU / GPU more effectively.

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!