I’m delivering two talks at Microsoft Ignite Australia on Blockchain development

I’m excited to be delivering 2 talks at Microsoft Ignite Australia this year, both of them are on Blockchain development. I’ll be able to share my experience so far with developing solutions on the Blockchain with some of our customers.

Blockchain 101 & Azure Blockchain as a Service

https://msftignite.com.au/sessions/session-details/2485/blockchain-101-azure-blockchain-as-a-service-cld213
You keep hearing about the Blockchain, but do you really understand what it is, and the potential impact it will have on practically all industries? Join us as we cover: What the Blockchain is, Some scenarios showing potential use cases to put it into context, and then how Azure Blockchain as a Service can help you get started today.

Blockchain Development on Azure Blockchain as a Service

https://msftignite.com.au/sessions/session-details/2484/blockchain-development-on-azure-blockchain-as-a-service-cld424
This deep dive session will show the frameworks and tools you can start using today to develop Blockchain based applications and smart contracts. Then how to use the Azure Blockchain as a Service to configure a private consortium, or development Blockchain environment. This is a level 400 session, it is HIGHLY recommended that you attend the Blockchain 101 session before this. I’ll be utilising the Truffle framework http://truffleframework.com/

 

 

Ethereum DevOps with Truffle, TestRPC & Visual Studio Team Services

I have been working on automating the compilation and testing of Ethereum solidity contracts, via the use of Truffle. I’ve got the test results being published back into the portal, allowing me to see on each commit if my code still compiles and passes my tests.

image

I’m assuming you already have a Truffle project locally that you want to automate the continuous builds & testing on. Follow my tutorial on installing Truffle & TestRPC on Windows.

My final system will allow you to run “truffle test” locally to see standard test output, but will modify the test runner on the server to output it as JUnit format.

The Build system

The system uses the Visual Studio Team Services (VSTS) build engine to automate this. You can sign up for free, and get unlimited private Git repos.
You can have the code hosted on any Git provider. So either within VSTS itself, or GitHub, BitBucket, etc.

Prepare truffle.js

A pre-step is to define the  test section in the truffle.js file

mocha: {
reporter: “spec”,
reporterOptions: {
mochaFile: ‘junitresults.xml’
}
}

image

Create a build agent

VSTS does provide hosted build agents, which are generic and can build standard .Net projects, Xamarin, etc. But because we are going to use npm packages installed globally on the box to handle the Truffle builds

  • Create a new Windows VM (Can be your own hosted server, or Azure).
    e.g. Windows Server 2016 Datacentre edition on Azure
  • Install the VSTS build agent. Instructions at https://www.visualstudio.com/en-us/docs/build/admin/agents/v2-windows
    Note: DON’T select to run service as NT AUTHORITY\NETWORK, this will not work with TestRPC (needs to open ports).
    Run the service as another user, or NT AUTHORITY\SYSTEM
  • Install chocolatey
    https://chocolatey.org/install
  • Install these chocolatey packages
    • choco install git -y
    • choco install nodejs.install –
  • Install npm packages (make sure you open a new PowerShell window so that node is in your path)
    • npm install -g npm
    • npm install -g –production windows-build-tools
    • npm install -g ethereumjs-testrpc
    • npm install -g truffle
    • npm install -g mocha
    • npm install -g mocha-junit-reporter
  • Restart the build agent so that all new paths are working

Configure VSTS build

    • Create a new variable with the path to where the npm global path is, for the user you installed the npm packages on above
      variable name: npm.path
      variable value: path to npm packages e.g. C:\Users\<user>\AppData\Roaming\npm
      image
    • Add 7 PowerShell tasks, and configure them like this
      • Name: System version information
        Script:
        #Setting environment paths
        $ENV:Path = $ENV:Path + “;” + $env:npm_path
        npm config set prefix $env:npm_path    #only needs to be set once, will update for user
        #DEBUG
        #$env:path
        #npm list -g –depth=0
        #Display system information
        Write-Host “System version information”
        Write-Host -nonewline    “node version: ” ; node -v
        Write-Host -nonewline    “npm version: “; npm -v
        Write-Host -nonewline    “npm prefix: “;  npm prefix -g
        Write-Host -nonewline    “truffle: ” ;    truffle version
        image
    • Name: Config transform & test clean
      Script:
      # remove old test results
      rm .\junitresults.xml -ea SilentlyContinue
       

      # Modify the Truffle test runner to use the JUnit reporter
      Rename-Item .\truffle.js .\truffle_temp.js
      cat .\truffle_temp.js | % { $_ -replace ‘reporter: “spec”‘, ‘reporter: “mocha-junit-reporter”‘ } | Out-File -Encoding ASCII .\truffle.js
      rm .\truffle_temp.js
      image

    • Name: Truffle build
      Script:
      #Setting environment paths
      $ENV:Path = $ENV:Path + “;” + $env:npm_path
      #Truffle build
      truffle compile
      image
    • Name: Launch TestRPC
      Script:
      #Setting environment paths
      $ENV:Path = $ENV:Path + “;” + $env:npm_path
      # launch the process
      echo “launching TestRPC”
      $testrpcProcess = Start-Process testrpc -passthru
      # persist the PID to disk and display in logs
      $testrpcProcess.Id | Export-CliXml testrpcPID.xml
      cat testrpcPID.xml

      image

    • Name: Run Truffle tests
      Script:
      #Setting environment paths
      $ENV:Path = $ENV:Path + “;” + $env:npm_path
      # Run the tests
      truffle test
      image
    • Name: Shutdown TestRPC
      Other Settings: Enable “Always Run” (to make sure it is shutdown if there is an error)
      Script:
      #Setting environment paths
      $ENV:Path = $ENV:Path + “;” + $env:npm_path
      # retrieve the PID and kill the entire processs tree
      cat testrpcPID.xml
      $testrpcPID = Import-CliXml testrpcPID.xml
      taskkill /pid $testrpcPID /F /T
      image
  • Add a new Publish test result
    • Test Result Format: JUnit
      Test Result Files: junitresults.xml
      image

 

