<p>In the Bitcoin blockchain, each transaction typically includes one or more digital signatures, depending on the number of inputs in the transaction. Digital signatures are used to prove that the person sending the transaction (the &quot;signer&quot;) is the owner of the funds being spent, and to prevent the transaction from being altered once it has been signed.</p>
<p>In the example you gave, Block #735,273 contains 405 transactions. If each of these transactions has at least one input, then it will also have at least one digital signature. If some of the transactions have multiple inputs, then they will have multiple digital signatures. So, the total number of digital signatures in the block will depend on the specific transactions included in the block and the number of inputs in each transaction.</p>
<p>As for the size of the digital signatures, it is true that they can take up a significant portion of the block size. Digital signatures are typically encoded using a format called DER (Distinguished Encoding Rules), which can be quite large. In general, the larger the block size, the more digital signatures it will contain and the more space they will take up.</p>
<p>To answer your specific questions:</p>
<p>The number of digital signatures in a block will depend on the specific transactions included in the block and the number of inputs in each transaction.
Digital signatures are typically encoded using DER, which can take up a significant portion of the block size.
I hope this helps! Let me know if you have any other questions.</p>

CC BY-SA 4.0
2022-12-05T18:01:26.550Z
2022-12-05T18:01:26.550Z
Monstrum
<p>You are right, transactions can have multiple inputs, but you are missing that inputs can also have multiple signatures! You may have heard of multisig addresses: they can require a quorum of multiple keys to sign off on spending a UTXO.</p>
<p>For example transaction <a href="https://blockchair.com/bitcoin/transaction/466fff41b2545720c8992d74a9f41ce07928f8afdcb79036f3a5f4801a1e82a5" rel="nofollow noreferrer">466fff41…1a1e82a5</a> from Block #735,273 has 122 inputs and each of those inputs spends a 2-of-2 P2SH output. The transaction has 244 signatures. So, you not only have to count the transaction inputs in a block, but also count additional signatures due to multisig.</p>
<p>Generally, signatures are fairly sizeable: serialized ECDSA signatures usually have a length of 71-72 bytes. Even when the signatures are discounted against the block weight due to being part of the witness data, the signatures have to be written to disk in full.</p>
<p>E.g. a 2-input-2-output P2WPKH transaction counts as 208.5 vB towards the block weight limit, but will have 372 bytes on disk. 144 bytes of that would be signatures. So, for that transaction, signatures would be about 38.7% of its data.</p>
<p>For the 2-of-2 transaction <a href="https://blockchair.com/bitcoin/transaction/466fff41b2545720c8992d74a9f41ce07928f8afdcb79036f3a5f4801a1e82a5" rel="nofollow noreferrer">466fff41…1a1e82a5</a> from above, about 17,570 bytes out of the data footprint of 31,516 bytes were signatures which amounts to about 55.7% of the whole transaction data.</p>
<p>Unfortunately, I do not have statistics on how many signatures appear in blocks in average.</p>

CC BY-SA 4.0
2022-12-05T18:37:29.010Z
2022-12-05T20:28:17.247Z
2022-12-05T20:28:17.247Z
Murch
<p>I am wondering how many times ECDSA digital signature are used across transactions in one block.<br />
Let's take for example <a href="https://bitcoinexplorer.org/block/0000000000000000000074415f2eec5ba04e2d1617106d46ff1ebacd5a6cc6bf" rel="nofollow noreferrer">Block #735,273</a>. It contains 405 transactions. My understanding is that each transaction should have the same number of signatures as the inputs. If there is one input in a transaction then just one signature, if two then two. Are there any additional situations that digital signatures are used?<br />
I saw some post saying that digital signature takes up 20-40% of the block size, and I am wondering where these signatures are?</p>

<blockchain><multi-signature><signature>
How many digital signatures appear in a block?
Steve
# How many digital signatures appear in a block?

(Asked by: username_0 on 2022-12-04)

I am wondering how many times ECDSA digital signature are used across transactions in one block.  
Let's take for example [Block #735,273](https://bitcoinexplorer.org/block/0000000000000000000074415f2eec5ba04e2d1617106d46ff1ebacd5a6cc6bf). It contains 405 transactions. My understanding is that each transaction should have the same number of signatures as the inputs. If there is one input in a transaction then just one signature, if two then two. Are there any additional situations that digital signatures are used?  
I saw some post saying that digital signature takes up 20-40% of the block size, and I am wondering where these signatures are?

**Tags:** blockchain, multi-signature, signature


---

## 2 answers

### Answer by username_2 on 2022-12-05. Score: 3 | Accepted answer

You are right, transactions can have multiple inputs, but you are missing that inputs can also have multiple signatures! You may have heard of multisig addresses: they can require a quorum of multiple keys to sign off on spending a UTXO.

For example transaction [466fff41…1a1e82a5](https://blockchair.com/bitcoin/transaction/466fff41b2545720c8992d74a9f41ce07928f8afdcb79036f3a5f4801a1e82a5) from Block #735,273 has 122 inputs and each of those inputs spends a 2-of-2 P2SH output. The transaction has 244 signatures. So, you not only have to count the transaction inputs in a block, but also count additional signatures due to multisig.

Generally, signatures are fairly sizeable: serialized ECDSA signatures usually have a length of 71-72 bytes. Even when the signatures are discounted against the block weight due to being part of the witness data, the signatures have to be written to disk in full.

E.g. a 2-input-2-output P2WPKH transaction counts as 208.5 vB towards the block weight limit, but will have 372 bytes on disk. 144 bytes of that would be signatures. So, for that transaction, signatures would be about 38.7% of its data.

For the 2-of-2 transaction [466fff41…1a1e82a5](https://blockchair.com/bitcoin/transaction/466fff41b2545720c8992d74a9f41ce07928f8afdcb79036f3a5f4801a1e82a5) from above, about 17,570 bytes out of the data footprint of 31,516 bytes were signatures which amounts to about 55.7% of the whole transaction data.

Unfortunately, I do not have statistics on how many signatures appear in blocks in average.


---

### Answer by username_1 on 2022-12-05. Score: 1

In the Bitcoin blockchain, each transaction typically includes one or more digital signatures, depending on the number of inputs in the transaction. Digital signatures are used to prove that the person sending the transaction (the "signer") is the owner of the funds being spent, and to prevent the transaction from being altered once it has been signed.

In the example you gave, Block #735,273 contains 405 transactions. If each of these transactions has at least one input, then it will also have at least one digital signature. If some of the transactions have multiple inputs, then they will have multiple digital signatures. So, the total number of digital signatures in the block will depend on the specific transactions included in the block and the number of inputs in each transaction.

As for the size of the digital signatures, it is true that they can take up a significant portion of the block size. Digital signatures are typically encoded using a format called DER (Distinguished Encoding Rules), which can be quite large. In general, the larger the block size, the more digital signatures it will contain and the more space they will take up.

To answer your specific questions:

The number of digital signatures in a block will depend on the specific transactions included in the block and the number of inputs in each transaction.
Digital signatures are typically encoded using DER, which can take up a significant portion of the block size.
I hope this helps! Let me know if you have any other questions.


---

