[tor-dev] Interest in collaborating on a standard Ed25519 key blinding scheme?
oleganza at gmail.com
Wed Apr 12 19:18:31 UTC 2017
> From: George Kadianakis
> Date: Wed, Apr 12, 2017 at 7:57 AM
> An update:
> After lots of discussions in the Amsterdam Tor meeting, the following
> approach was suggested for cleansing keys of their torsion components
> that is more friendly towards hierarchical key-derivation schemes:
> However, my current intuition is to just not do this for hidden service
> ed25519 blinded keys. Those keys are only used for signing descriptors
> which should be safe to do, and we don't plan to use them for D-H any
> time soon. If we or some crazy app EVER decides to use those ephemeral
> keys for key exchange, we would need to use a special DH function that
> kills the tensor component of keys before using them, as suggested by
> Trevor here: https://moderncrypto.org/mail-archive/curves/2017/000874.html
> Please let me know if you think this is not a good idea!
Thanks for the update, George.
TL;DR: your scheme seems to be just fine for signatures, and even
torsion-safety issues are not huge issues IMHO. For wide applicability
reasons, I am trying to make our scheme ChainKD  to fit as many
use cases as possible and therefore very interested in Tor's
requirements and rationale regarding Tor's key blinding proposal.
After studying the situation with key derivation schemes for Ed25519,
my impression is that the central issue is not even safety, but
compatibility with existing Ed25519 implementations. People who have
to integrate a key derivation scheme in their protocol are often not
the same people who write the underlying primitives such as scalar
This means, that it's safer to be conservative and keep the derivation
scheme as compatible with EdDSA as possible so that assumptions that
implementors may take by just reading the EdDSA spec without knowing
about key derivation schemes, do not cause compatibility problems.
Since it's not a trivial task to even learn the landscape of problems
around Ed25519 compatibility- and safety-wise, it'd help if we can
figure all of that once, implement and reuse the result w/o having
to go through this again and again. Hence, our interest in standardizing
the scheme that satisfies as many requirements as possible.
Following the feedback in BIP32-Ed25519 paper , I've updated our
ChainKD  scheme to make it safely "compatible" with DH use cases
(among those is asymmetric encryption such as ECIES).
In the Design Rationale section  I try to describe the issues with
low/high bits and torsion-safe representative and why we choose
to keep those bits as defined in Curve25519 instead of "torsion-safe
representative" and why we use BIP32-style blinding-by-addition instead
One piece of feedback affecting our proposal is missing, though:
I'd like to ask Tor developers what is the rationale and requirements
for their key blinding proposal. Specifically, why do you choose to
blind via multiplication instead of addition:
s' = b*s; P' = b*P (Tor's proposal)
s' = s + b; P' = P + b*G (BIP32, ChainKD)
(G -- base point,
P -- pubkey,
s -- secret scalar, P = s*G,
b -- blinding scalar)
I know of a few reasons to use addition over multiplication
(e.g. performance and bit-compatibility with EdDSA),
but would love to learn if that hurts some protocols.
PS. I've just joined the list and replying to a forwarded message.
I apologize if I break the thread.
 ChainKD, revised: https://github.com/chain/chain/blob/chainkd-dh/docs/protocol/specifications/chainkd.md
 BIP32-Ed25519: https://drive.google.com/open?id=0ByMtMw2hul0EMFJuNnZORDR2NDA
 ChainKD rationale: https://github.com/chain/chain/blob/chainkd-dh/docs/protocol/specifications/chainkd.md#design-rationale
More information about the tor-dev