Future work

Things that I would like to add in the future:

  • Figure out how to automate this on a Linux build agent (VSTS supports both Windows & Linux based build agents)
  • Automate Release Management to run “truffle migrate” to push to a Bletchley test environment

Configuring Visual Studio code for Ethereum Blockchain development

Visual Studio code is a great tool for editing Solidity smart contracts, and is available on Windows, Mac & Linux. There is a great plugin that enables Syntax highlighting, snippets, and compiling of the current contract (if you aren’t using an external tool) https://github.com/juanfranblanco/vscode-solidity/

This configuration works really well with Truffle (as shown in the final screenshot). You can read how to install Truffle on Windows in my previous post https://davidburela.wordpress.com/2016/11/18/how-to-install-truffle-testrpc-on-windows-for-blockchain-development/

Step 1: Install Visual Studio code
https://code.visualstudio.com/

Easy option on Windows: Just install via https://chocolatey.org/ by using the command
choco install VisualstudioCode –y

Step 2: Install Visual Studio extensions
Go into the extensions section, then install these plugins:

  • solidity
  • Material Icon Theme

image

Step 3: Enable icon theme
File –> Preferences –> File Icon Themeimage

Final result: Sexy workspace
image

How to install Truffle & TestRPC on Windows for Blockchain development

I have been doing a bunch of Blockchain development work, one of which was recently featured on the front page of the Australian Financial Review and on Microsoft’s news website.

One of the trickiest things has been trying to get Windows environments correctly configured, as the tools are npm based and want to be compiled natively and assumes it is on a Linux machine. Here is the simplest install script I have found

Step 0. Pre-step:

Step 1. Install windows tools with chocolatey:
Open a PowerShell prompt as Administrator

image

Step 2. Install the tools via npm:
Open a NEW PowerShell prompt as Administrator (to ensure that it reloads )

  • npm install -g npm
  • npm install -g –production windows-build-tools
  • npm install -g ethereumjs-testrpc
  • npm install -g truffle

You may see some error messages during npm installs. Many of these are just informational / optional components failing. You can test that it is all working by trying to run the commands truffle and testrpc.
imageimage

 

Bonus Step: combining with Visual Studio Code
This is how I use Truffle & Visual Studio code together. Make sure you install and configure Visual Studio Code with the Solidity extensions.
If you navigate into the folder where your files are, typing “code .” will open Visual Studio Code in the current folder. Running the command after a truffle init gets you up and running quickly

image
image

Blockchain summit report: Day 2

Final day. I’m tired from 6 days of sessions, and many of the sessions today were more high level “we are a bank / enterprise that are looking into what the cloud can do for us”. So I skipped taking notes for a lot of them.

Sessions

Factom. Blockchain Technology tools for net gen asset systems
Most of old asset records are paper based, difficult to update.
Databases are too easy to modify. Blockchain is a happy medium.

They have a way to do document tracking on Blockchain.

Zcash
Issue is privacy on the Blockchain. It is a giant shared database, everyone can see what you are transacting. Like trading securities.
Possible solutions: Private chain, restricted read access.

Could try to do it off chain and put hash on chain, but then the blockchain is just a timestamping service.
Encryption can hide the values, but not the people.
Ring encryption can hide the people.

Zero-knowledge security layer. Enables private transactions. Supports “Selective disclosure”.

What the 2 parties see: Alice sells 1,0000 MSFT to Bob at USD 97.123

What the trade repository aggregator sees (selective disclosure): <blank> sells 1,0000 MSFT to <blank> at USD 97.123

What everyone else sees: <blank> sells <blank>  to <blank> at <blank>

Internet has a security encryption layer (SSL).  Cryptography (SSL) was required to let the Internet grow.
Blockchain needs a security layer (ZK security layer)

Plans on releasing their zCash Blockchain on Oct 28

Bloq
http://bloq.com/
Bringing Enterprise to Blockchain
Trying to be like Redhat for Blockchain. Enterprise support 24/7, security fixes, monthly subscription.

“Blockchain operating system”. On-premises software stack.

Open Bazaar
https://openbazaar.org/
Open distributed trade market. With no fees.
Ebay & Taobao are C2C (Consumer to Consumer) trade platforms.
Has an escrow style payment system. Buyer puts money into escrow, merchant sends, buyer releases from escrow.

Ebay is completely centralised. Every communication goes through Ebay and you pay them for the privilege.
Open Bazaar is distributed, you talk direct to each other.

Challenges of Building Decentralised markets: P2P software more complex than standard websites. Designing incentives to encourage users to act responsibly. Ensuring software is secure & reliable. Translate difficult tech into mainstream user experience.

