Mingis on Tech: 3 big takeaways from Android Pie

So now we know: P is for Pie – as in Android Pie, the latest iteration of Google’s mobile OS. It officially arrived Aug. 6, is already rolling out to Pixel devices and –  depending on how quickly other Android device makers get moving – it should show up for non-Pixel users over the next few months.

That makes this a good time to hear from Computerworld‘s JR Raphael about just what users can look forward to when they finally get their hands on their upcoming slice of Pie.

IBM, Maersk launch blockchain-based shipping platform with 94 early adopters

After launching a proof of concept earlier this year, IBM and Maersk have unveiled TradeLens, the production version of an electronic ledger for tracking global shipments; the companies say they have 94 participants piloting the system, including more than 20 port and terminal operators.

The jointly developed electronic shipping ledger records details of cargo shipments as they leave their origin, arrive in ports, are shipped overseas and eventually received.

During the transportation process, all of the involved parties in the supply chain can view tracking information such as shipment arrival times and documents such as customs releases, commercial invoices and bills of lading in near real time via the permissioned blockchain ledger.

More than 160 million such shipping events have been captured on the platform, according to IBM and Maersk. “This data is growing at a rate of close to one million events per day,” the companies said.

Traditionally, the international shipping industry’s information systems have used paper legal documents, and electronic data was transmitted via electronic data interchange (EDI) – a 60-year-old technology that doesn’t represent real-time data information.

Shipping participants have also shared documents via email, fax and courier.

When information is entered or scanned in manually, TradeLens can track critical data about every shipment in a supply chain, and it offers an immutable record among all parties involved, the companies said.

Some shipping manifests can also be moved via an API to the TradeLens platform, so that manufacturers and others in the supply chain have more timely information and improved visibility to the process.

Along with freight forwarders, transportation companies and logistics firms, more than 20 port and terminal operators are using or have agreed to pilot TradeLens, including PSA Singapore, International Container Terminal Services Inc., Patrick Terminals and Modern Terminals Ltd. in Hong Kong. Customs authorities in the Netherlands, Saudi Arabia, Singapore, Australia and Peru are also participating.

“This accounts for approximately 234 marine gateways worldwide that have or will be actively participating on TradeLens,” IBM said.

Hong Kong-based Modern Terminals became a beta partner of the TradeLens blockchain earlier this year.

“Digitized documentation that can at the same time be authenticated will drive down costs and increase supply chain security,” Modern Terminals CEO Peter Levesque said via email.

As a port operator, Modern Terminals doesn’t have a need to track shipments outside of its operating environment, but it keeps the status of containers coming in and out of its terminals via a Terminal Operating System (TOS), many of which utilize EDI and wireless LANs and Radio-frequency identification (RFID) to monitor cargo movements. The company handles about 5.5 million shipping containers per year at its Hong Kong business unit.

The documentation that accompanies a container of cargo from the factory floor to store shelf is cumbersome and open, Levesque said. A blockchain-based electronic ledger will provide a platform where all the documentation along the way can be viewed and updated in near real time and in a secure environment by authorized supply chain participants.

It will also give customs, commerce, and border patrol agents around the world “a higher degree of certainty about what’s in the box, and who loaded it,” Levesque added.

“Modern Terminals plans to be a regular user of the solution once full development and testing are complete,” Levesque said. “We’ve only begun to scratch the surface on what we can use blockchain technology for in the transportation and logistics industry. Tackling the opportunity for improving the transmission of documents around the world is a great beginning. The next decade of development will be exciting to watch.”

What Vitalik Buterin’s tweetstorm means for the future Ethereum blockchain

It took 75 tweets, but Ethereum blockchain founder Vitalik Buterin has clarified the roadmap for implementing a new consensus mechanism that promises to greatly increase the speed with which new entries can be added to the distributed electronic ledger technology.

