Tech 17 January 2019

Erik Gibbs

Unwriter “breaks the rules” with his latest BitDB creation, Chronos

Unwriter, the prolific cryptocurrency developer, has been hard at work this week, introducing a series of new functions under the BitDB umbrella to make accessing data more easier. He started with the announcement of his new Genesis project, an exclusive BitDB node that runs on Bitcoin SV (BSV) and which allows expanded query capabilities, and then followed that up a mere 24 hours later with Babel, a data-only, condensed query application. Now, adding to the mix, is Chronos, a BitDB node that “breaks all the rules of BitDB.”

Chronos, according to unwriter’s Medium post on the topic, is “An ephemeral BitDB for dealing with time” and was designed to provide results that include a timestamp. Each transaction provides the timestamp of when it was discovered – not when it was mined – and the feature is also included for Mempool transactions. Unwriter points out that these latter transactions don’t provide a timestamp in other BitDB nodes.

Additional features of Chronos include a 24-hour sliding window of transaction storage, a single chronological ordering of transactions (whether they’re confirmed or unconfirmed) and a “dynamically-computed virtual attributed named ‘timeago.’”

Unwriter points out that Chronos is an important addition to the Bitcoin ecosystem because it allows for better understanding of how transactions transpire. He states, “Just because a transaction appears later within the blockchain than another transaction, doesn’t mean that transaction was sent later. It could have just propagated slowly, or may have stayed in the mempool for a long time before finally getting mined.”

The developer adds, “One thing to remember is that EVERY transaction in the same block has EXACTLY the same blk attribute.

“This means you can’t tell which transaction in a block was SENT earlier than another transaction in the same block. You can’t even tell which was DISCOVERED earlier through BitDB because they all have the same timestamp.”

“Timeago” won’t be an attribute that can be used to create a query since, logically, it refers to the amount of time that has elapsed between the transaction and the query. It is based on the “timestamp” attribute that is now included and which is a Unix timestamp recorded at the time of the transaction’s discovery.

Previously, all BitDB nodes distinguished between confirmed (block) and unconfirmed (Mempool) transactions using either, respectively, “c” or “u.” This is where unwriter decided to break the rules. Chronos includes a single collection that is called “t,” which covers both confirmed and unconfirmed (or block and Mempool) transactions. He explains, “At first, incoming mempool transactions get inserted into the database. And when the same transaction gets added to a block, the entry gets updated to have the blk property (the block info). So when you see a transaction without a blk attribute, you know it’s in the mempool.”

Chronos was not designed to be used as a standalone platform but, rather, as a complement to other BitDB nodes, which is why all transactions “get wiped out after 24 hours have passed.” However, it can be useful in helping to sort and display transactions by timestamp in order to develop a more accurate timeline.

In summing up his latest creation, unwriter states, “Chronos is a new type of BitDB node that makes an interesting tradeoff to provide a feature that can be helpful for many developers when used with care… Regardless, being able to use real world timestamps is a really nifty feature and have been one of the most frequently requested features since the beginning of BitDB, so I’m sure many of you will get it.”

Note: Tokens on the Bitcoin Core (SegWit) chain are referenced as BTC coins; tokens on the Bitcoin Cash ABC chain are referenced as BCH, BCH-ABC or BAB coins.

Bitcoin Satoshi Vision (BSV) is today the only Bitcoin project that follows the original Satoshi Nakamoto whitepaper, and that follows the original Satoshi protocol and design. BSV is the only public blockchain that maintains the original vision for Bitcoin and will massively scale to become the world’s new money and enterprise blockchain.

COMMENT

latest news

How Metanet creates an immutable Internet

Tech 15 February 2019

How Metanet creates an immutable Internet

Metanet and Bitcoin were roughly conceived “in the depths of the late 90s” from the concept of an economically incentivized Internet, according to nChain Chief Scientist Dr. Craig Wright.

Read More
HSBC slashes forex costs with blockchain

Tech 15 February 2019

HSBC slashes forex costs with blockchain

The firm confirmed it had reduced costs for its forex business by as much as 25%, in what analysts describe as an example of the importance of distributed ledger technology to banks and their bottom lines.

Read More
UC Berkeley launches blockchain accelerator for startups

Tech 14 February 2019

UC Berkeley launches blockchain accelerator for startups

The University of California, Berkeley recently announced the launch of a new blockchain-focused accelerator, the Berkeley Blockchain Xcelerator for blockchain startups.

Read More