BlockPay Engine --- To hell with HTTP, DNS and App Store approval!

in crypto-news •  8 years ago 

Now that the UN has taken over the Internet, I fully expect to see China-style firewalls popping up and extreme censorship globally. We have already seen some App Stores denying crypto-apps and now ISP's are to start blocking "unapproved" crypto. So, a couple months ago, we started a rather large upgrade for all of our apps and modules. Our meshnet friends are working on making the ISP's obsolete, and we are finishing the infrastructure to allow crypto apps to grow and prosper. Decentralization is more than just the nodes, it is the software itself.

#1

We have completed our Proof Of Concept (POC) on using IPFS in BlockPay and our findings are as follows:

If we want to use IPNS, then the IPFS daemon of the source computer should always remain ON. Otherwise it shows “Error: Can't resolve the name.” The process of resolving IPNS is very slow on both PC and android with the daemon as well as the http gateway. Fetching large files (>1MB) from IPFS takes too much time (youtu.be/PiMcZW1sux0) if you force the user to wait. So, we will move this fetching process into the background and give the user the UI so he/she never has to wait for a sync.

Conclusion regarding our IPFS tests are as follows:

A] public_nodes.json (let IPFS keep track of where our global nodes are):

  • We created a json file containing the nodes array on IPFS and successfully used that file in our test app.

B] File which handles the 0.5% network fee:

  • We created a json file containing a fees array on IPFS and successfully used that file in our test app.

C] File which handles the coin logos, coin name, details about the coin, etc.

  • We created a folder on IPFS and put all the coin logos in png format. We also created a json file containing all the coins' info and a separate file that contains all the altcoins' info. This way we managed to remove dependency from our server to fetch the Smartcoins list and from the Bridge server to fetch the current altcoins list.

Now for example, if we need to change the name of any coin, its logo or other static data, then we just need to update 1 file on IPFS and it will be done automatically behind the scenes in all BlockPay distributions.

D] File which handles all connections with coin Bridges:

  • We can only keep the urls of gateways/bridges in an IPFS file. And still it might not work as not all gateway/bridges will have the same api calls. Until we have our own Bridge someday, we will skip this feature for now.

E] Regarding changing the BlockPay layout and color themes through IPFS files:

  • We found that although it is possible to render the layout on runtime from IPFS files, it takes too much time to render via IPFS directly each time, as well as a lot of effort for developing an xml parser. So, these BlockPay screens (home screen, qr code screen, thank you screen, transactions screen, settings screen, etc) will be stored on IPFS as Templates, but we will sync them locally for fast access. Updates to these local files can come on a schedule if the merchant chooses to allow updates.

Instead of storing the entire layout on IPFS, we created a json file that stores static attributes like background color, font color and font size, the messages on the qr code screen, etc. Then we used that file to change the attributes of the layout in our app dynamically from the sync'd local copy. aka: "Sync on Schedule"

F] Regarding changing the text messages:

  • If we change the text on runtime from IPFS files then it will change the text in all languages. However, we cannot pull all of the language files from IPFS each time, as android requires them to be present at compile time. So this file will have to sync locally as well, instead of asking IPFS for the file every time BlockPay is loaded. So we will make the language files also Sync on Schedule.

G] Regarding storing Merchant data (logo, company name, tax rate, address, url, etc):

  • Storing this data on IPFS was not really necessary since this kind of data is not really "permanent", as the merchant may want to update it from time to time, so we have another solution designed for this...

====================================

BlockPay enables any merchant to accept one or more digital currencies at Zero Cost.

====================================

#2

The new BlockPay "Engine" is now being designed.

"Why?"

When we first developed BlockPay, we had no idea so many merchants around the world would contact us and want BlockPay integrated with their existing systems (like vending machines, electric auto charging stations, proprietary Point Of Sale systems, major eCommerce websites, Hotel and Grocery chains, etc). What we quickly realized was that upgrades and new feature integrations for all of those custom systems would be a major pain in the butt. If for example Dash were to change the logo for their coin, we would have to go back and edit countless integrations at every one of those businesses and firmware installs. Relying on Gravatar to serve up the merchant's profile and logo to thousands of customer eReceipts is not future-proofed either. What if a third-party API were to go down? All of these things and a lot more do not allow a piece of software to scale properly, and the risk of one thing going down could take down an entire grocery chain. This is a huge liability. BlockPay cannot rely on third-parties, period.

Sooo, we are decentralizing BlockPay even more now...

IPFS

All BlockPay static components will be hosted from one of our IPFS full-nodes (we have 2 currently, and will add a third full-node in Brazil next month). Static data that rarely changes (coin details, coin logos, merchant logos, template files, language files, public nodes, Bridge data, etc) will be hosted on IPFS and pulled from the nodes upon BlockPay install, or in the background via a local "Sync on Schedule" update.

Bitshares blockchain

The Bitshares blockchain will host basic text for each BlockPay merchant that changes occasionally, such as the merchant address, tax rate, website address, phone number, eReceipt thank you message, BlockPay settings-screen choices, etc. These values will be stored on the blockchain in a single memo field. Here is an example where someone used the blockchain to store text and make it available to the public (like we can do on an eReceipt): cryptofresh.com/u/announce - The text that we will store in the memo field however will be compressed and base58 encoded so that very few bytes will be consumed. The great thing about storing this minimal json data in a memo field for the merchant, is it makes their current info available to all of their customers in the eReceipts. That data will also pre-populate the BlockPay settings screen for the merchant should they ever have to uninstall and reinstall BlockPay in the future, or install BlockPay on additional devices.