Benefits of buying & selling on OpenBazaar: sell ANYTHING you want, anywhere (some things just aren’t available for purchase in that country). No buyer or seller fees. No data collection by 3rd parties. No restrictions on how you operate your business. Market of moderators that compete to provide quality dispute resolution.

Can purchase weird things like hot sauce, and North Korean cigarettes.

Version 2.0, you can purchase digitital goods (music, videos) and get it delivered instantly. Great for sellers as they will get to keep all the revenue, and not lose the 30% cut that iTunes takes.

Chronicaled
A turnkey solution to securely connect physical goods to a Blockchain.
Blockchain benefits for IoT are incresingly recognized by developers and enterprise, and hundres of potential physical world use cases have been identitifed.
The lack of a turnkey solutoin to securely connect and engage with assets with assets on chain is a huge barrier to development.

Turnkey solution: Ethereum smart contracts. BLE & NFS microchip inventory. Custom, secure chip firmware. Registration & authentication SDK. Open registry explorer. Tamperproof form factors so people can’t functionally remove the chip.
Device sends a challenge to the chip. Private key securely stored in the chip signs the challenge.
Signed challenge is compared to public key stored on Blockchain.
Has an open registry explorer (blockchain explorer)

Use cases: Authenticity & provenance. Handbags, fine art, wine, collectible sneakers, event ticketing.
Atomic financial transactions. New sharing economies. Micro & peer to peer insurance. Collateral & security. Physical world affiliate networks.
Machine to Machine interaction. Drone with a chip flies to a garage, it is recognised as being whitelisted, the garage door opens.

Everledger
Provenance means “the history of something”. It’s life story. Is very important for luxury items like artwork.
You may have the expensive thing, but may have misplaced the certificate of authenticity.
Digital global ledger to track items of value.
Currently tacking diamonds (write its unique dimensions, physical properties, faults, etc. gives it a unique ID).
Later if they are stolen and tried to be sold elsewhere, then can grab them.
Currently 98,000 diamonds tracked on their Blockchain.

Can track provenance to track origins of rough diamonds, through to polished stone. To ensure that they don’t come from conflict areas.
Can have IoT enabled diamond analysis devices, that can auto get the properties and look up its authenticity in the Blockchain.

Augur
http://Augur.net
Prediction platform built on Ethereum.

Would be cool to ask Siri/Cortana a generic question like “who will win the US presidential candidate will win the US presidency?”.
Predication market works by creating a market on a question. You purchase a share in the prediction, then if you predicted correctly, you get your share of the pool.
“wisdom of the crowd”. The average answer that comes out of a crowd is usually consistently better than an expert.

Stellar
International remittances of money transfers are expensive, with long delays. Legacy payment systems are expensive, complicated and slow.

Used to be unreliable to send email to each other, needed to manually specify routes. But SMTP made it a simple open protocol that anyone could use. Why hasn’t this been adopted for payments?

Bitcoin allowed sending money as a single network.
They want Stellar to be the protocol to send money from any 2 points, through any payment network. Like Alice pays Bob, but it goes through Bitcoin network, through Dash, then pays Bob in Doge.

Blockchain summit report: Day 1 – “Enterprise cloud”

 

Event details

Today was day 1 of the 2 day “International Blockchain summit” presentations.
On every seat was a little bag that had 3 books about the Blockchain! Unfortunately they were all in Chinese.

free books.jpgfree book 1.jpg

Presentations summary

Whereas DEVCON2 was all about development, and leveraging the network effects of leveraging other projects in the ecosystem, the presentations today were VERY high level talks.

There was a massive stark difference between “the old guard” in the Fintech space, and the disruptors that are shaking things up.

Take a look at the BOC (Bank of China) and ChinaLedger presentations. They talk about how Distributed computing is dangerous. ChinaLedger go on to say that they need the power to be able to go in and halt transactions, modify smart contracts on the fly, liquidate accounts when they need. While also saying that they will make sure they will do everything to help privacy and use encryption… which only the Government can unlock (“Golden keys”?). It was the most centralised “Blockchain” I have ever heard of.

On the flip side I was inspired by the forward thinking of the Consensys presentation, and their long term vision for where to drive the Ethereum platform. They are helping to create open tools and platforms that will be leveragable by a multitude of projects (as demonstrated with Ujo and BHP project “Rai stones”).

consensys ecosystem.jpg
The Consensys ecosystem

After the Consensys presentation, my 2nd favourite presentation was by Wanxiang labs “10 years to build a city”, talking about how they plan on taking some land and creating from scratch a smart city powered by the blockchain and electric vehicles.  While the other old guard are squabbling about how it is going to impact their “business as usual” profits, there were the new projects out there envisioning and disrupting.

The BHP presentation was also pretty cool, a great implemenation of using Blockchain to improve a business process.

Presentations

New Finance: Technical & Legal rules – BoC
He is from bank of China.
Entire presentation was him being scared and trying to justify why current Blockchain tech is an unregulated wasteland, and why there needs to be regulation from banks and government.

For Fintech they think Blockchain will not be successful without proper regulations
Blockchain finance – it is distributed.
Storing all of the transactions will take a lot of storage space. What to do once the transaction rates exceed what can be processed.
Thinks that public distributed transactions will not be more than a toy like with Bitcoin. For real FinTech they need something different for a high frequency.
Thinks that decentralisation should not be the core feature of Blockchains (due to transaction limit).
Thinks it should be decentralised, not distributed.

