BlockChain Framework in Live Code

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

BlockChain Framework in Live Code

Postby pkmittal » Wed Sep 06, 2017 11:24 am

Hi, I have been exploring BlockChain since last few months and I found it very interesting. Because of peer to peer nature of the app, even desktop/mobile based app could go very well for block chain solutions.

Most of the block chain platform are open source, and some of those licenses allow you to use and modify the source code for your own applications.

Is there any one who has tried to create blockchain framework using LiveCode ? Are there any commercial livecode library which I can purchase for experimenting with block chain? I would be very much interested.

Please let me know..

Thanks
pkm
pkmittal
 
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am

Re: BlockChain Framework in Live Code

Postby Klaus » Wed Sep 06, 2017 1:08 pm

A bit ore info might help!
Are you talking about this one: https://blockchain.info?
Klaus
 
Posts: 9493
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany

Re: BlockChain Framework in Live Code

Postby pkmittal » Wed Sep 06, 2017 2:20 pm

Klaus, Thanks for your prompt response.

I am looking for block chain framework in live code, which could have all the basic features of blockchain. There are many of the block chains available for example Etherum is one of them.

Etherum is a block chain framework which allows you to develop decentralized peer to peer application
https://www.ethereum.org/

You can read more about block chain from here..
https://www.ibm.com/blockchain/

Do let me know if you need more info..
Thanks
pkmittal
 
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am

Re: BlockChain Framework in Live Code

Postby Klaus » Wed Sep 06, 2017 3:36 pm

pkmittal wrote:Do let me know if you need more info...

That was only for other people who might have an idea about this stuff, which I do not have. :D
Klaus
 
Posts: 9493
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany

Re: BlockChain Framework in Live Code

Postby FourthWorld » Wed Sep 06, 2017 3:40 pm

I'm not aware of a library for blockchains, though I have seen this question twice before. It's a deep subject, with a vast range of possibilities. Can you describe what you'd like to do with blockchains in LiveCode?
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 5305
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles

Re: BlockChain Framework in Live Code

Postby pkmittal » Wed Sep 06, 2017 3:56 pm

Thanks, I would like to explore how we could have decentralized way of managing records , building smart contracts which can execute set of processes automatically

To start with you may want to look into the video which explains more about block chain and its features.
https://www.youtube.com/watch?v=_160oMzblY8

I have already found the libary to build SH 256 Hash but i am lookking for complete block chain framework which can have list of features shown in video and highly scalable way of managing and doing a transaction..
Last edited by pkmittal on Wed Sep 06, 2017 4:04 pm, edited 1 time in total.
pkmittal
 
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am

Re: BlockChain Framework in Live Code

Postby pkmittal » Wed Sep 06, 2017 3:59 pm

you can also look into few lines of code written in java script to explain some of the basic features of block chain..

https://medium.com/@lhartikk/a-blockcha ... 3cc1cc0e54
pkmittal
 
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am

Re: BlockChain Framework in Live Code

Postby FourthWorld » Wed Sep 06, 2017 5:14 pm

Those are helpful resources for learning general concepts about blockchains, and the web has many more. I'm not a blockchain expert, and given enough time I could become one, but my interests and client needs are currently too varied to allow that right now.

My aim here is to see if I can lend my LiveCode experience to help lead you to a solution for the thing you want to build, which for production-quality work will likely involve more interfacing with existing industry-standard libraries than rolling your own from scratch.

The JS lib you linked to seems a good example. Named "NaiveChain", it appears to be an isolated example to teach blockchain concepts, but doesn't appear to be a substitute for a robust library that can work with established blockchains. It also appears to be dependent on P2P, which would make it problematic to work with on many well-managed networks.

If your goal at the moment is to learn blockchain concepts, translating the NaiveChain lib may be a good starting point. But if the goal is to participate in established blockchains, it may be good to rely as much as possible on existing proven code (like the old saying goes, "Never roll your own security"). In some cases that code may be addressable via the command line, so one could build a UI in LC using shell calls for the heavy lifting. In other cases you may need to work with C-based libraries, which you could address with LiveCode Builder's Foreign Function Interface.

These articles outline some of the challenges with keeping blockchains secure and robust:

How Safe Are Blockchains? It Depends.
https://hbr.org/2017/03/how-safe-are-bl ... it-depends

Does Blockchain Tech Solve Security Problems or Cause New Ones?
https://www.americanbanker.com/news/doe ... e-new-ones

Cyber attacks raise questions about blockchain security
https://www.ft.com/content/05b5efa4-738 ... 72cdb1043a

