1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
Return-Path: <gmaxwell@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
[172.17.192.35])
by mail.linuxfoundation.org (Postfix) with ESMTPS id 633F2AAB
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 28 Aug 2017 17:06:06 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-vk0-f44.google.com (mail-vk0-f44.google.com
[209.85.213.44])
by smtp1.linuxfoundation.org (Postfix) with ESMTPS id DCEEE42C
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 28 Aug 2017 17:06:05 +0000 (UTC)
Received: by mail-vk0-f44.google.com with SMTP id l132so3054456vke.5
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 28 Aug 2017 10:06:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:sender:in-reply-to:references:from:date:message-id
:subject:to; bh=PZji/FG0lshDZYlwAZy6aK83es4JyOYhnwO4xxspwGM=;
b=Bb2bbVZOMWGFdW296YKKd4LgJt/7m1veo9uKJBrlCIOUwdxaSTZ6UiqOY/FhZ4bUKt
SDEDZ76V9kMpqz1JFGvEK3ZxqDzGdWH9WW1fvsmo4q5s3gN+8P5fwbznkIZw2v98BdoK
NDF6lyseVopx5qGyXDDPcf0RzQr2bMOeRcr8O+LIXdhqkhNhpDwj5v689f4hO21ghL0u
Oolw3DTc2GkpKdpkw029Um6hUE3EFDxoA51iBwHdF1t1boEvAJMm1avvKtB0EJz8M+a7
uVzEaJjLWqf7NYJcR2ZJYW8eaNqibsWV5oW7sOoNkGEwHznIhT3q5ivTubcCyH95MX8G
R5mw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
:date:message-id:subject:to;
bh=PZji/FG0lshDZYlwAZy6aK83es4JyOYhnwO4xxspwGM=;
b=PXDZDmJC9J/b2XBe1EzSueQWJVga2W5EwfJ6eZUeZrGIC0yRIyhOpwACUanxfnzp0Q
5afJsuBptcpXOontr4wZg2Qug/raXvehf+nCYtPb2eVaapWw4lMvDIOcjDikbYkJb5a3
HbK2IqdJkJv6L7Xv1nfKrke65x6EYQAQ2NvseGYZ4jJQV6YFNCP21prA/ceVeQNmaXBq
1oGNMI85eEHjq5xfvyOHEEcW75rD2MZPc61EcJMpKAGqhkx6E6n5SisNWdV4aj8RkZCp
Q5oowsafNBdbtqawuycYThk5gWiha7Ch/DeIb6Szq7zo+Jtz3SwZc601olvvomyd3wv4
biaw==
X-Gm-Message-State: AHYfb5igOgF1uXRtk8dG+0jvrNMaGn4lgN1QYgHY0SC271utrcAL9J7W
kfZpDozfh8dRWq7BUZnhEejwrtqQZA==
X-Received: by 10.31.179.130 with SMTP id c124mr754110vkf.154.1503939964781;
Mon, 28 Aug 2017 10:06:04 -0700 (PDT)
MIME-Version: 1.0
Sender: gmaxwell@gmail.com
Received: by 10.103.176.71 with HTTP; Mon, 28 Aug 2017 10:06:04 -0700 (PDT)
In-Reply-To: <CAAS2fgT+HHg_xuuWuGrYcX0ALcBowmY-1Kt6-dzSBOwdcr08HQ@mail.gmail.com>
References: <CY4PR1801MB181583C344B0993205D4B6C8809E0@CY4PR1801MB1815.namprd18.prod.outlook.com>
<CAAS2fgT+HHg_xuuWuGrYcX0ALcBowmY-1Kt6-dzSBOwdcr08HQ@mail.gmail.com>
From: Gregory Maxwell <greg@xiph.org>
Date: Mon, 28 Aug 2017 17:06:04 +0000
X-Google-Sender-Auth: L_xlcOueZixTNp02GmLhw-X_oq0
Message-ID: <CAAS2fgQ4hjU+qAM4b=42Rc6ohsaTgbgt5Op1Z9FQMmDzry4m0w@mail.gmail.com>
To: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=0.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=disabled
version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
smtp1.linux-foundation.org
Subject: [bitcoin-dev] Fwd: P2WPKH Scripts, P2PKH Addresses,
and Uncompressed Public Keys
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Aug 2017 17:06:06 -0000
On Mon, Aug 28, 2017 at 3:29 PM, Alex Nagy via bitcoin-dev
<bitcoin-dev@lists.linuxfoundation.org> wrote:
> If Alice gives Bob 1MsHWS1BnwMc3tLE8G35UXsS58fKipzB7a, is there any way Bob
> can safely issue Native P2WPKH outputs to Alice?
Absolutely not. You can only pay people to a script pubkey that they
have specified.
Trying to construct some alternative one that they didn't specify but
in theory could spend would be like "paying someone" by putting a
cheque in a locked safe labeled "danger radioactive" that you quietly
bury in their back yard. Or taking the payment envelope they gave you
stuffing it with cash after changing the destination name to pig latin
and hiding it in the nook of a tree they once climbed as a child.
There have been technical reasons why some wallets would sometimes
display some outputs they didn't generate but could spend, but these
cases are flaws-- they're not generic for all cases they could in
theory spend, and mostly exist because durability to backup recovery
makes it impossible for it to tell what it did or didn't issue.
So regardless of your query about uncompressed keys, you cannot do
what you described: Wallets will not see the payment and may have no
mechanism to recover it even if you tell the recipient what you've
done. And yes, the use of an uncompressed yet could later render it
unspendable.
|