Should be done with private consortiums.
Needs legal rules and technical rules.
They think that self rulemaking currencies (Bitcoin) can not be regulated. So need to stop them, to prevent bad things like money laundering. This is showing the loopholes brought about by Bitcoin.
So when using digital currencies, they need certifications and tracking.

“We need more regulations and rules to facilitate the healthy development of this space. Only with support of regulations can new technology take off”.

Me: I totally disagree… (if not already apparent)

Blockchain futures & realities – CSDC
China Securities Depository and clearinghouse

He was much more open minded and forward looking. Is a pep talk for “things are going to change”, how are we going to use these new things. He said that he recorded it into English that should be able to be downloaded, would be worth watching if you are into this space.

Summary: Genie is out of the bottle, we need to embrace this and think how we are going to put the requirements of securities (“real name transactions”) in a decentralised way. And the registration and tracking of assets to real names.

People have ideals because they are not happy with reality. Due to this dissatisfaction, people are passionate about trying to make that dream a reality.
Need to play by the rules, or the market will be chaos. So now we have facilities law, regulations, etc. This forms the framework of China economic. This is very different from Blockchain. This is at odds to the distributed systems.
Seems like we are dissatisfied with this, so trying to reconcile these differences.

All securities transactions need to follow “real name” transactions, but want to do this in a decentralised manner.
Market cap is 54 trillion (of something in China).
GDP is over 70 million

They are researching Blockchain, but not just in the lab. Need to find potential applications and use cases for it. If we want to implement Blockchain technologies, we need to see what the hurdles will be, so we can get closer to the ideal.
As BoC speaker said, the number of transactions per seconds is HUGE. Daily may reach 10s of millions at its peak. How are we going to handle this with a theoretical framework.
Need to start from the reality of China. And the reality is it is a giant country with a huge population, which depends on the capital market. If you just implement within a lab it is okay. But if it is going to be put into the industry, then we need to work with the government. We can’t just get rid of the government, it is impossible (REVOLUTION!!). So need to focus on key senarios to tackle, as you can’t just apply Blockchain everywhere simultaneously. Or all your efforts will fruitless.
How to complement it initially, not replace it.

Ten years efforts to build a city (Wanxiang Labs)
Me: I reallly liked this presentation. I’ve been keeping notes for months around building this type of innovative city in Australia. I plan on rewatching this one again later.

Going to build a city in 10 years. An energy gathering city in HangZhou 10KM2.
Their US company is starting to build new energy vehicle.
900m RMB? 90k people.
Deploy the city into the cloud. Intelligent life, traffic & services. Everything will be connected. IoT, Internet, smart living, smart transport.
Once this is successful, they plan on launching it across the world. Will publish their learnings.
Launching incubators and accelerators. Their own cloud Blockchain as a Service.
Many scenarios in this smart city that could utilise Blockchain. Distribution for Solar power. ID & Vehicle registration. Intelligent community services.
Can promote a sharing economy throughout the community.
Partnering with Microsoft, IBM, Consensys, Ethereum foundation, WeBank, AliCloud

Vitalik Buterin keynote
Talking of the progress China has made in Blockchain innovation in such a short period of time. He visited China 3 years ago and visited a number of Bitcoin companies and was impressed on the scale of what China had, much more than what was happening in USA.
But all the focus was just on cryptocurrencies, not Blockchain technologies, Just mining.
2nd time, he saw some kind of experimentation happening with interesting things (like coloured coins?)
3rd time saw more interest in Blockchains.
4th? time, he did a hackathon with Wanxiang labs (event sponsor), and there were ~30 projects. The growth since then has been rapidly growing. The scale of projects we couldn’t have imagined 3 years ago. Was just theoretical, now a lot of ideas are almost reality. e.g. Self-sovereign identity, instant settlement.

Hyperledger
https://www.hyperledger.org/
Goals. Build an opensource dev focused community of communities to build a hyperledger based solution. Create a family of “etnerprise grade” open source blockchain framework, platform & libraries.

Because it is an enterprise opensource project, they need to track contributions, patent details, etc. Is part of the Linux Foundation, which has 16 years of providing governance stucture support for major open source projects.
80 project partners. IBM, Intel, Accenture, JP Morgan, Airbus, ANZ bank, Cisco, etc.
20 of the 80 project partners, are based in China. Apache license v2.

A world or many chains. There will not be only one blockchain. There will be many public chians and millions of private chains. Each may use different consensus mechanisms.

 

Major projects are:
Fabric: Developed by IBM. PBFT, moving to Raft and other pluggable consensus mechanisms. Written in Go.
Sawtooth Lake: Proof of Elapsed Time. Runs on secure enclaves. Written in Python.
Hyperledger explorer: GUI for navigating Fabric & swatooth lake.
Fabric-py SDK. (Java proposed later).

Future:
Smart contract engines.  Portable identities.
Will never see a “HyperCoin”. It is about making Hyperledger a standard, and a governance group.

IBM keynote – IBM Blockchain & Hyperledger
Today if you want to do something in your business on Blockchain it is difficult. Hard to scale, issues with privacy.
No Enterprise support.
Need tools to write tests for smart contracts. Need good solution patterns.
Difficult to scale up, especially around transaction rates.

