Connect with us

Bitcoin

Why does vout sometimes not have address?

I am trying to parse all transactions. I found that some transactions do not have addresses in their vout.

Published

on

The following content was written by thx9527 on July 07, 2020, 04:40:54 AM in the thread Why does vout sometimes not have address?. All content is owned by the author of the bitcointalk.org post. (original)


I am trying to parse all transactions.

I found that some transactions do not have addresses in their vout.

There are two situations that vout does not have addresses.

The first one is the miner reward.

For example, run this:

Code:
bitcoin-cli getrawtransaction 4bec1175f9682fc10118bbb146d1def8fd82fdffdf27da8beea327469f79b2b0 true

Here is the result:


Code:
{

  “txid”: “4bec1175f9682fc10118bbb146d1def8fd82fdffdf27da8beea327469f79b2b0”,

  “hash”: “4bec1175f9682fc10118bbb146d1def8fd82fdffdf27da8beea327469f79b2b0”,

  “version”: 1,

  “size”: 135,

  “vsize”: 135,

  “weight”: 540,

  “locktime”: 0,

  “vin”: [

    {

      “coinbase”: “048521131a028d00”,

      “sequence”: 4294967295

    }

  ],

  “vout”: [

    {

      “value”: 50.25892368,

      “n”: 0,

      “scriptPubKey”: {

        “asm”: “04994b2548a865ad7e786c691bb9cac7d15afc60b8b4500e24e79ec1cd910830b7dd799defdfdc1a7136e4976d2086daa319a7923f633987905a86aaece612ab9b OP_CHECKSIG”,

        “hex”: “4104994b2548a865ad7e786c691bb9cac7d15afc60b8b4500e24e79ec1cd910830b7dd799defdfdc1a7136e4976d2086daa319a7923f633987905a86aaece612ab9bac”,

        “type”: “pubkey”

      }

    }

  ],

  “hex”: “01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff08048521131a028d00ffffffff011008912b01000000434104994b2548a865ad7e786c691bb9cac7d15afc60b8b4500e24e79ec1cd910830b7dd799defdfdc1a7136e4976d2086daa319a7923f633987905a86aaece612ab9bac00000000”,

  “blockhash”: “00000000000009e63c0dc84756b1f535b0c8d7c51b849e60b6ce893a9c6a4d51”,

  “confirmations”: 506698,

  “time”: 1308295622,

  “blocktime”: 1308295622

}


You can see there is no addresses field in the first and only object of vout.




The second one is not a miner reward.

For example, run this:

Code:
bitcoin-cli getrawtransaction 4caea993e7caa859840a8ebac457c31420bb4fb79b528d870556c5a2eec5da7a true

Here is the result:


