Jeff Garzik [ARCHIVE] on Nostr: 📅 Original date posted:2014-03-12 📝 Original message:On Wed, Mar 12, 2014 at ...
📅 Original date posted:2014-03-12
📝 Original message:On Wed, Mar 12, 2014 at 5:48 AM, Mike Hearn <mike at plan99.net> wrote:
> CoinVault is also using a partially signed transaction format whereby
> 0-length placeholders are used for missing signatures in the transaction
> scripts.
>
> I don't know how you are implementing this/what framework you're using, but
> I suggest using placeholders that are the length of an actual expected
> signature, at least when forming the transaction. This is what bitcoinj will
> do because otherwise you could end up miscalculating the fee, which is based
> on the final size. See TransactionSignature.dummy() in the API.
The zero-length placeholder is not a new invention.
This is what bitcoind produces and expects by default, for a partially
signed transaction.
--
Jeff Garzik
Bitcoin core developer and open source evangelist
BitPay, Inc.
https://bitpay.com/Published at
2023-06-07 15:15:10Event JSON
{
"id": "f6d7c2006037f4a1345f729513d575299b34bad94a9b01ed69b18de32f287df6",
"pubkey": "b25e10e25d470d9b215521b50da0dfe7a209bec7fedeb53860c3e180ffdc8c11",
"created_at": 1686150910,
"kind": 1,
"tags": [
[
"e",
"07851d213f227977a351770e7dfc2e7354779fae77670cd215beec4023ffb144",
"",
"root"
],
[
"e",
"a3fd7c5ba82d9addf6346b4ec78624a4f69566c4d76176eae1c0effcbfedf79f",
"",
"reply"
],
[
"p",
"f2c95df3766562e3b96b79a0254881c59e8639f23987846961cf55412a77f6f2"
]
],
"content": "📅 Original date posted:2014-03-12\n📝 Original message:On Wed, Mar 12, 2014 at 5:48 AM, Mike Hearn \u003cmike at plan99.net\u003e wrote:\n\u003e CoinVault is also using a partially signed transaction format whereby\n\u003e 0-length placeholders are used for missing signatures in the transaction\n\u003e scripts.\n\u003e\n\u003e I don't know how you are implementing this/what framework you're using, but\n\u003e I suggest using placeholders that are the length of an actual expected\n\u003e signature, at least when forming the transaction. This is what bitcoinj will\n\u003e do because otherwise you could end up miscalculating the fee, which is based\n\u003e on the final size. See TransactionSignature.dummy() in the API.\n\nThe zero-length placeholder is not a new invention.\n\nThis is what bitcoind produces and expects by default, for a partially\nsigned transaction.\n\n-- \nJeff Garzik\nBitcoin core developer and open source evangelist\nBitPay, Inc. https://bitpay.com/",
"sig": "023ad0aff80c1b53ac801be9e9f0bcf44a5fd8220b44ec797ecd130ec1d5e1b0372b587e2d030ddc7313c7092ad1c442d82ba11ed4527d3b14e1e171d9ed60c0"
}