Built Fabric to support “serious business”
Permissioned blockchains can’t scale. Every node shouldn’t execute every transaction.
The 2 peers that are interacting are the only ones that should execute.
IBM has implemented this internally to resolve invoice disputes with their suppliers.

IBM
All the slides were in Chinese. Difficult to follow unfortuantely.
The (original) Silk Road was important for trade. Blockchain may be just as important for trade in the future
People are debating the need of distributed systems being  an important thing of Blockchains, is it really necessiary? Blockchain should instead be focused on unblocking instead.
IBM will provide an IBM certified docker container.
IBM Blockchain. http://www-31.ibm.com/ibm/cn/blockchain/index.html
Has a concept of a “shadow chain”?

Blockchain Platform @ Microsoft (Bletchley)

At Devcon1 Microsoft announced Blockchain as a Service. Rolled out DevTest Labs to allow you to spin up public, private, permissioned, and consotrium blockchians quickly. Provisoin with 1 click. Mix & match from best available blockchain tech.

Bletchley: Open infrastructure, Enterprise capabilities.
Microsoft is not building their own Blockchain.

Blockchain has some missing parts (identity, privacy, key management lifecycle, tools). Asked our partners what are the missing parts.
A database in itself isn’t an application.

(re)Announcing: Bletchley v1.
2 parts. Distributed infrastructure layer (Blockapps, R3, bitpay, parity, Eris). There isn’t going to be 1 Blockchain to rule them all, so allow you to leverage any of them.
Lots of customers were taking a long time trying to spin up private consortiums, and trying to secure them correctly. Used to take 3 weeks, now down to 8 questions and 5 minutes. Spins up a private Ethereum consortium. 4-100s of nodes.

Distributed middleware “fabric” layer. Tools that can work across many blockchain technologies.
Cryptlets are a way of doing offchain processing. Receive market data based on an event (market price daily closing, CRM event).
Need to have trusted execution of the logic, to attest that it was not tampered with.
Secure IP protected algorithms. Scale an algorithm for max performance by running it off blockchain in a secure & attested way in the cloud.
Oracles may be malicious, or they may be intercepted during transmission.
Cryptlets run on a secure host with a secure communication channel in a trust envelope.
Marketplace for publishing the cryptlets into a market for others to consume.
Azure cloud is twice the size of Amazon & Google COMBINED.

Bletchley Cryptlet Fabric. Supports Ethereum, will support more Blockchains. It is middleware that will support many.
Secure execution on demand. Standard way of publishing and accessing external resources.

BaaS roadmap.
DevTest labs, will continue to onboard more.
Bletchley v1.
Kinakuta to help improve security.
Bletchley SDK

Longer range implications of Ethereum & other decentralising technologies (Consensys)
LOVED this presentation.

Simplest view: Next gen database. Blockchain based, maximal replication,  Prevents rogue actors
Force for universal disintermediation, will distrupt every industry.
Previously it was mostly just Bitcoin. Future projects were “BitCoin 2.0”, instead of “Blockchain 2.0”.
So Ethereum project built the most powerful and capable Blockchain platform, both public (permisionless) and private (permissioned)
Deeply secure, non-repudiable shared source of truth.
Dapp is a set of smart contracts. And a user interface to interact with it.
Was important to get an initial version of Ethereum out into the hands of devs, to start thinking how to start building decentralised applications.
Ethereum has a vision for scalability, which includes sharding and state channels.
Privacy, state channels is one option. Zcash/zk-Snarks is another way.

Currently building out an ecosystem of decentralised applications.
Building core components: Identity/persona (uPort, metamask). Wallet (uPort wallet). Registries (Regis, ENS). Token Factory.
Do private enterprise Blockchains make sense? Yes, large entities can have a complex internal mix of business units, having a shared source of truth can help.
If enterprises have their own private consortium Blockchains, will be a harder target to infiltrate and modify databases.
Business processes emboided as state transition graphs.

If you plan on building your own tools or technology on top of Blockchain tech (public or private), build it on Ethereum so it can be reused in many different places by other entities running their private chains
Developed “Balance” for real time compliance, accounting auditing and monitoring. Real time dashboard for companies & regulators. Organisations using certified software wil not be able to break or bend any financial accounting rules.

The Blockchain will last for years or decades giving a persistent database. Gives a chance to do persistent portable identity. uPort self-sovereign identity.

Blockapps Announcement
Is Ethereum for Enterprise.
Partnered with Microsoft to announce Blockchain as a Service (BaaS). Over 1k projects have used it, over 300 customers.
Being released in Azure China datacentre (mooncake), and other Chinese clouds : Alibaba cloud, tencent cloud, Wancloud.
Initial China projects: Minsheng insurance, Wanxiang smart city, Qianhai smart city, Shanghai smart city.
China is going to be the country leading the world in Blockchain projects.

The Rise of Blockchain Consortia: Uniting the Banking World
One of the largest banks in Spain.
Banks are just a ledger (a very large ledger).
Each bank has its own ledger. They don’t trust each others. Which is why you need clearing houses and things like this.
What if there was a shared ledger trusted by all banks. “It’s not about the coin, its about the ledger.

New development of ChinaLedger: Forging a powerful tool for Chinese capital market in the FinTech era
Was literally the most centralised blockchain I have ever heard of. Please excuse me as I rant inline.