Code:
{

  “txid”: “4caea993e7caa859840a8ebac457c31420bb4fb79b528d870556c5a2eec5da7a”,

  “hash”: “4caea993e7caa859840a8ebac457c31420bb4fb79b528d870556c5a2eec5da7a”,

  “version”: 1,

  “size”: 234,

  “vsize”: 234,

  “weight”: 936,

  “locktime”: 0,

  “vin”: [

    {

      “txid”: “c245fbf8c03de1ab3372f72cafbd40ef47882fc0aba02c424e70cb4b44c65241”,

      “vout”: 0,

      “scriptSig”: {

        “asm”: “304502200eee831084af8de8ebac477d3c56b5a4d428522df0ccaed41ede77570eac27a5022100af5786d35cdef15a97a775542217a7e9ee85b06d4f07c50bab768bce189e3d9e[ALL]”,

        “hex”: “48304502200eee831084af8de8ebac477d3c56b5a4d428522df0ccaed41ede77570eac27a5022100af5786d35cdef15a97a775542217a7e9ee85b06d4f07c50bab768bce189e3d9e01”

      },

      “sequence”: 4294967295

    }

  ],

  “vout”: [

    {

      “value”: 115.00000000,

      “n”: 0,

      “scriptPubKey”: {

        “asm”: “OP_DUP OP_HASH160 208bbec311f62e7881ee746d7f3a6ba097203815 OP_EQUALVERIFY OP_CHECKSIG”,

        “hex”: “76a914208bbec311f62e7881ee746d7f3a6ba09720381588ac”,

        “reqSigs”: 1,

        “type”: “pubkeyhash”,

        “addresses”: [

          “13y62oZbRtF4SJx2sezC3PvvDBfXx42jJb”

        ]

      }

    },

    {

      “value”: 2.00000000,

      “n”: 1,

      “scriptPubKey”: {

        “asm”: “0405d71f20e493a0721e705944e7151a1d7c1b9a9cd546cc44c2f348fa6e27b588ddfdd7b3e52c9af208598f3b2ac519af9d7ee78cea4f237ee5028020e33633c9 OP_CHECKSIG”,

        “hex”: “410405d71f20e493a0721e705944e7151a1d7c1b9a9cd546cc44c2f348fa6e27b588ddfdd7b3e52c9af208598f3b2ac519af9d7ee78cea4f237ee5028020e33633c9ac”,

        “type”: “pubkey”

      }

    }

  ],

  “hex”: “01000000014152c6444bcb704e422ca0abc02f8847ef40bdaf2cf77233abe13dc0f8fb45c2000000004948304502200eee831084af8de8ebac477d3c56b5a4d428522df0ccaed41ede77570eac27a5022100af5786d35cdef15a97a775542217a7e9ee85b06d4f07c50bab768bce189e3d9e01ffffffff02001374ad020000001976a914208bbec311f62e7881ee746d7f3a6ba09720381588ac00c2eb0b0000000043410405d71f20e493a0721e705944e7151a1d7c1b9a9cd546cc44c2f348fa6e27b588ddfdd7b3e52c9af208598f3b2ac519af9d7ee78cea4f237ee5028020e33633c9ac00000000”,

  “blockhash”: “000000000000098444048edc683a41d26be975e302019a51a7ca3c2cc21d4813”,

  “confirmations”: 506676,

  “time”: 1308309497,

  “blocktime”: 1308309497

}

You can see there is no addresses field in the second object of vout.

Please explain this or provide some keyword for me to search! Thank you guys!

The following content was written by achow101 on July 07, 2020, 04:48:34 AM in the thread Why does vout sometimes not have address?. All content is owned by the author of the bitcointalk.org post. (original)


At the protocol level, Bitcoin doesn’t use addresses. It uses a custom scripting language. Addresses are merely a human shorthand for some kinds of scripts. These scripts have a standard form, so when software sees those scripts, it can produce the corresponding address. However not all (and in fact most) scripts correspond to addresses.

What you are looking at is a Pay to pubkey script. This does not have an address. Thus no address is shown.

The following content was written by TheArchaeologist on July 07, 2020, 11:31:10 AM in the thread Why does vout sometimes not have address?. All content is owned by the author of the bitcointalk.org post. (original)


^^ That being said, most explorers translate the (uncompressed) pubkey which is in the script to an address.

So what happens:
Code:
txid = 4bec1175f9682fc10118bbb146d1def8fd82fdffdf27da8beea327469f79b2b0
pubkey from script = 04994b2548a865ad7e786c691bb9cac7d15afc60b8b4500e24e79ec1cd910830b7dd799defdfdc1a7136e4976d2086daa319a7923f633987905a86aaece612ab9b
pubkey to address = 19wBtLQYtLgriGWLjgAXWwedTBgPYbjE97

txid = 4caea993e7caa859840a8ebac457c31420bb4fb79b528d870556c5a2eec5da7a
pubkey from script =0405d71f20e493a0721e705944e7151a1d7c1b9a9cd546cc44c2f348fa6e27b588ddfdd7b3e52c9af208598f3b2ac519af9d7ee78cea4f237ee5028020e33633c9
pubkey to address = 12WSoZ84ZJAKDo4MbbgKQtw3qT8gTF2o4e

