blockchain-parser 0.1.4 on PyPI - Libraries.io

Bitcoin blockchain parser

Is there any good tools to parse the blockchain ? Looking to pull data such as tx size, utxo etc
submitted by west-wot to Bitcoin [link] [comments]

Bitcoin blockchain parser /r/Bitcoin

Bitcoin blockchain parser /Bitcoin submitted by HiIAMCaptainObvious to BitcoinAll [link] [comments]

Here is bitcoin blockchain parser (bitcoin database viewer. It converts blk*.dat files in readable text. Check it out!

submitted by SimilarAdvantage to BitcoinAll [link] [comments]

blockchain21 : A simple bitcoin blockchain parser program

blockchain21 : A simple bitcoin blockchain parser program submitted by coincrazyy to BitcoinAll [link] [comments]

RiB Newsletter #14 – Are We Smart (Contract) Yet?

We’re seeing a bunch of interesting Rust blockchain and crypto projects, so this month the “Interesting Things” section is loaded up with news, papers, and project links.
This month, Elrond, appeared on our radar with the launch of their mainnet. Although not written in Rust, it runs Rust smart contracts on its Arwen WASM VM, which itself is based on the Rust Wasmer VM. Along with NEAR, Nervos, and Enigma (and probably others), this continues an encouraging trend of blockchains enabling smart contracts in Rust. See the “Interesting Things” section for examples of Elrond’s Rust contracts.
Rust continues to be popular for research into zero-knowledge proofs, with Microsoft releasing Spartan, a zk-SNARK system without trusted setup.
In RiB news, we published a late one-year anniversary blog post. It has some reflection on the changes to, and growth of, RiB over the last year.
The Awesome Blockchain Rust project, which is maintained by Sun under the rust-in-blockchain GitHub org, has received a stream of updates recently, and is now published as the Awesome-RiB page on rustinblockchain.org.
It’s a pretty good resource for finding blockchain-related Rust projects, with links to many of the more prominent and mature projects noted in the RiB newsletter. It could use more eyes on it though.

Project Spotlight

Each month we like to shine a light on a notable Rust blockchain project. This month that project is…
ethers.rs
ethers.rs is an Ethereum & Celo library and wallet implementation, implemented as a port of the ethers.js library to Rust.
Ethereum client programming is usually done in JavaScript with either web3.js or ethers.js, with ethers.js being the newer of the two. These clients communicate to an Ethereum node, typically via JSON-RPC (or, when in the browser, via an “injected” client provider that follows EIP-1193, like MetaMask).
ethers.rs then provides a strongly-typed alternative for writing software that interacts with the Ethereum network.
As of now it is only suited for non-browser use cases, but if you prefer hacking in Rust to JavaScript, as some of us surely do, it is worth looking into for your next Ethereum project.
The author of ethers.rs, Georgios Konstantopoulos, accepts donations to sponsor their work.
Note that there is also a Rust alternative to web3.js, rust-web3.

Interesting Things

News

Blog Posts

Papers

Projects

Podcasts and Videos


Read more: https://rustinblockchain.org/newsletters/2020-08-05-are-we-smart-contract-yet/
submitted by Aimeedeer to rust [link] [comments]

Is there a possibility to get all active or ever registered .bit domains?

Hey guys, does someone know if there is a possiblity to get a list of every active .bit domain or a list of every .bit domain ever registered.
I am thinking about parsing the whole blockchain with a python bitcoin blockchain parser (since Namecoin is based on Bitcoin) to maybe be able to read information, like registration of a domain, out of the transactions.
Maybe someone has an already used and successful approach.
Greetings
submitted by Scorqyon to Namecoin [link] [comments]

Parsing blockchain for public address possible?

Using python-bitcoin-blockchain-parser I was able to parse through bitcoind data and print transaction hashes. I'm now trying to get the public address from each transaction but I'm not sure how to go about doing this. Are there any tools/resources that could help me with this?
submitted by jptii to BitcoinBeginners [link] [comments]

GitHub - normanvolt/blockchain-parser: Simple script for parsing Bitcoin and altcoins blockchain.

GitHub - normanvolt/blockchain-parser: Simple script for parsing Bitcoin and altcoins blockchain. submitted by 5tu to BitcoinTechnology [link] [comments]

C#, bitcoin blockchain API json and newtonsoft json parser.

For the life of me I cannot get json.net to deserialize json from the blockchain API. Has anybody been able to do this?
submitted by ths1977 to csharp [link] [comments]

Questions about Bitcoin reorganization process logic with a rev*.dat file format or byte map.

Hi, I’m currently learning how bitcoin operates by studying the BitcoinCore code and several other bitcoin projects, most of them parsers, and came to a topic of blockchain data storage of blk*.dat and rev*.dat.
While blk*.dat format is more or less documented and the process is described really good (https://learnmeabitcoin.com/guide/blkdat) most of the resources are lacking detailed descriptions of rev*.dat file format and how the process of handling blockchain reorganization (block undo) works. Some Parsers (https://github.com/citp/BlockSci) have rules not to parse new blocks before a certain amount of confirmations so they do not need to deal with the issues of reorganization.
Right now I’m very interested in the logic of blockchain reorganization and found some descriptions:https://en.bitcoin.it/wiki/Bitcoin_Core_0.11_(ch_2):_Data_Storage#Raw_undo_data_.28rev.2A.dat.29:Data_Storage#Raw_undo_data.28rev.2A.dat.29) And an awesome post reply by Pieter Wuille: https://bitcoin.stackexchange.com/questions/57978/file-format-rev-dat I even tried to visualize that answer in a picture: https://prnt.sc/s4ile4
The problem is that all those explanations are dated because of the update (https://github.com/bitcoin/bitcoin/pull/10195) that replaced CTxInUndo class with Coin class (https://github.com/bitcoin/bitcoin/commit/cb2c7fdac2dc74368ed24ae4717ed72178956b92 )
I know that code is the best documentation, but I still find it hard to read and understand, so I’m asking for help to answer these questions:
Apart from learning how everything works, I’m also interested in these topics because they say that it’s possible to get blockstasts faster using rev*.dat files (https://github.com/bitcoin/bitcoin/pull/14802) and I want to properly picture the whole processes with the rev*.dat files.
submitted by cyberwarboy to Bitcoin [link] [comments]

Update TKEYSPACE 1.3.0 on Android

Update TKEYSPACE 1.3.0 on Android

https://preview.redd.it/6w93e0afttx41.png?width=1400&format=png&auto=webp&s=c00989612ec2d52eb522405e6b6a98bf875e08bb
Version 1.3.0 is a powerful update to TkeySpace that our team has been carefully preparing. since version 1.2.0, we have been laying the foundation for implementing new features that are already available in the current version.
Who cares about the security and privacy of their assets is an update for you.
TkeySpace — was designed to give You full control over your digital assets while maintaining an exceptional level of security, which is why there is no personal data in the wallet: phone number, the email address that could be compromised by hackers — no identity checks and other hassles, just securely save the backup phrase consisting of 12 words.

Briefly about the TkeySpace 1.3.0 update :

  • Code optimization and switching to AndroidX;
  • New section-Privacy;
  • Built-in TOR;
  • Selecting the privacy mode;
  • Selecting the recovery method for each currency;
  • Choosing the address format for Litecoin;
  • Enhanced validation of transactions and blocks in the network;
  • Disk space optimization;
  • Accelerated syncing;
  • Checking “double spending”;
  • The bloom filter to check for nodes;
  • Updating the Binance and Ethereum libraries;
  • A function to hide the balance;
  • Advanced currency charts;
  • Access to charts without authentication;
  • News section;
  • Browser for Tkeycoin;
  • Independent Commission entry for Bitcoin;
  • New digital currencies;
  • Digital currency exchange tab.

Code optimization and switching to AndroidX

A lot of work has been done on optimizing the code to speed up the application, improving the logic, synchronization speed, calculating the hash of cryptocurrencies, and successfully switching to AndroidX.

https://preview.redd.it/h3go5tzgttx41.png?width=1100&format=png&auto=webp&s=bf311efc73e3577c80f06a21d6b9317bb93ae989

New section: Privacy

  • Enable Tor;
  • Blockchain transaction (the selection of the privacy mode);
  • Blockchain recovery (choosing a recovery method);
https://preview.redd.it/iydfwuhittx41.png?width=1080&format=png&auto=webp&s=2ce7c489d893a2ab6b9d6fede57d8b94404edcfb

TOR

Starting with the current update, the TkeySpace wallet can communicate via the TOR network, includes new privacy algorithms, and supports 59 different currencies.

https://i.redd.it/kn5waeskttx41.gif
Tor is a powerful privacy feature for those who own large assets or live in places where the Internet is heavily censored.
Tor technology provides protection against traffic analysis mechanisms that compromise not only Internet privacy, but also the confidentiality of trade secrets, business contacts, and communications in General.
When you enable TOR settings, all outgoing traffic from the wallet will be encrypted and routed through an anonymous network of servers, periodically forming a chain through the Tor network, which uses multi-level encryption, effectively hiding any information about the sender: location, IP address, and other data.
This means that if your provider blocks the connection, you can rest easy — after all, by running this function, you will get an encrypted connection to the network without restrictions.

https://preview.redd.it/w9y3ax4mttx41.png?width=960&format=png&auto=webp&s=972e375fc26d479e8b8d2999f7659ec332e2af55
In TOR mode, the wallet may work noticeably slower and in some cases, there may be problems with the network, due to encryption, some blockchain browsers may temporarily not work. However, TOR encryption is very important when Internet providers completely block traffic and switching to this mode, you get complete freedom and no blocks for transactions.

Confidentiality of transactions (the Blockchain transaction)

The wallet can change the model of a standard transaction, mixing inputs and outputs, making it difficult to identify certain cryptocurrencies. In the current update, you can select one of several modes for the transaction privacy level: deterministic lexicographic sorting or shuffle mode.

Mode: Lexicographic indexing

Implemented deterministic lexicographic sorting using hashes of previous transactions and output indexes for sorting transaction input data, as well as values and scriptPubKeys for sorting transaction output data;
We understand that information must remain confidential not only in the interests of consumers but also in higher orders, financial systems must be kept secret to prevent fraud. One way to address these privacy shortcomings is to randomize the order of inputs and outputs.
Lexicographic ordering is a comparison algorithm used to sort two sets based on their Cartesian order within their common superset. Lexicographic order is also often referred to as alphabetical order or dictionary order. The hashes of previous transactions (in reverse byte order) are sorted in ascending order, lexicographically.
In the case of two matching transaction hashes, the corresponding previous output indexes will be compared by their integer value in ascending order. If the previous output indexes match, the input data is considered equal.

Shuffle Mode: mixing (random indexing)

To learn more about how “shuffle mode” works, we will first analyze the mechanisms using the example of a classic transaction. Current balance Of your wallet: 100 TKEY, coins are stored at different addresses:
x1. Address-contains 10 TKEY. x2. Address-contains 20 TKEY. x3. Address-contains 30 TKEY. x4. Address-contains 15 TKEY. x5. Address-contains 25 TKEY.
Addresses in the blockchain are identifiers that you use to send cryptocurrency to another person or to receive digital currency.
In a classic transaction, if you need to send, for example, 19 TKEY — 100 TKEY will be sent to the network for “melting” coins, 19 TKEY will be sent to the Recipient, and ~80.9 TKEY will return to the newly generated address for “change” in your wallet.

https://preview.redd.it/x595qwdottx41.png?width=806&format=png&auto=webp&s=d9c2ae5620a3410ed83f7e16c018165c8ab35844
In the blockchain explorer, you will see the transaction amount in the amount of 100 TKEY, where 80.99999679 TKEY is your change, 19 TKEY is the amount you sent and 0.00000321 is the transaction fee. Thus, in the blockchain search engine, most of your balance is shown in the transaction.

How does the shuffle mode work?

Let’s look at a similar example: you have 100 TKEY on your balance, and you need to send 19 TKEY.
x1. Address-contains 10 TKEY. x2. Address-contains 20 TKEY. x3. Address-contains 30 TKEY. x4. Address-contains 15 TKEY. x5. Address-contains 25 TKEY.
You send 19 TKEY, the system analyzes all your addresses and balances on them and selects the most suitable ones for the transaction. To send 19 TKEY, the miners will be given coins with x2. Addresses, for a total of 20 TKEY. Of these, 19 TKEY will be sent to the recipient, and 0.99999679 TKEY will be returned to Your new address as change minus the transaction fee.

https://preview.redd.it/doxmqffqttx41.png?width=1400&format=png&auto=webp&s=5c99ec41363fe50cd651dc0acab05e175416006a
In the blockchain explorer, you will see the transaction amount in the amount of 20 TKEY, where 0.99999679 TKEY is Your change, 19 TKEY is the amount you sent and 0.00000321 is the transaction fee.
The shuffle mode has a cumulative effect. with each new transaction, delivery Addresses will be created and the selection of debit addresses/s that are most suitable for the transaction will change. Thus, if you store 1,000,000 TKEY in your wallet and want to send 1 TKEY to the recipient, the transaction amount will not display most of your balance but will select 1 or more addresses for the transaction.

Selecting the recovery method for each digital currency (Blockchain restore)

Now you can choose the recovery method for each currency: API + Blockchain or blockchain.
Note: This is not a syncing process, but rather the choice of a recovery method for your wallet. Syncing takes place with the blockchain — regardless of the method you choose.
https://preview.redd.it/gxsssuxrttx41.png?width=1080&format=png&auto=webp&s=cd9fe383618dda0e990e86485652ff95652a8481

What are the differences between recovery methods?

API + Blockchain

In order not to load the entire history of the blockchain, i.e. block and transaction headers, the API helps you quickly get point information about previous transactions. For example, If your transactions are located in block 67325 and block 71775, the API will indicate to the node the necessary points for restoring Your balance, which will speed up the “recovery” process.
As soon as the information is received, communication with the peers takes place and synchronization begins from the control point, then from this moment, all subsequent block loading is carried out through the blockchain. This method allows you to quickly restore Your existing wallet.
‘’+’’ Speed.
‘’-’’ The API server may fail.

Blockchain

This method loads all block headers (block headers + Merkle) starting from the BIP44 checkpoint and manually validates transactions.
‘’+’’ It always works and is decentralized. ‘’-’’ Loading the entire blockchain may take a long time.

Why do I need to switch the recovery method?

If when creating a wallet or restoring it, a notification (!) lights up in red near the selected cryptocurrency, then most likely the API has failed, so go to SettingsSecurity CenterPrivacyBlockchain Restore — switch to Blockchain. Syncing will be successful.

Selecting the address format

You can choose the address format not only for Bitcoin but also for Litecoin. Legacy, SegWit, Native SegWit. Go to SettingsManage WalletsAddress Format.

https://preview.redd.it/nqj0nwutttx41.png?width=1080&format=png&auto=webp&s=fc04b8ee8339ab27d3203ff551013cda7aa9e8db

Working at the code level

Enhanced validation of transactions and blocks in the network

Due to the increased complexity in the Tkeycoin network, we have implemented enhanced validation of the tkeycoin consensus algorithm, and this algorithm is also available for other cryptocurrencies.

What is the advantage of the enhanced validation algorithm for the user

First, the name itself speaks for itself — it increases the security of the network, and second, by implementing the function — we have accelerated the work of the TkeySpace blockchain node, the application consumes even fewer resources than before.
High complexity is converted to 3 bytes, which ensures fast code processing and the least resource consumption on your device.

Synchronization

The synchronization process has been upgraded. Node addresses are added to the local storage, and instant synchronization with nodes occurs when you log in again.

Checking for double-spending

TkeySpace eliminates “double-spending” in blockchains, which is very valuable in the Bitcoin and Litecoin networks.
For example, using another application, you may be sent a fake transaction, and the funds will eventually disappear from the network and your wallet because this feature is almost absent in most applications.
Using TkeySpace — you are 100% sure that your funds are safe and protected from fraudulent transactions in the form of “fake” transactions.

The bloom filter to check for nodes

All nodes are checked through the bloom filter. This allows you to exclude fraudulent nodes that try to connect to the network as real nodes of a particular blockchain.
In practice, this verification is not available in applications, Tkeycoin — decided to follow a new trend and change the stereotypes, so new features such as node verification using the bloom filter and double-spending verification are a kind of innovation in applications that work with cryptocurrencies.

Updating the Binance and Ethereum libraries

Updated Binance and Ethereum libraries for interaction with the TOR network.

Interface

Function — to hide the balance

This function allows you to hide the entire balance from the main screen.

Advanced currency charts and charts without authentication

Detailed market statistics are available, including volumes, both for 1 day and several years. Select the period of interest: 1 day, 7 days, 1 month, 3 months, 6 months, 1 year, 2 years.
In version 1.3.0, you can access charts without authentication. You can monitor the cryptocurrency exchange rate without even logging in to the app. If you have a pin code for logging in, when you open the app, swipe to the left and you will see a list of currencies.

https://preview.redd.it/f3thqv1wttx41.png?width=1080&format=png&auto=webp&s=1906307f7ad1fd6db47bf270ce7c57185267b1a3

News

In the market data section — in the tkeyspace added a section with current news of the cryptocurrency market.

https://preview.redd.it/lz1e7ynxttx41.png?width=1080&format=png&auto=webp&s=b6f1858d8752cfc6187df5d7b8a2ce25813e2366

Blockchain Explorer for Tkeycoin

Transaction verification for Tkeycoin is now available directly in the app.

Independent Commission entry for Bitcoin

Taking into account the large volume of the Bitcoin network, we have implemented independent Commission entry — you can specify any Commission amount.
For other currencies, smart Commission calculation is enabled based on data from the network. The network independently regulates the most profitable Commission for the sender.

New digital currencies

The TkeySpace wallet supports +59 cryptocurrencies and tokens.

Cryptocurrencies

Tkeycoin (TKEY), Bitcoin (BTC), Litecoin (LTC), Ethereum (ETH), Bitcoin Cash (BCH), DASH, Binance (BNB), EOS.

Stablecoins

TrueUSD (TUSD), Tether USD (USDT), USD Coin (USDC), Gemini Dollar (GUSD), STASIS EURO (EURS), Digix Gold Token (DGX), Paxos Standard (PAX), PAX Gold (PAXG), Binance USD (BUSD), EOSDT, Prospectors Gold (PGL).

ERC-20, BEP2, and EOS tokens

Newdex (NDX), DigixDAO ERC-20 (DGD), Chainlink ERC-20 (LINK), Decentraland ERC-20 (MANA), EnjinCoin ERC-20 (ENJ), the Native Utility (NUT), 0x Protocol ERC-20 (ZRX), Aelf ERC-20 (ELF), Dawn DAO ERC-20 (AURA), Cashaaa BEP2 (CAS), Bancor ERC-20 (BNT), the Basic Attention Token ERC-20 (BAT), Golem ERC-20 (GNT), Mithril ERC-20 (MITH), MEETONE, NEXO ERC-20, Holo ERC-20 (HOT), Huobi Token ERC-20 (HT), IDEX ERC-20, IDEX Membership ERC-20 (IDXM), Bitcoin BEP2 (BTCB), Waltonchain ERC-20 (WTC), KuCoin Shares ERC-20 (KCS), Kyber Network Crystal ERC-20 (KNC), Loom Network ERC-20 (LOOM), Ripple (XRP), Everipedia (IQ), Loopring ERC-20 (LRC), Maker ERC-20 (MKR), the Status of the ERC-20 (SNT), Ankr Network BEP2 (ANKR), OmiseGO ERC-20 (OMG), ^ american English ERC-20 (^american English), Polymath ERC-20 (POLY), Populous ERC-20 (PPT), Pundi X ERC-20 (NPXS), Parser ERC-20 (REP), Revain ERC-20 (R), Binance ERC20 (BNB-ERC20), Gifto BEP2 (GTO).

Exchange of cryptocurrency

The “Limitless Crypto Exchange” tab is available for a quick transition to an unlimited exchange in 200 digital currencies — 10,000 currency pairs.

How do I update TkeySpace to version 1.3.0?

  1. Go to Google Play on your device — My apps and games — find TkeySpace in the list of apps — click Update.
  2. Go to Google Play on your device-write TkeySpace in the search — click on the app icon — Update.
After the update, you will need to restore your wallet.
submitted by tkeycoin to Tkeycoin_Official [link] [comments]

Questions about Bitcoin reorganization process logic with a rev*.dat file format or byte map.

Hi, I’m currently learning how bitcoin operates by studying the BitcoinCore code and several other bitcoin projects, most of them parsers, and came to a topic of blockchain data storage of blk*.dat and rev*.dat.
While blk*.dat format is more or less documented and the process is described really good (https://learnmeabitcoin.com/guide/blkdat) most of the resources are lacking detailed descriptions of rev*.dat file format and how the process of handling blockchain reorganization (block undo) works. Some Parsers (https://github.com/citp/BlockSci) have rules not to parse new blocks before a certain amount of confirmations so they do not need to deal with the issues of reorganization.
Right now I’m very interested in the logic of blockchain reorganization and found some descriptions:https://en.bitcoin.it/wiki/Bitcoin_Core_0.11_(ch_2):_Data_Storage#Raw_undo_data_.28rev.2A.dat.29:Data_Storage#Raw_undo_data.28rev.2A.dat.29) And an awesome post reply by Pieter Wuille: https://bitcoin.stackexchange.com/questions/57978/file-format-rev-dat I even tried to visualize that answer in a picture: https://prnt.sc/s4ile4
The problem is that all those explanations are dated because of the update (https://github.com/bitcoin/bitcoin/pull/10195) that replaced CTxInUndo class with Coin class (https://github.com/bitcoin/bitcoin/commit/cb2c7fdac2dc74368ed24ae4717ed72178956b92 )
I know that code is the best documentation, but I still find it hard to read and understand, so I’m asking for help to answer these questions:
Apart from learning how everything works, I’m also interested in these topics because they say that it’s possible to get blockstasts faster using rev*.dat files (https://github.com/bitcoin/bitcoin/pull/14802) and I want to properly picture the whole processes with the rev*.dat files.
submitted by cyberwarboy to BitcoinTechnology [link] [comments]

My first work on Bitcoin, New parser for blk file named SpyCBlock

Hello Guys,
I have released the new parser blk file for Bitcoin; it is my first work on Bitcoin and one of the two big projects for my programmer live.

SpyCBlock is my thesis project "Extraction data to Bitcoin Blockchain" with it you can build the 2 complete serializations:
SpyCBlock implemented the partial serialization address graph (This uses the Bitcoin-core with version <= 18.0.1).

With the JSON format is possible to run more analisis on the network, for example, my analisis on the type of script run with the AnalyticsPyBlock.

I want the presentation for testing my idea inside the project.

PS: I'm developing the documentation, the home is here
submitted by crazyjoker96 to Bitcoin [link] [comments]

Type of Script PubKey used before the Segregated Witness

Type of Script PubKey used before the Segregated Witness
Hi Guys,

I'm studying Bitcoin protocol and now I want to share with you my analysis on script PubKey on Bitcoin blockchain for convalidation the analysis with the community.

I'm building a parser Bitcoin core file blk and I want to create a method of analysis of Bitcoin network, with the data build with the parser, yesterday I have built a Python application for analyzing the data.

For a moment I have analyzed the type of script used inside the network of Bitcoin from 2009 to 2016 an this is the result

The predominant script used in the network is P2PKH (This is foregone).

Global analysis of all type of script in the network.

The second script is P2PK (This is mini foregone because it has a privacy problem)

https://preview.redd.it/pylm1ozz14v31.png?width=700&format=png&auto=webp&s=d5fa5586390d4b578bec27b5335733be7f9789b7

But the result until I think is very interesting is the more data stored on the blockchain bitcoin with the OP_RETUN script, but for how I was writing the python application for evaluating the type of script catalog the script not valid (their script before the operator OP_RETURN) how Script No Standard, and this is the result

https://preview.redd.it/v9cc52ys24v31.png?width=700&format=png&auto=webp&s=551d76aa400b50ad3e3b4d6c2fb9fb5380a67adc

Some comment or critique on this analysis is welcome, and if you think this analysis isn't correct please give me the motivation to correct my error on this, help me to learn.

Thanks and Good day
submitted by crazyjoker96 to Bitcoin [link] [comments]

Creating own balance extractor tool

I'm developing my own balance extractor for Bitcoin. I'm not extracting balances directly from block files. Instead I'm asking the bitcoin daemon via rpc.
I think it may be slower than doing it directly but the reason for this is that I wan't to use this tool for multiple bitcoin-like blockchains. Earlier I was using some blockchain parsers but each of those did not successfully finish their work.
For example one has stopped somewhere in the "middle" of blockchain with some error. Second one did not work with other forked blockchain. So I decided to make my own in my favorite language.
I'm iterating through all blocks till the latest one and here I have a few questions.
  1. Can once saved block be changed, like the BTC value in vout, or even whole transaction?
  2. Should I wait for specific number of confirmations before extracting balance from the latest blocks?
  3. Can value in vout be negative?
  4. Is there anything else I should be careful about?
submitted by drunkmax00va to Bitcoin [link] [comments]

Google filed a patent application that uses block lattice

https://www.forbes.com/sites/michaeldelcastillo/2019/02/04/navigating-bitcoin-ethereum-xrp-how-google-is-quietly-making-blockchains-searchable/#d6c7004248f3
From near the end of the article, with a link to the patent application:
"Google has filed numerous patents related to the blockchain, including one in 2018 to use a “lattice” of interoperating blockchains to increase security, a big deal in a world where untold millions of crypto have been stolen by hackers."
Google's patent application is dated September 22, 2017. I can't understand the description in the patent application. But anyway, it would be interesting to know whether anything Google is trying to patent here is prior art that Nano had already developed. Colin coined the term 'block lattice' and if nothing else it is interesting to see the term being more widely used. I'm not sure, but Colin may also have invented the block lattice idea/structure (?) A big concern with the US Patent Office in recent years is how easily they'll grant patents to patent trolls. I have no idea whether that's what's happening here.
submitted by Live_Magnetic_Air to nanocurrency [link] [comments]

BlockParser - A way to get the balance of all bitcoin addresses

For same time, I was searching for a way to get the balance of all bitcoin addresses in order to do statistical analysis of the wealthy distribution. If finally found a way to do it without using an external API such as blockchain.info. This method will allow you to create a list of all bitcoin addresses ordered by balance, excluding empty ones. This does not work properly for addresses involved in multisignature transactions.
Prerequisites:
Step 1 – Parse all blocks using this small program
#!/usbin/perl # File: blockParser.pl # Author: Saulo Fonseca # Licence: GNU GPLv3 use warnings; use strict; use JSON; # Get argument as block number my $blockNumber = $ARGV[0] + 0; # Convert to int # Get all transactions my $blockHash = `bitcoin-cli getblockhash $blockNumber`; chomp($blockHash); my $out = `bitcoin-cli getblock $blockHash`; my $json = decode_json($out); if (defined $json->{'tx'}) { my $txs = $json->{'tx'}; foreach my $txHash (@$txs) { $out = `bitcoin-cli getrawtransaction $txHash 1`; $json = decode_json($out); if (defined $json->{'vin'}) { # Get all input transactions my $vins = $json->{'vin'}; foreach my $vin (@$vins) { if (defined $vin->{'txid'}) { my $tx = $vin->{'txid'}; my $index = $vin->{'vout'}; printf("%s\t%d\tdel\n",$tx,$index); } } } if (defined $json->{'vout'}) { # Get all output addresses my $vouts = $json->{'vout'}; foreach my $vout (@$vouts) { if (defined $vout->{'scriptPubKey'}->{'addresses'}) { my $keys = $vout->{'scriptPubKey'}->{'addresses'}; my $value = $vout->{'value'}; my $index = $vout->{'n'}; foreach my $key (@$keys) { printf("%s\t%d\t%s\t%.8f\n",$txHash,$index,$key,$value); } } } } } } 
This program will get the height of the block as an argument and return a tab separated output with the following columns:
Here is an example of the output for the block 100000 (with cropped TXIDs in order to fit the reddit width):
8c14f0...d06d87 0 1HWqMzw1jfpXb3xyuUZ4uWXY4tqL2cW47J 50.00000000 87a157...382e03 0 del fff252...9702c4 0 1JqDybm2nWTENrHvMyafbSXXtTk5Uv5QAn 5.56000000 fff252...9702c4 1 1EYTGtG4LnFfiMvjJdsU7GMGCQvsRSjYhx 44.44000000 cf4e29...bf3ec3 1 del 6359f0...236ec4 0 1H8ANdafjpqYntniT3Ddxh4xPBMCSz33pj 0.01000000 6359f0...236ec4 1 1Am9UTGfdnxabvcywYG2hvzr6qK8T3oUZT 2.99000000 f4515f...72600b 0 del e9a668...b80c1d 0 16FuTPaeRSPVxxCnwQmdyx2PQWxX6HWzhQ 0.01000000 
You should process all blocks using this program and send the output to a text file. The command in bash that does it is:
seq -w 1 555000 | while read i; do (./blockParser.pl $i >> blocks.txt); done 
This will take a while depending on the performance of your system. However, it must be done only one time.
Step 2 – Export the list of all spent transactions
Use the following command to export all spent transactions on all processed blocks on step 1:
grep -h del blocks.txt | cut -f1,2 > spent.txt 
The lower cap letter L in “del” will not match any entry on a hex string nor on an address, as it is not allowed in base58.
Step 3 – Get the list of all UTXO
By removing all spent transactions, you have the list of all UTXO (unspent transactions output). Do it by running:
grep -v -f spent.txt blocks.txt > utxo.txt 
Step 4 – List all addresses balances
Using the UTXO list, you can get the balances of all addresses by running:
cat utxo.txt | cut -f3,4 | awk '{ seen[$1] += $2 } END { for (i in seen) printf "%.8f\t%s\n", seen[i], i }' | sort -n -r > anyBTC.txt 
Conclusion
You can import this last file on your favorite analysis program in order to have a better idea how the distribution of bitcoins over the addresses is.
PS: After the arrival of new blocks by the network, you only need to process the step 1 for the new blocks and repeat all the other steps in order to have an updated version of the files.
submitted by sauloqf to Bitcoin [link] [comments]

How to convert block hex into human-readable format? (Block parser)

I want to analyze the frequency and size of transactions per block in bitcoin. I'm wondering if anyone has written an open-source program to convert blocks stored in hex to text, or objects (any programming language is fine)?
Or if you know of somebody who's just got a few blocks already decoded that would be helpful too. I'm just trying to get a hold of data in a more easily-workable form since I imagine writing a parser from scratch would take awhile.
I've looked into the tool BlockSci, that can do something similar, but it requires a fully operational node, and I don't have 160GB of spare memory on me. I'm looking for something that works a block at at time instead of with the entire chain.
submitted by darocoth to Bitcoin [link] [comments]

Anyone have relatively small blockchain file for me to use?

I'm looking to write a parser. I see a download for the 21GB blockchain file, are there smaller ones? Does anyone have an example one I could download to work on?
Thanks!
submitted by robot_one to Bitcoin [link] [comments]

Four Step Module for Easy Recruitment with Blockchain technology!

Prime Talent Chain promises to bring a revolution in the hiring space with its innovative and advanced four step module. Equipped with advanced technologies such as Big Data, Artificial Intelligence and Machine Learning, PTC transforms the lengthy hiring cycle.

Prime Source - Resume Sourcing Algorithm
The algorithm works in such a way that it collects resumes from multiple sources. Through predictable analysis, it also sources the resumes of passive job seekers.

PrimeScreen - Technology enabled tool with a preliminary background check
This tool eradicates the need for extensive search engines by applying Artificial Intelligence, Blockchain, and Bitcoin. It also performs a background check.

PrimeRecruit - Automated calling systems
It uses machine learning over IVRs, Chatbots, and automated calling systems to onboard candidates and also convinces them to download the PTC application.

Prime Parser - Matches resume with Skill Community
This digital tool applies Machine Learning and Data Analytics to match the resume with the right skill community.
Skill Communities are nothing but the collection of resumes with similar skills which are developed using blockchain technology.

Be a part of the growing community by investing in the right platform!
submitted by primetalent to u/primetalent [link] [comments]

The One Simple Reason CTOR Is Needed According to Jihan

The One Simple Reason CTOR Is Needed According to Jihan
https://i.imgur.com/kM5QB6l.png
https://preview.redd.it/9lrqhvs336s11.png?width=681&format=png&auto=webp&s=702bf9980866f439602de08f71f54ad7c9107baf

Source:
https://twitter.com/JihanWu/status/1041691310367760384

Jihan's Wormhole (OMNI protocol) is fundamentally insecure for 0-conf, 1-conf WITHOUT CTOR. That is why CTOR is needed according to them.


Logical Proof that Wormhole is Not 0-Conf or even 1-Conf secure:
https://www.reddit.com/btc/comments/9gmi4z/logical_proof_that_wormhole_omni_is_not_secure/

Wormhole/OMNI specification itself says it is vulnerable for 0-conf and 1-conf:
From: https://github.com/OmniLayespec
Occasionally the bitcoin blockchain experiences a "reorg", when the current longest chain is replaced by another longer chain. Sometimes this results in recent transactions changing their order, or which transactions are included.
The Omni Protocol depends heavily on the order in which transactions appear in the blockchain. Even transactions in the same block can have different meaning or validity depending on the order in which they are recorded. Consequently, wallets and other blockchain parsers which also parse Omni Protocol transactions need to detect these reorganizations and reparse the affected blocks, changing Omni Protocol balances according to the the new ordering of transactions.


submitted by etherbid to btc [link] [comments]

Is there some source for the exact contributions bonus function?

I have made some more progress on a script that will allow anyone with a synced bitcoin node to generate contributions data it now matches the output from my other parser that gathers the block/transaction data from blockchain.info.
The next step is modifying the values into an actual tez distribution value based on the block height of a contribution which determines which rewards period the contribution output was made in. Its worth noting that the same contributor could have contributed during multiple different rewards periods so it has to be done on per output / transaction basis.
Updated to apply rewards and bonuses. Some decision needs to be made on rounding but besides that the outputted data is good to go as a the basis for a claim proof. At this point the coding for the proof needs to be coded in OCaml (I'm in the process of learning it, it doesn't seem too hard)
Some python acting as pseudo-code for a dummy claim process
submitted by JonnyLatte to nTezos [link] [comments]

Transfer Bitcoin from Coinbase to Blockchain - YouTube Bitcoin Documentary  Crypto Currencies  Bitcoins ... Future of Bitcoin, blockchain & DeFi? Don Tapscott ... Bitcoin NodeJS Part 3 - Create a Brain Wallet How hack bitcoin private key hack blockchain script 2019 1 ...

The ~/.bitcoin/chainstate folder contains a list of every unspent transaction output in the blockchain. These UTXOs are stored in a LevelDB database, which is a key-value store database (like Redis), but it uses flat files instead of a database server. Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.. Visit Stack Exchange I'm using bitcoin-qt and have a local copy of the blockchain, in which I'm running some analysis with the JSON-RPC API using mostly getblock and getrawtransaction. I have no need writing or sending transactions in this use case. It's overkill to run a full node just to read the blockchain, and it hurts my analysis performance, too. Hashes for blockchain_parser-0.1.5-py3-none-any.whl; Algorithm Hash digest; SHA256: 6c0d4cdbb11a3497593bee05ff0e46a989f6225f2f01b1256834b9760e18d571 BTCparsers - blockchain data monitoring bots Currently, the blockchain of Bitcoin network contains more than 600 thousand blocks. Each of them is built according to a special structure in order to store information about all payments (transactions), both outgoing and incoming.

[index] [22260] [27556] [15276] [10968] [8231] [14863] [34344] [30364] [33713] [63]

Transfer Bitcoin from Coinbase to Blockchain - YouTube

Bitcoin NodeJS Tutorial. Use body-parser to collect POST data in a web form, convert that POST data into a private key pair using bitcore-lib. #Bitcoin#DeFi#blockchain DeFi protocols like yearn.finance, Serum, Polkadot are booming again! I will reveal my crypto alt coins portfolio in the next video ... This animation show's the distribution of bitcoin value in the blockchain over it's entire history. Age is determined by all bitcoins associated with a particular public key and it's date of last ... In this video, I will be showing how to create a custom blockchain application in Rust. Before we start coding, I will also explain what is blockchain and what a block actually looks like. After ... This video provides an introduction to Bitcoin and the Blockchain Industry. This video provides an introduction to Bitcoin and the Blockchain Industry.

#