William Swanson [ARCHIVE] on Nostr: 📅 Original date posted:2014-12-04 📝 Original message:Yes. A few of us over here ...
📅 Original date posted:2014-12-04
📝 Original message:Yes. A few of us over here in San Diego actually started working on a
format like this a few months ago, but it's been on the back burner
for a while.
Our motivation was to come up with a shared HD wallet format. Say I
would like create a 2-of-3 multisig wallet using my phone, PC, and
hardware key fob. All three devices would presumably be running
different wallet software, so we need some sort of standardized HD
multisig chain-description format that all three wallets can
understand. That way, regardless of their other differences, the
wallets can at least agree on how to generate new addresses.
Of course, once you share this chain-description file with a third
party, they too can generate addresses out of the wallet. This can be
used for auditing (like for charities), for receive-only wallets (like
a merchant kiosk), and for recurring payments. The recurring payment
case is a little problematic, since you need to trust the payee with
your privacy. I imagine this would only be useful for payouts you
manage yourself, like a mining pool, and not something you share with
the general public.
Our format is very similar to yours. We have a script template, just
like you do, but we describe the HD chains in a separate section
rather than in-line with the script. The script template only comes
into being once the chains have been gathered together into one place,
so the chain descriptions need to stand alone.
Unfortunately, we still have a lot of details to work through before
we have a concrete proposal that's ready for this mailing list.
Perhaps we can work together to come up with something.
-William
On Thu, Dec 4, 2014 at 7:42 AM, Luke Dashjr <luke at dashjr.org> wrote:
> Is anyone working on a serialisation format to convey P2SH HD chains? For
> example, to give someone who wants to make recurring payments a single token
> that can be used to generate many P2SH addresses paying to a multisig script.
>
> I'm thinking of something along the lines of a simple series of tokens, each
> indicating either a HD chain or literal script content. For all HD chains in
> the data, a child key would be generated based on the payment number, and all
> tokens concatenated to form the P2SH serialised script. Eg, for a simple 2-
> of-2, you would do something like this:
> literal(OP_2) HDChain HDChain literal(OP_2 OP_CHECKMULTISIG)
> Does this sufficiently cover all reasonable use cases?
>
> Luke
Published at
2023-06-07 15:27:41Event JSON
{
"id": "ebc92c9268aa063ded213dcf13d5607bfa7bc0bdf2024207b13db744ac109227",
"pubkey": "a178a4d8dc03df766d640bbff9f4a535decb16c595ad471cabee59e7f78f439d",
"created_at": 1686151661,
"kind": 1,
"tags": [
[
"e",
"c6dbfebcd0f9a793242cef8ce15ddce4c1c9f20ab58ce3175f3a0ec04fe25d80",
"",
"root"
],
[
"e",
"c2508f783555dac1c92fba1f4446cc70ef2572806a35ab688a8291740a73536e",
"",
"reply"
],
[
"p",
"857f2f78dc1639e711f5ea703a9fc978e22ebd279abdea1861b7daa833512ee4"
]
],
"content": "📅 Original date posted:2014-12-04\n📝 Original message:Yes. A few of us over here in San Diego actually started working on a\nformat like this a few months ago, but it's been on the back burner\nfor a while.\n\nOur motivation was to come up with a shared HD wallet format. Say I\nwould like create a 2-of-3 multisig wallet using my phone, PC, and\nhardware key fob. All three devices would presumably be running\ndifferent wallet software, so we need some sort of standardized HD\nmultisig chain-description format that all three wallets can\nunderstand. That way, regardless of their other differences, the\nwallets can at least agree on how to generate new addresses.\n\nOf course, once you share this chain-description file with a third\nparty, they too can generate addresses out of the wallet. This can be\nused for auditing (like for charities), for receive-only wallets (like\na merchant kiosk), and for recurring payments. The recurring payment\ncase is a little problematic, since you need to trust the payee with\nyour privacy. I imagine this would only be useful for payouts you\nmanage yourself, like a mining pool, and not something you share with\nthe general public.\n\nOur format is very similar to yours. We have a script template, just\nlike you do, but we describe the HD chains in a separate section\nrather than in-line with the script. The script template only comes\ninto being once the chains have been gathered together into one place,\nso the chain descriptions need to stand alone.\n\nUnfortunately, we still have a lot of details to work through before\nwe have a concrete proposal that's ready for this mailing list.\nPerhaps we can work together to come up with something.\n\n-William\n\nOn Thu, Dec 4, 2014 at 7:42 AM, Luke Dashjr \u003cluke at dashjr.org\u003e wrote:\n\u003e Is anyone working on a serialisation format to convey P2SH HD chains? For\n\u003e example, to give someone who wants to make recurring payments a single token\n\u003e that can be used to generate many P2SH addresses paying to a multisig script.\n\u003e\n\u003e I'm thinking of something along the lines of a simple series of tokens, each\n\u003e indicating either a HD chain or literal script content. For all HD chains in\n\u003e the data, a child key would be generated based on the payment number, and all\n\u003e tokens concatenated to form the P2SH serialised script. Eg, for a simple 2-\n\u003e of-2, you would do something like this:\n\u003e literal(OP_2) HDChain HDChain literal(OP_2 OP_CHECKMULTISIG)\n\u003e Does this sufficiently cover all reasonable use cases?\n\u003e\n\u003e Luke",
"sig": "787f6426cbcae13acbac19bd13ebdd0e4957615d02aaa4c3c4790a9073f966446a7a78a816e82af14ce6d79db135a746c74a9057c874d2e6cf7ba6c13e482dfb"
}