status-im / nim-blscurve

Nim implementation of BLS signature scheme (Boneh-Lynn-Shacham) over Barreto-Lynn-Scott (BLS) curve BLS12-381
Apache License 2.0
26 stars 11 forks source link

Compiled version #62

Closed mmathys closed 4 years ago

mmathys commented 4 years ago

Hello,

this repo looks very interesting. I would like to use this library for another project (written in Go).

Therefore I was wondering whether there is a precompiled binary available, which supports the ETH 2.0 interface as stated here.

That way, I could test and use this library.

Thanks in advance.

mratsim commented 4 years ago

The only purpose is supporting Eth 2 ;).

Would you also need support for EIP 2333 for secret key generation and "infinite" public keys/wallets derivation? https://eips.ethereum.org/EIPS/eip-2333

mmathys commented 4 years ago

No, I don't need support for EIP 2333.

I would only need key generation, signing, signature aggregation, verification.

mmathys commented 4 years ago

Does somebody maybe have a hint whether this is possible? :)

zah commented 4 years ago

It's definitely possible, but you may need to learn a bit more how Nim can interop will other languages.

The closest example you can study is the libnimbus library that we prepare precisely for the purpose of calling Nim code from our Status Go implementation. There are important details both in the code and in the associated Makefiles.

mmathys commented 4 years ago

I ended up using https://github.com/herumi/bls-eth-go-binary instead

mmathys commented 4 years ago

Thank you for your help nonetheless