Luke-Jr [ARCHIVE] on Nostr: π
Original date posted:2014-04-23 π Original message:On Wednesday, April 23, ...
π
Original date posted:2014-04-23
π Original message:On Wednesday, April 23, 2014 8:04:03 PM Pavol Rusnak wrote:
> On 04/23/2014 10:01 PM, Luke-Jr wrote:
> > Yes, it should scan all possible (under the BIP-defined structure)
> > branches regardless of which features it supports.
>
> So you suggest to scan for accounts, show balances but don't allow user
> to spend them? Does not seem right to me.
Scan all branches for UTXOs, then you have the balance for the wallet. Account
balances are metadata, so cannot be known from the seed alone. If you want to
have a way to restore accounts, you must define some more detailed wallet file
format (which could be built on top of this).
On Wednesday, April 23, 2014 8:04:35 PM you wrote:
> On 23.04.2014, at 22:02, Luke-Jr <luke at dashjr.org> wrote:
> > On Wednesday, April 23, 2014 8:01:16 PM Tamas Blummer wrote:
> >> The wallet has to know how it got the UTXO in order to be able to spend
> >> it.
> >
> > No it doesn't... Just the assigned scriptPubKey and secret(s) required to
> > satisfy it.
>
> To know the secret it needs to know which key coordinate to use that is
> logically the same as knowing the address it used to receive it.
Sure, it *knows* what address was used to receive it. But at the point it's a
UTXO, that address is no longer relevant.
Luke
Published at
2023-06-07 15:17:57Event JSON
{
"id": "ae6d21d54def8f503ce60ff20b85e820ff600057c19f1138458e06c076b77010",
"pubkey": "6ac6a519b554d8ff726a301e3daec0b489f443793778feccc6ea7a536f7354f1",
"created_at": 1686151077,
"kind": 1,
"tags": [
[
"e",
"3d6a81230db6ab232d8356d3ea7e609f18aff1b8f11502ea70755e81b0de88f9",
"",
"root"
],
[
"e",
"15536b7750e4ddb12a316c922ac467562c985aace6850b4720b4ff7a0f2c3e98",
"",
"reply"
],
[
"p",
"7631397e469f47f3535567311f5f7c17129e0ff2cb253df015e3d92ddfd92c63"
]
],
"content": "π
Original date posted:2014-04-23\nπ Original message:On Wednesday, April 23, 2014 8:04:03 PM Pavol Rusnak wrote:\n\u003e On 04/23/2014 10:01 PM, Luke-Jr wrote:\n\u003e \u003e Yes, it should scan all possible (under the BIP-defined structure)\n\u003e \u003e branches regardless of which features it supports.\n\u003e \n\u003e So you suggest to scan for accounts, show balances but don't allow user\n\u003e to spend them? Does not seem right to me.\n\nScan all branches for UTXOs, then you have the balance for the wallet. Account \nbalances are metadata, so cannot be known from the seed alone. If you want to \nhave a way to restore accounts, you must define some more detailed wallet file \nformat (which could be built on top of this).\n\nOn Wednesday, April 23, 2014 8:04:35 PM you wrote:\n\u003e On 23.04.2014, at 22:02, Luke-Jr \u003cluke at dashjr.org\u003e wrote:\n\u003e \u003e On Wednesday, April 23, 2014 8:01:16 PM Tamas Blummer wrote:\n\u003e \u003e\u003e The wallet has to know how it got the UTXO in order to be able to spend\n\u003e \u003e\u003e it.\n\u003e \u003e \n\u003e \u003e No it doesn't... Just the assigned scriptPubKey and secret(s) required to\n\u003e \u003e satisfy it.\n\u003e \n\u003e To know the secret it needs to know which key coordinate to use that is\n\u003e logically the same as knowing the address it used to receive it.\n\nSure, it *knows* what address was used to receive it. But at the point it's a \nUTXO, that address is no longer relevant.\n\nLuke",
"sig": "47f752515796fdd11dc43f4ca6481b4b7f324b4aa00117b4a0013330ac895d1d0e858c001afed83c7c75e84751422bd8919e14080224f3f242c7dd471bb47a05"
}