Buterin devoted most of the tweets to explaining the history of Ethereum developer efforts to create a Proof of Stake (PoS) consensus mechanism that would streamline the process while also combating nefarious attacks to control blockchain content.

He also clarified that a PoS system will be implemented independently from another effort to roll out sharding on Ethereum. (Sharding is a way of distributing the computational work needed to validate new documents, known as blocks, on the distributed ledger technology). The PoS and sharding development efforts had been part of one project, but they will now be rolled out separately.


Proof of Work and Proof of Stake

The two most popular mechanisms or algorithms for authenticating new entries on a blockchain and governing changes to the networks are Proof of Work (PoW) and Proof of Stake.

PoW algorithms force computers on the peer-to-peer (P2P) network to expend CPU power to solve complex cryptographic-based equations before they’re authorized to add data to a blockchain ledger; those computer nodes that complete the equations the fastest are rewarded with digital coins, such as Ether on Ethereum or bitcoin on the competing technology. The process of earning cryptocurrency through PoW is known as “mining,” as in mining bitcoin.

As the name suggests, PoS consensus models enable those with the most digital coins (the greatest stake) to govern a cryptocurrency or business blockchain ledger. To date, however, the most popular blockchain-based cryptocurrencies — Bitcoin, Ethereum (Ether) and Litecoin — have used PoW as their consensus mechanism.

While PoW algorithms are excellent at ensuring the authenticity of new documents posted to a ledger, they’re also slow and expensive to run.

The PoW process chews up a lot of electricity, both from running processors 24/7 and from the need for cooling server farms dedicated to mining operations. Those mining operations are siphoning off so much electricity that cities and even countries have begun clamping down on mining operations.

PoW protocols can also be extremely slow due to the lengthy process involved in solving the mathematical puzzles; approving a new entry on a blockchain ledger can take 10 or more minutes. PoW algorithms are, however, excellent at thwarting users who would try to game the blockchain, as it’s simply too expensive to expend the CPU power and time.

In contrast, PoS algorithms can complete new blockchain entries in seconds or less.

“Proof of Stake algorithms definitely have the potential to overtake Proof of Work,” said Vipul Goyal, an associate professor in the Computer Science Department at Carnegie Mellon University (CMU). “However, there are still some significant research challenges that need to be overcome before that happens.”

Ethereum began working on a PoS system in 2014 and last year introduced the mechanism on a testnet called “Casper” (as in Casper the Friendly Finality Gadget or Casper FFG). Casper was intended to be overlaid on Ethereum’s current PoW algorithm.

There have also been internal development battles over the way “finality” should be implemented on the Casper PoS system (i.e., how a block should be finalized so it’s added to the immutable blockchain).

Ethereum developer Vlad Zamfir has been creating a Casper consensus protocol called “Correct by Construction” (CBC). The difference? “Both Vitalik and Vlad agree that penalties for bad behaviour needs to be implemented. They differed on the approach — primarily, on how harsh those penalties should be,” Shawn Dexter, a research analyst with Mango Research, said via email.

In the end, a Casper PoS system will likely draw from both FFG and CBC consensus protocols, according to Jon Choi, a developer with the Ethereum Foundation.

As with other PoS models, the Casper consensus protocol would work by creating “bonded validators,” or users who must place a security deposit down before being allowed to serve as part of the blockchain consensus or voting community. As long as bonded validators act honestly on the blockchain, they can remain in the consensus community; if they attempt to cheat the system, they lose their stake (their money). Ethereum’s Casper PoS system would enable a consensus mechanism to process new transactions in about four seconds.


A hybrid system

Last year, two developments in the effort to implement a new consensus model came in the form of a standalone PoS mechanism named Serenity and a hybrid PoW/PoS system named Metropolis. Metropolis was divided into two phases: the development of a byzantine fault-tolerance mechanism launched last year and a project known as Constantinople — the hybrid PoW/PoS system.

