Andreas Schildbach [ARCHIVE] on Nostr: 📅 Original date posted:2017-09-07 📝 Original message:On 09/07/2017 06:23 PM, ...
📅 Original date posted:2017-09-07
📝 Original message:On 09/07/2017 06:23 PM, Pavol Rusnak via bitcoin-dev wrote:
> On 07/09/17 06:29, Thomas Voegtlin via bitcoin-dev wrote:
>> A solution is still needed to wallets who do not wish to use BIP43
>
> What if we added another byte field OutputType for wallets that do not
> follow BIP43?
>
> 0x00 - P2PKH output type
> 0x01 - P2WPKH-in-P2SH output type
> 0x02 - native Segwit output type
>
> Would that work for you?
I think that would work.
> The question is whether this field should be present only if depth==0x00
> or at all times. What is your suggestion, Thomas?
In case of Bitcoin Wallet, the depth is not null (m/0'/[0,1]) and still
we need this field. I think it should always be present if a chain is
limited to a certain script type.
There is however the case where even on one chain, script types are
mixed. In this case the field should be omitted and the wallet needs to
scan for all (known) types. Afaik Bitcoin Core is taking this path.
Published at
2023-06-07 18:05:32Event JSON
{
"id": "4a8271d6d1daa2e89b775718422df9283079511681a4da01398d5770fa7ec2e0",
"pubkey": "3215b3d77dff1f84eeb5ad46fb1206a8d1657b3ea765a80b5489ece3a702d2bc",
"created_at": 1686161132,
"kind": 1,
"tags": [
[
"e",
"8b6c82e376bdda93cb2f70dd4782d9cc9d7453907841b893f7135515b4f67b4c",
"",
"root"
],
[
"e",
"0b0d05e64e4d187e4aecb2569aea830da4733007308f6cc09ed94f87ad60d539",
"",
"reply"
],
[
"p",
"4c4c1c93ff1d9a42aa8f01e67686675cefe650879fa3480a4706506f0b4afff2"
]
],
"content": "📅 Original date posted:2017-09-07\n📝 Original message:On 09/07/2017 06:23 PM, Pavol Rusnak via bitcoin-dev wrote:\n\u003e On 07/09/17 06:29, Thomas Voegtlin via bitcoin-dev wrote:\n\u003e\u003e A solution is still needed to wallets who do not wish to use BIP43\n\u003e \n\u003e What if we added another byte field OutputType for wallets that do not\n\u003e follow BIP43?\n\u003e \n\u003e 0x00 - P2PKH output type\n\u003e 0x01 - P2WPKH-in-P2SH output type\n\u003e 0x02 - native Segwit output type\n\u003e \n\u003e Would that work for you?\n\nI think that would work.\n\n\u003e The question is whether this field should be present only if depth==0x00\n\u003e or at all times. What is your suggestion, Thomas?\n\nIn case of Bitcoin Wallet, the depth is not null (m/0'/[0,1]) and still\nwe need this field. I think it should always be present if a chain is\nlimited to a certain script type.\n\nThere is however the case where even on one chain, script types are\nmixed. In this case the field should be omitted and the wallet needs to\nscan for all (known) types. Afaik Bitcoin Core is taking this path.",
"sig": "88c5ddc319d91fc0bf30275365f68cad5305b2ec96dc6d21263ffef6a99c40f035dd211290b552473e2c78034e1a1a6b3307eef20217e3e3173414c138302014"
}