Given that blockchains are most commonly used for financial or other transactions of high value, the more one can rely on established code the better for all participants in the chain.

That's why my aim has been to try to understand the specific goals of your app. Blockchain implementations involve such a wide range of elements that I wouldn't imagine many are written by a solo dev (except of course "Satoshi Nakamoto", but even if that pseudonym is for a single person he's clearly in a class by himself <g>).

PS: LC v9 now supports SHA2 and SHA3 in the new messageDigest function. Being engine-based they'll be much more efficient than the Smith scripted library.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 5305
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles

Re: BlockChain Framework in Live Code

Postby ClipArtGuy » Wed Sep 06, 2017 6:08 pm

I've used LC as a "roll your own" front end for my bitcoin node, and also LC server scripts (in combination with some PHP) to communicate with my node for the purpose of storing hashes in the bitcoin blockchain via OP_RETURN for proof of existence from a website (which these days is frowned upon due to the ever increasing size of the blockchain). If your goal is to create a brand new cryptocurrency/blockchain from the ground up natively in LiveCode, It may be possible, but would take a massive amount of time and work. Security is also a major concern, and as we've seen with the DAO hack, "smart" contracts can turn out to be anything but. I think using existing blockchains and frameworks would be far safer (and orders of magnitude easier) than trying to build something totally new in LiveCode. That being said, if you do decide to build a new cryptocurrency/blockchain using LiveCode, please share your progress with the forum, I'd love to see something like this take shape, but the mere idea of it is overwhelming to a simple hobbyist such as myself.
ClipArtGuy
 
Posts: 84
Joined: Wed Aug 19, 2015 4:29 pm

Re: BlockChain Framework in Live Code

Postby pkmittal » Thu Sep 07, 2017 1:12 am

Thanks for sharing the link and useful insights. My Goal is NOT to create any currency like bitcoin but to design and develop a POC for re-imagining loyalty program.

The idea is to demonstrate interoperability for different Loyalty Management System, creation, issuance and redemption and trading of loyalty points.
To know more, you can explore white paper published by deloitte
https://www.finextra.com/finextra-downl ... ograms.pdf

I would like to explore some commercial library/framework for peer to peer distributed database for developing the concept shown in the white paper.
pkmittal
 
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am

Re: BlockChain Framework in Live Code

Postby ClipArtGuy » Thu Sep 07, 2017 2:57 am

Have you looked into the counterparty platform? It seems like it could be a good fit.

https://counterparty.io
ClipArtGuy
 
Posts: 84
Joined: Wed Aug 19, 2015 4:29 pm

Re: BlockChain Framework in Live Code

Postby FourthWorld » Thu Sep 07, 2017 3:09 am

I'm impressed with your thinking, pkmittal. Maybe a translation of that JS library wouldn't be a bad place to start for something like that (sans the P2P part).

Hopefully others with similar interests will chime in here. I'll drop a note about this thread to a friend who's expressed an interest in blockchains. Maybe some good brainstorming here can produce a great library.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 5305
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles

Re: BlockChain Framework in Live Code

Postby pkmittal » Thu Sep 07, 2017 11:25 am

Thanks Fourthworld, I am evaluating what it would take to implement basic features of BlockChain in liveCode and will keep the community updated and connect for the required support.

By the way, Do we have any sample stack code which demonstrate how to implements a class? For example class can have variables, functions, function modifiers, events, structures, and enums, inheritence and ploymorphism? and how do we dynamically create instance of class?

Can card be considered as a Class? But then how do we create instance of it so that it can contain multiple objects?

What is the substitute of Java Type Class in LiveCode?
pkmittal
 
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am

Re: BlockChain Framework in Live Code

Postby pkmittal » Thu Sep 07, 2017 11:51 am

I have got the answer..
http://newsletters.livecode.com/novembe ... etter2.php

LiveCode is really powerful :-)
pkmittal
 
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am

Re: BlockChain Framework in Live Code

Postby makeshyft » Sun Sep 10, 2017 5:38 am

BigChain Server ---- via HTTP API ..

http://www.bigchain.com

i love the idea of building on in LC.... but when tech like that is available.....I can't get myself to try to build it.
Tom @
http://www.makeshyft.com
---------------------------------
Changing the Future, Today!
makeshyft
 
Posts: 185
Joined: Mon Apr 15, 2013 4:41 am


Return to Getting Started with LiveCode - Experienced Developers

Who is online

Users browsing this forum: No registered users and 2 guests