This new "1-Step Setup" makes BlockPay even easier than before!

Local files

Upon install or scheduled update, BlockPay can easily grab the latest data from IPFS and the blockchain in the background, and update/sync its local copy. Even the files for the app itself will be served from IPFS/IPNS so that when App Stores start blocking crypto apps (which they already are), BlockPay will still be online and available, no matter what. Also, as we have seen, reliance on a third-party can kill an App, so by taking the time to finish this new Engine for BlockPay, it will make BlockPay (and our Smartcoins Wallet as well) even faster, super-scalable, more decentralized and unstoppable. This new BlockPay Engine should be ready for download by Christmas.

Note: If you are already running BlockPay (Integrated, or "S" versions) you will receive this free upgrade automatically. Your BlockPay Ambassador can show you this as well.

Please Upvote & Share: Decentralization is Freedom :)

.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Great! Resteemed 👍

Thank you so much! :)

What a coincidence that just now the DNS was hijacked over at blockchain.info too. Now you see why I am so paranoid about security!

https://m.reddit.com/r/Bitcoin/comments/573lis/it_looks_like_blockchaininfo_has_been_dns_hijacked/?utm_source=mweb_redirect&compact=true

That was quick. Time for a namecoin backup?

This is the type of forward thinking and DOING that we need!

@kus-knee

  ·  8 years ago (edited)

It's amazing that the DNS system has managed not to have a huge problem up to now, they actually were not doing such a bad job. But now it's going to be a big problem and bind is not going to be the only kid on the block anymore.

Blockchains are going to pop up like mushrooms after heavy rains pretty soon. Centralisation has only just started to show it's weaknesses in network systems.

Yes, decentralisation is freedom!
THat is why we need the SAFE Network
It is the only solution that provides privacy security and freedom, totally deccentralised, from the ground up.
And I believe that it will eventually run a meshnet as well.
Other solutions do not seem as secure by far, and they have difficulty in scaling.

We don't have time to wait around for Maidsafe though. IPFS already does all of those things and more. There are thousands of websites running on IPFS as well (including our own).

As for meshnet, I wish more people knew about openwrt and the standard was to share and relay, as then we could actually dump our ISP's this century :)

The technology for meshnet has been here for a long time but getting people to try it out is a whole different story. It's like NFC vs QR. Not too many people use QR codes (even though they are free) because of the amount of advertising that goes out for all that "wonderful" nfc hardware that they want to sell to merchants.

Lots of words of wisdom in this little article packed with goodness! Thanks a bunch, once again. All for one and one for all! Namaste :)

Wow, this is really fantastic. This kind of stuff made BTS and STEEM what it is today. You're really rolling with it in a new direction. Just today I was thinking about a delicious IPFS Bread and Onion sandwich.

You have meshnet friends! cool..

Brilliant. Thank you for posting. Your first paragraph expressed premise and motive for the work you do.... assisting in establishing a frame of reference for those who are not geared technically yet engaged and able to recogize the danger without being able to provide solutions. All the best to you and your endeavors. Cheers.

There are thousands of small-business ISPs around the world who could form the backbone of a new decentralized Internet. They're known as WISPs (Wireless ISPs) and are on the verge of outcompeting the big corporate networks. I wrote an article about this a few months ago - https://steemit.com/networking/@daowisp/building-the-infrastructure-of-decentralized-civilization
I know that here at the network I operate, I'm eager to support Blockpay (IPFS Node) and other crypto projects on a local, close-to-customers scale.

WOW!! I am HUGE into meshnet, thank you so much for posting about WISP's. I have upvoted you and Followed you (I do not typically follow anyone). Great work, please keep the WISP articles and how-to's coming!! :)

UPVOTED

Hey Ken, thanks! Finally back on steemit, had a massive rush of new customers sign up and we're a 2-man show, gotta focus on the main biz sometimes!

Noticed you over on VIVA too. Lots going on right now in crypto-frontier-land.

  ·  8 years ago (edited)

That's really AWESOME!Fly over the Great Firewall :-)
Fantastic job!

Love it! Resteemed :)

Top Post
Congratulations. Your post received the most upvotes yesterday.

https://steemit.com/stats/@steempowerwhale/key-stats-for-authors-wednesday-october-12-2016

Thanks, upvoted and followed. You are doing great job in Muenchen, I am confident the ICO goes well.

Ken your work is awesome.

Can we set up a phone call to discuss points of integration?

Very cool @kencode ! I have seen you have a partnership with cryptobuyer.io in Venezuela? Is that correct?

I know Rodrigo (our CMO) has quite a few BlockPay Ambassadors out there in Venezuela, Colombia and other economy-is-in-freefall countries, but you'd have to ask him ([email protected]). It's pretty awesome that people are discovering BlockPay now and seeing its real potential. IMO, BlockPay rollouts can literally save lives.

Thanks for posting this.

Thanx for reading it. Most people just gloss over this stuff, but our Internet is under fire, as well as our economies, and lives. We have to build as fast as possible now, render the old dinosaur systems obsolete. This has got to be a primary reason why BlockPay is getting so popular in places like Venezuela now, they are desperate for real change. I feel like the proverbial chicken with head cut off, the sky really is falling..

This post has been linked to from another place on Steem.

Learn more about linkback bot v0.4. Upvote if you want the bot to continue posting linkbacks for your posts. Flag if otherwise.

Built by @ontofractal

Ken,

This sounds absolutely great. I want to talk with you about using the BlockPay API in web applications.

[email protected]