The following content was written by BTCW on July 08, 2020, 02:18:33 AM in the thread Why does vout sometimes not have address?. All content is owned by the author of the bitcointalk.org post. (original)


You need a better explorer. Check this out, you can view each transaction (including the one in the OP) either visually, as JSON or as the raw tx dada. It’s awesome.

https://learnmeabitcoin.com/explorer/transaction/4bec1175f9682fc10118bbb146d1def8fd82fdffdf27da8beea327469f79b2b0

The following content was written by TheArchaeologist on July 08, 2020, 06:10:32 AM in the thread Why does vout sometimes not have address?. All content is owned by the author of the bitcointalk.org post. (original)


You need a better explorer. Check this out, you can view each transaction (including the one in the OP) either visually, as JSON or as the raw tx dada. It’s awesome.

https://learnmeabitcoin.com/explorer/transaction/4bec1175f9682fc10118bbb146d1def8fd82fdffdf27da8beea327469f79b2b0
That’s based on bitcoin core 18.0 so it’s just running an older version of bitcoin core than the current one or OP’s one. Back then bitcoin-cli or rpc-calls would indeed do the translation to address based on public key.

Continue Reading
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Legal

Korbit charged for excessive customer data collection

Korbit, a well-known cryptocurrency exchange, has been charged and fined over “collecting excessive personal data” from at least one of its customers.

Published

on

Korbit, a well-known South Korean Cryptocurrency exchange, has been charged and fined over “collecting excessive personal data” from at least one of its customers. 

Korbit is a South Korean company that is heavily vested in the cryptocurrency market. The brand is owned and operated by Korbit Inc, a company located in Gangnam-gu, Seoul, South Korea. The brand commenced operations in 2014 after securing huge financing from several venture capitalists.

Korbit performs the following cryptocurrency-related services:

  • Cryptocurrency trading for the local South Korean market.
  • Fiat to cryptocurrency exchange services using the South Korean Won (KRW) as the fiat currency of choice.

South Korea has a large cryptocurrency trading market, largely populated by local players and companies who moved there when the Chinese ban on cryptocurrency trading came into effect. By providing the local and regional market the opportunity to use the local currency to purchase cryptocurrency tokens or secure cryptocurrencies for trading purposes, Korbit fulfills a large need.

So Korbit is a very well-known exchange, and they get fined for a matter like that has been a matter of talk between crypto experts.

A Small But Significant Fine

According to Yonhap, a news agency, “ They have been charged USD 4000 for this by a government watchdog for ordering a customer who had attempted to activate a dormant account on its platform to upload a photograph of their national ID card.”

The court took the case before the Personal Information Protection Committee. Then they met in a plenary session to rule on the case. The crypto exchange Korbit argued that it needed proof of a photo ID to prevent financial crimes such as voice phishing scams, adding that account users could begin trading immediately after activating dormant accounts.

But the committee overruled their argument and decided in favor of the user in question, claiming that none of Korbit’s other “big four” crypto exchange rivals (Upbit, Bithumb, and Coinone) required photo ID submission activate such accounts.

The committee ruled that mobile phone verification would have been sufficient in this instance. The exchange was guilty of violating the “principles of minimum personal information collection” specified in the Personal Information Protection Act, which was passed last year.

The decision made was absolutely correct because there was no point for them to ask for full ID verification. Mobile verification was acceptable, and the demand for photo ID verification was completely useless.

Korbit Jumps Into NFT Craze

In the meantime, Korbit has also started selling these days popular non-fungible tokens (NFTs) for a hit South Korea drama series. Per EDaily, Korbit struck a partnership deal with the production company Studio Dragon, the creator of the drama Vincenzo, a mafia-themed series starring Song Joong-ki that aired on the cable network tvN earlier this year.

