summaryrefslogtreecommitdiff
path: root/1b/23c95f8f3efaa4d5d93a96f84a3422b5801a3b
blob: 48f94d0497c6bbab2f99fcb12da2cb87767c3af5 (plain)
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
99
Return-Path: <tombriar11@protonmail.com>
Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 4C415C0037
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 19 Jan 2024 21:10:13 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp1.osuosl.org (Postfix) with ESMTP id 2139C83A80
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 19 Jan 2024 21:10:13 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 2139C83A80
Authentication-Results: smtp1.osuosl.org;
 dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com
 header.a=rsa-sha256 header.s=protonmail3 header.b=X0dMW8Nd
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.549
X-Spam-Level: 
X-Spam-Status: No, score=-2.549 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
 autolearn=ham autolearn_force=no
Received: from smtp1.osuosl.org ([127.0.0.1])
 by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id KP6HO-VPY9VB
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 19 Jan 2024 21:10:12 +0000 (UTC)
Received: from mail-0301.mail-europe.com (mail-0301.mail-europe.com
 [188.165.51.139])
 by smtp1.osuosl.org (Postfix) with ESMTPS id EBA8583E3A
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 19 Jan 2024 21:10:11 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org EBA8583E3A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1705698604; x=1705957804;
 bh=QYxuHf9/FCGm2vDdzCj6STZsUkwEEuUOotQ8neMbfrw=;
 h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID:BIMI-Selector;
 b=X0dMW8NddP8EfEADRabHQamm45lb6xTDU92wTXE3ILLAOJIGf3fzGkJ0uZvVUjw98
 rzB9ueYcg06+Q939eRYWSHLafxfR09U9wM0vYWVza8abBZyKKAtr54umPfpNa5ka1m
 9Yb62tEoEAK2Bv+VRRF6VeSB4AmeqycBahJJsRuHB6c7wISMsZUGuVaXCf5JVwmKVe
 cfO7q7b51KfHjZPV6YP3KSiqhPlN++Turif5VHbQIJ+jm1vcUgixhmWIMF2sGSoW8+
 GR5ePl5yEEnNpwqSyzvQGxb5IEan1CFdXEAogMxId62w95qq4iJbMf6hrIaqq21bcD
 F0IxsBYkg61EA==
Date: Fri, 19 Jan 2024 21:09:35 +0000
To: Jonas Schnelli <dev@jonasschnelli.ch>
From: Tom Briar <tombriar11@protonmail.com>
Message-ID: <xmXvUSue_zG2b5fAInP4nlZ6YSCuPDhDBX_s9WwS7prB7KeIEw_gEj6f9_2ysP2oUBdXcXxNE9SCmt0WOrx-EOEHl1s7G9_Xc8WzLXZVWw0=@protonmail.com>
In-Reply-To: <A1A794D6-E465-4F45-BF67-EB24B2CB9773@jonasschnelli.ch>
References: <WJoM7dyrk0o8ujOZOo462r66wS2Kl3L1ZZRodvaLK-HKEUc90yvwOqXbUUrGbV1lk6cOywTqLoCyHzk2Tm3TtBFyUL0NZ6D7v9NmTXypJPA=@protonmail.com>
 <KSmH1MBTPLuXMF4TWbWq6vaft_K_7IZS2YcoZ1iHwtHY06It1DjExVgSdrLBMQZA8mLGz8xdOzyXRHAZ2qCAugwG8gMtEGsGj-XNTPN0v0w=@protonmail.com>
 <ZPHtgiJQ4Yqrr941@camus> <ZPdswQ7uAJr35YbC@petertodd.org>
 <hd13VCUTiTaX_Z4oeZpzwjdVOcmkbcg-kgfThk9b1LUt2YUCEXrwVuEq8BiNWtfzeAafo6GdsrFzGg3pQI5kSjuRc4TtFGmRndvVukAwAiY=@protonmail.com>
 <xk6TD_XVlJodelVrD6HTzj-YZ6MaRJ8lU_ugEddOixoQfCmn59oQYKw-QZOwjL7b_LENm1Jza4NtBKAaXWqwHwcOOyvwlUbJuKw7f5lkm1s=@protonmail.com>
 <ZZgeA1KPUbLtQjoT@camus>
 <IFgPQiCptuVM6I5AsCE6VFrPMsGzBMK3x78GHlupJj12-rBloASYdafdBzyjSKC0H0EWLG2NNBzu1wEyYyyl1VzMmjW3nO7M-9OJpMxoEMM=@protonmail.com>
 <jdBdzLD0bcOPikKGQd1VpWU6dIc3_X6I_Q1UFuEiYfiY_Z6xF86nlDqnU00PGsQS3XdBFwjlmYWN-7_aXbjVjkXmGEVf0cGKPHjzhYkVweY=@protonmail.com>
 <A1A794D6-E465-4F45-BF67-EB24B2CB9773@jonasschnelli.ch>
Feedback-ID: 43655394:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Tue, 23 Jan 2024 13:46:37 +0000
Cc: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] Compressed Bitcoin Transactions
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
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: Fri, 19 Jan 2024 21:10:13 -0000

Hi Jonas,

As it turns out, most of our size savings come from eliminating unneeded ha=
shes and public keys, which get recovered on decompression. gzip actually e=
xpands transactions due to the way it attempts to compress pseudorandom dat=
a, my numbers show a legacy transaction of 222 bytes being expanded to 267 =
bytes.

gzip can possibly shrink the 4-byte integers which have only a couple typic=
al values, and can eliminate some of the "boilerplate" in the tx format, bu=
t that's pretty much it at the expense of expanding the signatures, public =
keys, and hashes.

And your absolutely right this would have to be done at the application lay=
er in a V2-P2P encrypted traffic system.

Thanks-
Tom.