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
|
Return-Path: <pieter.wuille@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
[172.17.192.35])
by mail.linuxfoundation.org (Postfix) with ESMTPS id 0C911E94
for <bitcoin-dev@lists.linuxfoundation.org>;
Fri, 25 May 2018 17:54:20 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-ot0-f174.google.com (mail-ot0-f174.google.com
[74.125.82.174])
by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 8E2856C1
for <bitcoin-dev@lists.linuxfoundation.org>;
Fri, 25 May 2018 17:54:19 +0000 (UTC)
Received: by mail-ot0-f174.google.com with SMTP id n1-v6so6965516otf.7
for <bitcoin-dev@lists.linuxfoundation.org>;
Fri, 25 May 2018 10:54:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:from:date:message-id:subject:to;
bh=mT1SbNH41k8P5Z8dgCgMxhTF7qew6nH3LW8wtml4uXo=;
b=p133hGiuF2h6Rs0CgRtUtVUuxAbr2WA0gUEKCOG0gfyb5Fb2QK8jbSxwmY25Y8Fz8P
vsnDh/3wvBjVe35wPIm75Q4/ZPGaP093m2Ys7NeX9KZ2AS7RP9iRZiS/Imv2WsEXXKdN
icitkc29DWedms57YEKymHJZs+Rgb0+VOHESZKmFVrAvv4oWcvQyEpdh0GoLwrUVOpiK
/2gcAJS+YM+U8j5r/sHg4bOo1iswMJzcCqfjdZcKgVoiCwn2UHkc6SRHWnpyTAVMOg1d
QxEeHsqVjfJoFK1QSW+1iW5SKjQGDvSZSUdHfEj8t0KyTyP9j7m15oHrXstsYChijj9p
ADOg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=mT1SbNH41k8P5Z8dgCgMxhTF7qew6nH3LW8wtml4uXo=;
b=L01WlDnWG+RPy5RzG1853GraIyi7X3fgSwvE8248zgAC8i+Ff5+/z48Nb1qQd9b2Yp
a22v+WZjXylS+IOoRuERhc+QX33z5Xi/8YFnbll27F9PVfE1hhKH8HPHrkXHXSo8YHPD
gZRff8XFTJ81qyjIepNQaz4Ld0aQ7/P+HUX89TevS9ag/7FmywMzQm8DNWCnUikU/yCn
kzidRjNvZuIrN786GjmdvNuzt6uGS7M4xjT9NKQvlJIMDZehWvqKDvVjLhvqlKMTwTil
9mSSCbgFVm6h1jiUbr/UvWdhnpoj7X96vkfgKRgQdl/qxkqs0hDAMhMhbVRSJnzVZZOC
TxdA==
X-Gm-Message-State: ALKqPwe1l821gGtQvwogL7DNDmu/bJektg1rqldNIbTooHe7EaYNlsT7
61wODLUTq69lr3Iz6q9t5VU30LMOnkJqthn4+UfWHhGn
X-Google-Smtp-Source: ADUXVKKVPWj9J3h33FkET1LeeypnllVK1g37VtpuoT6XoC9pRt1spQJJnA2GmElKMGXS7PDf3npZAawA9kiSwPQalm8=
X-Received: by 2002:a9d:434b:: with SMTP id
y11-v6mr2336120oti.170.1527270858558;
Fri, 25 May 2018 10:54:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a4a:6ac8:0:0:0:0:0 with HTTP; Fri, 25 May 2018 10:54:17
-0700 (PDT)
From: Pieter Wuille <pieter.wuille@gmail.com>
Date: Fri, 25 May 2018 10:54:17 -0700
Message-ID: <CAPg+sBgywj6PgijmSNkYYkKKQuek2g9-cSy6GJBpV+=gom7LfQ@mail.gmail.com>
To: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM,
RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
smtp1.linux-foundation.org
Subject: [bitcoin-dev] Minimizing the redundancy in Golomb Coded Sets
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: Fri, 25 May 2018 17:54:20 -0000
Hi all,
I spent some time working out the optimal parameter selection for the
Golomb Coded Sets that are proposed in BIP158:
https://gist.github.com/sipa/576d5f09c3b86c3b1b75598d799fc845
TL;DR: if we really want an FP rate of exactly 1 in 2^20, the Rice
parameter should be 19, not 20. If we don't, we should pick an FP rate
of 1 in a 1.4971*2^B. So for example M=784931 B=19 or M=1569861 B=20.
Cheers,
--
Pieter
|