The deal will see the company sell 100 limited edition official pieces of art based on the show on a first-come-first-served basis on July 21.

Korbit stated that it plans to create more NFT items for “other popular dramas” produced by Studio Dragon.

The company also said and showcased one of the items it plans to sell – an NFT featuring an iconic lighter used by the main and titular character in the drama, also distributed by the streaming giant Netflix.

Continue Reading

Bitcoin

Bitcoin Core 22.0 To Add Hardware Wallet Support

Bitcoin Core will start to support connection with Hardware Wallets with HWI library. New options for hardware wallets will be added to the settings.

Published

on

The latest version of Bitcoin Core v22.0 will add support for hardware wallets. It will start to support connection with Hardware Wallets with HWI Python library. The overall interface of the wallet will change in the latest version and new options for hardware wallets will be added to the settings and then we will be able to create a new wallet with our connected devices.

It is pretty good news and bitcoin users are looking forward to giving this wallet a go as soon as it releases.

Bitcoin Core can be launched with -signer=<cmd> where <cmd> is an external tool that can sign transactions and perform other functions. For example, it can be used to communicate with a hardware wallet.

Among other changes, Bech32m (witness v1) addresses are now supported for most RPC calls. Adjustments were made to the RPC calls for banning, network, and peer information. It no longer supports MacOS versions older than 10.14 “Mojave”.

22.0 Release Notes Draft

Below is a copy of the relevant section of the release notes that mentions the signing feature.


GUI Changes

External signers such as hardware wallets can now be used. These require an external tool such as HWI to be installed and configured under Options -> Wallet. When creating a new wallet a new option “External signer” will appear in the dialog. If the device is detected, its name is suggested as the wallet name. The watch-only keys are then automatically imported. Receive addresses can be verified on the device. The send dialog will automatically use the connected device. This feature is experimental and the UI may freeze for a few seconds when performing these actions.

Example of Usage

Although this tool is hosted under the Bitcoin Core GitHub organization and maintained by Bitcoin Core developers, it should be used with caution. It is considered experimental and has far less review than Bitcoin Core itself. Be particularly careful when running tools such as these on a computer with private keys on it.

When using a hardware wallet, consult the manufacturer’s website for (alternative) software they recommend. As long as their software conforms to the standard below, it should be able to work with Bitcoin Core.


What does the HWI library do?

The primary use of HWI is to discover hardware wallets that are connected via USB ports. It uses the udev project, which means that Windows is not supported. It only works for macOS and Linux. Fortunately, HWI and hardware wallet support are optional in Bitcoin Core. It will continue to function normally if HWI is not installed.

HWI is a command-line program that reads commands from the terminal and sends them to the device. The device behaves as if a human is entering physical input to it and executes the commands the same way it would be done manually. It also has a Python API, which makes it easier to add an HTTP API in the future if desired by the project maintainers.

Supported Devices

The following hardware wallets are compatible with most commands of HWI:

  • Ledger Nano X
  • Ledger Nano S
  • Trezor Model T
  • Trezor One
  • BitBox01
  • BitBox02
  • KeepKey
  • Coldcard

HWI has a support policy that states that hardware wallets must use as much open-source firmware as possible. Closed-source parts are acceptable if they are required by a non-disclosure agreement (NDA). Closed-source firmware is tolerated if the vendor provides active support for it, but the hardware wallet support will be dropped if the vendor stops maintaining HWI support for their hardware wallet. Also, if the hardware wallet stops receiving security updates, HWI support for it will be dropped if security vulnerabilities are found.

Continue Reading

Mining

Meet The Large Companies Investing In Antminers

Why are these companies only buying large quantities of Bitmain Antminer hardware, and how do they receive them?

Published

on

Along with Gryphon and Hut 8 Mining Corp, many other companies invest in bitcoin miners. There’s a reason why Bitmain Antminers are some of the most popular in the world. All of these invest in Bitmain mining hardware only. Gryphon is a minor mining operation compared to some of the more prominent players, but they all have a role to play. We will discuss TeraWulf first.

