International Association for Cryptologic Research

International Association
for Cryptologic Research

CryptoDB

Fast and simple constant-time hashing to the BLS12-381 elliptic curve

Authors:
Riad S. Wahby , Stanford University
Dan Boneh , Stanford University
Download:
DOI: 10.13154/tches.v2019.i4.154-179
URL: https://tches.iacr.org/index.php/TCHES/article/view/8348
Search ePrint
Search Google
Presentation: Slides
Abstract: Pairing-friendly elliptic curves in the Barreto-Lynn-Scott family are seeing a resurgence in popularity because of the recent result of Kim and Barbulescu that improves attacks against other pairing-friendly curve families. One particular Barreto-Lynn-Scott curve, called BLS12-381, is the locus of significant development and deployment effort, especially in blockchain applications. This effort has sparked interest in using the BLS12-381 curve for BLS signatures, which requires hashing to one of the groups of the bilinear pairing defined by BLS12-381.While there is a substantial body of literature on the problem of hashing to elliptic curves, much of this work does not apply to Barreto-Lynn-Scott curves. Moreover, the work that does apply has the unfortunate property that fast implementations are complex, while simple implementations are slow.In this work, we address these issues. First, we show a straightforward way of adapting the “simplified SWU” map of Brier et al. to BLS12-381. Second, we describe optimizations to this map that both simplify its implementation and improve its performance; these optimizations may be of interest in other contexts. Third, we implement and evaluate. We find that our work yields constant-time hash functions that are simple to implement, yet perform within 9% of the fastest, non–constant-time alternatives, which require much more complex implementations.
Video from TCHES 2019
BibTeX
@article{tches-2019-29849,
  title={Fast and simple constant-time hashing to the BLS12-381 elliptic curve},
  journal={IACR Transactions on Cryptographic Hardware and Embedded Systems},
  publisher={Ruhr-Universität Bochum},
  volume={2019, Issue 4},
  pages={154-179},
  url={https://tches.iacr.org/index.php/TCHES/article/view/8348},
  doi={10.13154/tches.v2019.i4.154-179},
  author={Riad S. Wahby and Dan Boneh},
  year=2019
}