The Constantinople name was dropped earlier this year and the effort to implement a new Casper PoS and sharding system is now being referred to as Ethereum 2.0.

The PoS system, whether hybrid or standalone, was going to require that validators deposit 1,500 Ether coins to become part of the consensus mechanism. In his tweet storm, however, Buterin announced the number of Ether coins required to become a validator will now be 32.

Jake Yocom-Piatt, creator of the digital currency network Decred, believes the best governance model is one that employs both PoW and PoS mechanisms, as Buterin and the Ethereum development team are proposing.

In a hybrid model, deference is given to the PoS validators who can override bad behavior on the PoW network.

“If you’re a Proof of Work miner and you’re playing games and causing problems on our network, the stakeholders on the network can penalize them and strip them of their rewards,” Yocom-Piatt said in an earlier interview. “You can also vote on consensus rule changes. This acts as a dispute-resolution and decision-making mechanism for major decisions in the cryptocurrency,” Yocom-Piatt said, referring to new software releases and other blockchain changes.

In Ethereum 2.0’s latest model, the blockchain would grow in blocks using the current PoW algorithm, “but every 50 blocks is a PoS ‘checkpoint'” where finality is assessed via a network of PoS validators, a white paper explained.

Over its development lifecycle, the PoS protocol faced a number of challenges, the most difficult of which is what is known as “posterior corruptions,” which could undermine the authenticity of a blockchain. For example, a set of users on a blockchain can hold the majority stake, and then sell that stake. In a PoS system, those entities could still hold the cryptographic keys that gave them governing power in the past and use that authority to create a new blockchain or “attack chain” off the primary chain (known as a fork).

In effect, validators’ money would no longer be on the line but they could still control the blockchain’s direction — a phenomenon known as the “Nothing at Stake” PoS problem.

“If the attack chain diverges from the main chain at a fairly recent point in time, this is not a problem, because if validators sign two conflicting messages for the two conflicting chains this can be used as evidence to penalize them and take away their deposits,” Buterin wrote in his Twitter thread. “But if the divergence happened long ago (hence, long range attack), attackers could withdraw their deposits, preventing penalties on either chain.”

To deal with long-range attacks, Ethereum developers introduced a change requiring clients log on at least once every four months and that their deposits take four months to withdraw, so the incentive to avoid a penalty would no longer be available.

Ethereum developers also considered other consensus algorithms “inspired by traditional byzantine fault tolerance theory,” such as Consensus by Bet, but eventually abandoned them as “too risky.”

Mango Research’s Dexter said the most recent Ethereum update has people confused because much of the explanatory information is contained in comment sections across various forums. Even in an explainer last week, Dexter cautioned things still may change between now and when a PoW/PoS and sharding algorithm is implemented.

Casper and sharding will be implemented on the same chain, but not together, Buterin explained. Casper could come first or sharding. Both will be implemented on a new overlay network known as Beacon Chain, which will be a hard fork or off ramp from the current Ethereum blockchain.

That fork isn’t expected to be contentious, so it’s unlikely to result in any “bad effect” on the Ethereum community, according to Dexter.

“Hard forks don’t have the same stigma in Ethereum like they do in [bitcoin]. In the new version, there will be a one-way smart contract (from the PoW to the Beacon Chain) that will allow users to deposit [32 Eth] in order to become a validator on the PoS chain. Users who deposited the 32 Eth will go in queue to become validators, and can start validating blocks,” Dexter said.

Buterin ended his Twitter thread by saying there is no formal timeline for implementing the new consensus mechanism. His last tweet said there are still “formal proofs, refinements to the specification, and ongoing progress on implementation,” which have already been started by three developer teams.

Martha Bennett, a principal analyst with Forrester Research, cautioned against speculating on when Ethereum 2.0 would be released or how it will perform. “The PoS consensus design took several iterations,” she said via email, “and we simply won’t know until it’s been implemented and has been running for a while whether it’ll work in the desired fashion or not.”