BSV
$80.34
Vol 90.54m
-4.83%
BTC
$98153
Vol 162100.66m
-4.3%
BCH
$595.99
Vol 1334.6m
-2.41%
LTC
$135.82
Vol 2755.57m
5.59%
DOGE
$0.43
Vol 10520.87m
-0.87%
Getting your Trinity Audio player ready...

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.”

https://youtu.be/gBb9FSxfyVs

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.”

Recommended for you

Palo Alto Networks breach: Blockchain key to cybersecurity resilience
Following the breach reports, Palo Alto Networks revealed that its Next Generation Firewalls had been targeted in cyberattacks exploiting two...
December 5, 2024
Swiss council opposes capital Bern’s motion to study BTC mining
Legislators in Bern passed a motion to assess how BTC block reward mining can repurpose excess energy, but the governing...
December 5, 2024
Advertisement
Advertisement
Advertisement