What is Protocol Buffers?

Overview of a Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data
27 October 2017   1388

What is Protocol Buffers?

Protocol Buffers (a.k.a., protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data. Protocol buffers are a flexible, efficient, automated mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages. You can even update your data structure without breaking deployed programs that are compiled against the "old" format.

Why not just use XML?

Protocol buffers have many advantages over XML for serializing structured data. Protocol buffers:

  • are simpler
  • are 3 to 10 times smaller
  • are 20 to 100 times faster
  • are less ambiguous
  • generate data access classes that are easier to use programmatically


New Drivechain proposals submitted for Bitcoin

Drivechain protocol presented for Bitcoin main network to enable alternative functions
04 December 2017   149

The so-called Drivechain protocol is an extension to main Bitcion network. It can be forked into the base Bitcoin operations, adding new features, e.g. sidechains to enable faster transactions, smart contracts, faster block processing. And while new features are added, it's not an altcoin, but a tethered add-on to main protocol, working side-by-side with mainstream blockchain.

Drivechain had a very shaky foundation because all of the previous variants were considered a pipe dream, but right now everyone can get a look at the existing code, courtesy of Paul Sztorc. He has a reputation as a developer of Bloq, enterprise-grade blockchain technology, and Hivemind chief scientist.

Now Sztorc proposed a set code for implementation of sidechains augmenting existing blockchain network and currently asks for code review from his peers. One of the current Bitcoin Improvement Proposals (BIP) focuses on the hashrate escrow concept, which essentially is a variation of multisignature escrow, signed by the third-party miners not by a private key but by dedicating their hashpower to the transaction. Second BIP revolves around Blind Merged Mining. According to Github proposal, it allows for 'extension blocks' to be used in two or more sidechains for mining without any need for validation, it produces strong guarantees that the block is valid according to any set rules because of the multichaining.

As of now, two new BIP are awaiting formal numbers from developer community. Many people believe that the sidechain technology can be beneficial and will remove the need for many altcoins employed today by providing the same features in mainstream Bitcoin network.