ChinaLedger is a consortium.
11 founders established it. Chinese financial institutions and Wanxiang labs.
“we created our own Blockchain and tools”.
Will come up with their own custom software and implementation. Will create a whitepaper and create reference architecture.
Partners will use the network to do transactions.
Need facilities to be able to freeze or take over acounts, and get access to all data. A need to be able to halt or freeze a transaction or smart contract. A need to be able to halt or freeze a transaction or smart contract. and the facility to liquidate an account or smart conract or manually change the state of a smart contract
We need to be able to stop the trading of certain stocks. Let regulators control things.
Will be fully in control of the gas.
Wants to support 100k/s and 1 ms latency.

Then ironically says tries to say they are going to put privacy into this. “Everything will be encrypted and private. Except that CCP & regulators who will have ability to read everything”. I’m SURE that won’t be abused…

you keep using that word.jpg
Blockchain, distributed ledger, privacy, encryption

 

Re-imagining Global Payments (For business)
Banks make a LOT of money from bank wires. So they have no incentive to come up with anything better.
The person sending the money needs to give 26 pieces of information. Don’t know when you’ll get the money, what the rate will be.
About $20 to send, $20 to receive, plus lose a few percentage through the conversion.

Their solution (for business payments). Register for an account, can use online. No fees. Transparent FX rate. Can track the payment. Uses Bitcoin in the middle.
Before international calls used to call many $s per minute. Now with VoIP (Skype) you can do it for cents.
Same thing will happen to international money transfers.

Enabling Global P2P Cash Transfers with Abra (For consumer)
https://www.goabra.com/
http://www.coindesk.com/abra-remittance-app-us-launch/

