herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
450 stars 152 forks source link

she.hのrust用のbinding実装のお願い #127

Closed daichihattori closed 2 years ago

daichihattori commented 2 years ago

現在mclをmcl-rustを用いて使わせていただいています。 mclのshe.hのrust bindingを使いたいのですがお時間があるときに実装していただいてもよろしいでしょうか?

herumi commented 2 years ago

どんな用途を考えていますか。可能なら教えてください。

daichihattori commented 2 years ago

返信ありがとうございます。 現在、私はpythonでPaillier暗号を用いて加法準同型の演算を作っていましたが、効率化の観点から、rustでの実装に切り替えようと考えています。さらにPaillier暗号をLifted-elgamalにすることでさらなる高速化が見込めるのではないかと考え、お願いしました。

herumi commented 2 years ago

承知しました。すぐには難しいですが検討します。

daichihattori commented 2 years ago

ありがとうございます。

herumi commented 2 years ago

とりあえず先にPython bindingにinitG1only(SECP256K1)を追加しました。

https://github.com/herumi/mcl/blob/master/ffi/python/she.py#L296-L314

herumi commented 2 years ago

最低限必要なところは概ね実装しました。 https://github.com/herumi/she-rust

daichihattori commented 2 years ago

お忙しいところありがとうございました。

daichihattori commented 2 years ago

先ほど動作を確認しました。issueを閉じます。ありがとうございました。