TeraWulf

TeraWulf is a new mining company based in the United States purchasing 30,000 miners from Bitmain with plans to have greater than 3 Exahashes (EH/s) of Bitcoin Mining power, which is some serious power that would put it in the top 10 mining pools in terms of hash rate. 

TeraWulf is soon to have a Nasdaq Listing; it agreed to merge with Ikonics, an imaging tech company whose stock is traded on Nasdaq. The newly merged company will trade under “WULF”.

TeraWulf is an example of a medium-sized operation, who has also placed its trust in Bitmain to provide mining hardware.

TeraWulf has a long-term goal to mine Bitcoin with more than 90% Zero-Carbon energy. It has around 50 megawatts of electricity capacity, with long-term plans to increase this to 800 Megawatts by 2025. This would enable a hashrate of more than 23 EH/s. It is ambitious, as it would be in the top 5 of hashrate.

TeraWulf’s low-carbon commitment is a sign of the times with concerns about the carbon footprint of the Bitcoin blockchain. Players the size of TeraWulf can make a difference in the carbon footprint of Bitcoin and help set trends.

Core Scientific

Core Scientific is a mining company in North America. It has recently completed a buy of 112,800 ASIC mining rigs from Bitmain. Core Scientific provides hosting services for miners alongside its operations bought S19 Pro, S19j, and S19j Pro miners intending to double its fleet of miners. Core Scientific can also repair Bitmain mining machines that are under warranty, thus offering Bitmain Warranty services in North America.

Core Scientific intends to use half of the machines it has ordered for its mining operations. They will use the other half to fulfill contracts with existing mining clients.

The large 112,800 shipment and future ones of similar magnitude will help Core Scientific more than double its share of Bitcoin’s hashrate. Core scientific currently has approximately 5% of the current Bitcoin Hashrate. They intend to increase this to 12$, according to their CEO Kevin Turner.

Turner’s forecast aligns with the growing presence of North America in the Bitcoin mining sphere. 

Along with Core scientific, Gryphon, and TeraWulf, other mining companies are looking to expand their operations, such as Marathon, Riot, and Blockcap.

Kevin does not expect the trend of big players investing in the mining space to stop soon, and new prominent players are continuing to enter the game. 

Kevin stated that larger numbers of publicly traded companies, large family companies, and hedge funds are looking for trustworthy mining operations in North America. Kevin believes that the United States is interested in being a leader in digital assets, despite other countries being early adopters before the United States was.

Marathon Patient Group

Marathon is another significant player in the Bitcoin mining industry, based in Las Vegas. They mined no fewer than 196 Bitcoins in 2021, worth over $11 million at current prices. Marathon has planned to expand its mining operation to have no fewer than 100,000 miners online by 2022. Marathon’s hold more than 5,000 Bitcoin. Marathon received an order in Q1 of 2021 for 1,300 Bitmain S19 Pro mining rigs.

Marathon will have ongoing shipments from Bitmain throughout 2021, with a plan to have over 100,000 online by January 2022. Marathon’s total network hashrate is estimated at 10.3 Exahashes per second by then, putting them in the top 10. The company used stock offerings and other financings to invest in the latest Bitmain hardware.

Marathon has planned its high-speed expansion to keep up with other big names in the mining industry. The new machines coming online in 2021 after heavy demand has caused the Bitcoin difficulty to skyrocket due to the flood of hashrate. Bitcoin difficulty is the algorithm that keeps the supply of bitcoins and the Blockchain’s growth constant despite the varying market conditions.

The CEO of Compass Mining, Whit Gibbs, commented on Marathon’s “mammoth” ASIC order. He mentioned he feels that this trend of increasing hashrate and difficulty shows no signs of slowing in 2021 and that it should track with Bitcoin’s price.

Continue Reading

Trending