Nowadays you can send an IM to anyone else in the world instantly for free. Why can’t you do the same thing with money?
Can do it locally in some domestic markets, like paytm (india, WeChat pay (China), mpesa (Africa). But not for cross border transactions.
iOS & Android. Real digital cash wallet. Send & receive globally. No FX risk. Add cash via bank or in person.
As private as paper cash. Abra tellers earn $$ (as a percentage fee).
The wallet is stored locally on the phone. So you “physically” control it. (need to back up your private key).
Use an Abra teller (someone else using the app) to exchange buy/sell cash for digital cash. Anyone can be a teller. Tellers charge a fee. Teller & user rate each other.
When 2 people send money each other via Abra, happens instantly, . No FX volatility.

Awaking the Sleeping Giant: The Natural Resource Industry and the Blockchain
Note: The presentation was in English, but I thought it was extremely considerate that he had his slides translated into Chinese as well. Every slide had simultaneous English & Chinese descriptions so that the attendees using the live translation headsets could follow along easier. If I ever present in another country again, I’ll try and plan ahead like he did. Was very thoughtful.

Why is BHP interested in the Blockchain?
They are the largest mining company in the world (natural resources mining, not Bitcoin mining. Hehe)
They are a global distributed organisation. So a distributed Blockchain

Project Rai Stones. Sample tracking of geological samples. They are highly valuable resources. Some of the wells cost $100M, and you only get 1 chance to take the sample. They currently only track the samples manually through emails & spreadsheets.
They are working with Consensys & Blockapps. Runs on Ethereum & IPFS, on top of Microsoft Azure.
1 node at BHP, 1 at their collaborator, 1 at their regulator.
3 roles in the business flow, BHP out in the field, the analysis team, and BHP corp.
They create/register a smart contract on the network for each sample.
When the person collects the sample, they go to the dashboard, click the checkboxes to say they acquired, that updates the smart contract.
They ship it off, so they put in the details of which analysis office it is being sent to, updates state from collected to shipped.
Analysis team can log in, see what samples are in transit to them to be analysed. They receive it, give it a unique Id based on their internal process.
They get trusted tracking of samples, and real time updates.

What if they could automatically operate machines, they could help avoid bad combinations of machines operating at the same time. Like a crane operating on an oil rig, when a helicopter is coming in.
Disable a piece of machinery if it is past its allowed usage before routine preventative maintenance. Disabled until it is tested, and certified as okay on the Blockchain.
Stop unqualified people from using a tool or vehicle.

Ore gets mined and put onto shipping freighters. Need to track Provenance, custodians, entire supply chain.

Need to give regulatory data to the regulators in each country the operate in. All the mines in the industry need to submit this public data to gov, it all gets aggregated, and disseminated. But it costs HEAPS to do this. What if they built a consortium chain. They can all publish the public data, ready to be analysed instantly by peers. Could make the entire industry more effienct and transparent by making the consortium not just for the 1 country, but a public one. Give a global transparent view of the entire industry.
Would help drop costs of compliance.

They started on Ethereum Mainnet & Testnet. Now they are seeing the emergence of many private chains. They will see the bridging between chains.
Seen that Ethereum plans on sharding (many chains). Forsees that there will be a global mesh of these Public & Private chains all supporting each other.

Cotricity – “a prosumer to business”- virtual energy market on the Ethereum blockchain (Consensys)
https://co-tricity.com
Energy meets Blockchain
Joint venture between Consensys & an energy company in Germany.
Energy sector is changing rapidly. Prosumer is someone with generative capacity (eg. Solar panels & battery storage).
Normal smart meter collects usage about production & consumption. Tracked on Ethereum. Matches up Prosumers to local community things like Schools. The local environmental and economic benefits of keeping it in the local community.

Mechanism design, “reverse game theory”.
Goal is to effectiveise the energy market and reduce costs. Means creating incentives such that the optimal strategy for every participant results in the realisation of this goal.
e.g. Help to smooth out the peak in the morning, give a small reward for not using energy in the morning

Blockchain summit report: Demo day

Notes taken on phone today. Was tired from lack of sleep, so was a little grumpy in my analysis.

Event happenings

I was able to get my hands on one of the coveted “Hard fork café” tshirts. Victor Lysenko from Acronis had brought a collection of them along, and was handing them out to for free to special people. Awwww ❤

20160922_231328.jpg

 

In the evening I was able to have dinner with Vitalik *swoon*
He ended up ordering a selection of dishes on behalf of the table. He did a brilliant job and managed to do it in Mandarin. (Made me realise I need to step up my Mandarin lessons).

20160922_193202_054.jpg20160922_200152.jpg

 

There were quite a few presentations delivered in Chinese today. Live translation headsets were available. I was extremely impressed with the ladies doing the live translation, they were able to handle all the technical words and kept up very well with the demos. Apparently behind the scenes they had to train themselves up by reading blog posts and researching the topic so that they understood the technical jargon.

20160922_092825.jpg

 

Demo day sessions summary

Today was demo presentations to a panel of judges, who voted on and decided the winners at the end of the day. http://www.blockchainweek2016.org/

On the negative grumpy side, there were so many similar projects (identity, stablecoins, distributed loan platform). But their were HEAPS of projects revolving around them building their own Blockchain, but never saying why their particular one is better than the existing Blockchain solutions. They always talked of the benefits of the Blockchain for business in general, but never their particular one specifically.

However on the positive side, there were many great projects that made me sit up. The most interesting ones were projects like Weifund that leverage many other existing projects on the blockchain.
Interestingly there were 17 projects that were building directly on top of the existing Ethereum Blockchain technology (both public & private) and leveraging the network effects. But strangely I didn’t see any projects building on any other existing Blockchains such as BTC or Hyperledger (beside the 2 presentations by IBM pre-demo).

Vitalik’s comment near the end of the day summed it up well for me. A lot of the demos are creating projects that aren’t really leveraging the Blockchain,  and aren’t better than the traditional version.  A lot of the solutions are also still centralized, and rely on a single company. Don’t try and create your project as a standalone solution. This is especially true with the many many identity services that are being created as new silos. Try and build something decentralised that can outlive a company and can grow.

Uport was 1st prize. Other winners were weifund, Cosmos and others I didn’t catch. I unfortunately missed uPort as I was late coming back in after the break 😦

Keynotes

Keynote – IBM Hyperledger
Very very high level information. Blockchain is useful. The value of a network grows exponentially with each new node
Generic slides showing “Blockchain allows people to interact via the Blockchain”.
He said that “Companies in Silicon valley are trying Ethereum and then moving to Hyperledger in droves”, sounds a bit farfetched to me (but i am biased)

Opening speech by Sinodata
Blockchain is important for the future of business. Sinodata are building things for b2b & b2c
No details.
Other companies are looking into 1.0 & 2.0, but they are more advanced.
They are willing to share their vast experience in blockchain with other blockchain companies.
“We are the creator & users of blockchain.”

Demos

During the introduction of the judges, the MC introduces Vitalik and the crowd cheers loudly. Chinese MC: “Oh… the audience is very excited about this judge, he must be very important”

Ujo music
“Fair drm”
Music consumption is at an all time high.
If consumption is waaay up, how is it artists are still hardly earning enough to support themselves. Artists have lost control
An artist has fragmented identities on Spotify, soundcloud, discography, beatport.
Difficult to keep fans up to dates on tour days
Fan remixes on soundcloud get pulled down due to copyright infringement.
Ujo gives fans a way to pay directly to the artist
Use Ujo as their kit / digital container, to be in charge of their identity
Reach piece of content is marked with their digital ID, so it can be tied to artist.
Can set policies on fair use and creative rights

Bestowit.global
Everything changes when someone dies. Difficult time, need to find the will, usually paper based.
If no will exists, then government decides.
Difficult to know where to look for wills, no central place to look.
Succesion law hasn’t been updated in a long time, isn’t up to date in a digital world.
Created “living ledger”. Wills on the ledger.
Created a smart envelope, an iot device to put will inside and then seal and out on blockchain

Vechain
Unique ID on Blockchain
Seems “to do everything”: Id, lifecycle management, management portals. (no focus, which judges also commented on)
Has a chip you can embed into anything to tag it. Can put on clothes or a bag, every article has a unique Id

My thought: For those that like to show off their money & brands, now why just buy your avatar digital clothes to show off on social media. Instead now you can buy a Chanel bag, then you can prove on social media that you own own to show off.

Decentralized capital
Summary: it is a stable coin
They use DC capital to back tokens.
Use assets to purchase and back tokens.

Bubi Blockchain
Summary: they built their own Blockchain
Data sets data is centralized. You don’t own your own data. Your data is being monetized by other companies.
They provide Bass Blockchain as a Service.

Applications can use their Blockchain. Get data security. Finance. Etc etc
Can do loyalty points, games, etc
It is a Blockchain…
They have 20k transactions a week
“People should use our Blockchain. Will give you more opportunities and value”

DGX
A real stable coin
Digital gold. 1 DGX = 1 gram of gold
Each token is back by real gold in a vault,  fully insured. The certificate of authenticity is put into  IPFS
Is ERC20 token compatible
Introduction digix 2.0
Can log on and buy gold. Is implementing KYC (know your customer)

Me: I like it,  I tried to join the pre-sale, but sold out instantly.

Cosmos (prize winner)
Http://cosmos.network
http://tendermint.com
A network of Blockchains (Cosmos hub).
Securely communicate between the chains
Uses Tendermint (which they built)
Cosmos is a public Blockchain built on Tendermint.
Could have a number of  EVM based networks,  then put a Cosmos hub in the middle to allow them to communicate with each other.
Ethereum & Tendermint work well together.

DeVita
People waste lots of time trying to find answers on the Internet
Post bounty for answers
But bounties are posted on forums. How to enforce payment.
They created a decentralized bounty system
Can use the data of people who answer to create a CV “proof of expertise”.

EtherLoan
Problems with centralized lending platforms, include hacking and high costs.
Their solution connect distributed members with borrowers.
Lenders can send funds to smart contact to participate in a loan.
Borrower repays the loan, gets distributed to the lenders
Borrower creates a new EtherLoan. Can customise the terms. If lenders like it, they fund it. Can negotiate the interest terms
Is currently a PoC. Only supports simple loans with single repayment. Integration with unorthodox. Reputation system.
Future : compound interest. Integration with credit score & risk management systems

Qtum
Qtum.org
Yet another Blockchain? They built it on incentive PoS. Can bring regulators &  government.
They want compatibility with Bitcoin &  Ethereum.
Pluggable consensus. Public & permissioned Blockchain.
Supports EVM. EVM 2.0
Can apparently do anything that any other chain can do because you just code it in.
Support for oracles.
Integrates with  KYC/AML
Can run zcash in here.
“does everything”

Vitalik gave A LOT of feedback after the talk for it trying to do too much with no focus.

Benefactory
Like a next gen The DAO,  but the funds are for non profits?
Platform for distributed organisations.
Pooling funds is hard
Let individuals decide how to use their own funds
Commonwealths are distributed non-profit organisations.
What problems should you propose to solve to achieve a commonwealth objectives (and get funding)

Zhong Tou Bang
Lots of pollution and health issues in China
Most Chinese people don’t have health insurance
Health insurance of on Blockchain
Problems of privacy,  how to protect it.
User identity

Trusted key
Secure trusted identify
Online id systems don’t attest to a real world identify.
Currently each online service (e.g. Airbnb) had their own verified user system which is not transferable.
Using identity documents like drivers licence. Take photo of documents, take a selfish.  Submit it. Once verified the proof is attached to identify.
Can later provide proof the parts of the proof you want to share (name, age, gender
Can then later cryptographically sign documents, like bank documents with your digital signature

Coral legacy
Creating a direct link from various to consumers. For wine.
For $100 you can purchase a grape vine at a vineyard. You get the wine created from that vine.
The vine is tokenism on the Blockchain. Your wine is in Blockchain, tied to your vine. Date, history,  etc.
Vine is $100. Administration is $10 / year. To make and record the wine is $30 / year

B8
https://eth-b8.com
Location based  Blockchain service
Organiser can drop a prize anywhere (geocache ?)
People gather around a prize, one enough people have gathered, prize is distributed.
Encourage people to gather at a point for an event eg. Mall opening
Simple command line,  put geo coords, number of people required to trigger, and total amount of ETH to distribute.
Can try and counter GPS spoofing by using GPS & beacons. While also tracking user to detect anomalies, like jumping from USA to China in 5 minutes

Judges (and attendees) were more interested in the anti-GPS spoofing technology, than their blockchain Dapp

BioT. Blockchain IoT
Like Slock.It
IoT device with a light client that can connect to the Blockchain
Can send ether to trigger the IoT device (like a vending machine, or smart meter).
Can have a mobile SIM in it.

Weifund (prize winner)
Http://weifund.io
Nick Dodson
Make crowd funding an easy and simple thing to do. Decentralised kickstarter
Crowdsales are not an easy thing to code yourself in a smart contact. They have put a lot of effort into security in their solution.
They will have many types of campaigns, like presales.
Supports many types of currencies.
Is built fully decentralised, distributed via IPFS.
Uses Metamask & uPort for identity

Fluent
Http://fluent.network
Platform for financial operating network for global trade. Very enterprisey.

Token
http://token.im
Chinese Blockchain startup
Digital wallet, mobile app. “digital assets wallet”
Light wallet.
Looks very clean and slick. Trade tokens,  use Dapps.
Alipay app is popular here in China. They hope to be as popular for digital. Built a Ethfans &  carbon vote integration

Token factory
http://thetokenfactory.com/
Create something that would allow people to experiment. Make easy to create and distribute your own token.
Issue any token on any Ethereum network
Simple wallet interface. Follows the token ERC20 standard
Works with Metamask uPort Mist my ether wallet

Stabl Coin
http://stabl.money
Literally just another stable coin

Alta apps
Another Blockchain with their own platform

Hyperchain
Another Blockchain
Other Blockchains take too long to confirm. Bitcoin can take an hour
Theirs is better because of lower block time

ANX international
Abs Blockchain services. Provide Blockchain services. Have their own platform.
Provide a white labelling service of wallets,  tokens