Layr-Labs/eigensdk-rs

bls crate bug

Closed this issue · 3 comments

There is a bug when we use bls key to sign the message and use the signature for [writing] (https://github.com/supernovahs/eigen-rs/blob/29e17a6cf74f2df8972166a5f168702f13b36d30/crates/chainio/clients/avsregistry/src/writer.rs#L119)

Itried using this https://github.com/Layr-Labs/rust-bls-bn254 but, the error was same. Afk suggested maybe the way we generate the public key is wrong.

the mangata finance team made a PR with their bls keystore , and bls utils . Yet to integrate it , to check if it works.
#42

Error : Scalar mul error using tenderly tracing

https://holesky.etherscan.io/tx/0x7e682b8b0eb5ae1735db0661d71aff5db128d7399d042e5408e82f5ea67790c8

Update : integrated pr #42 code , it did not work, the issue was same. scalar mul

@anupsv is taking a look

Update: Anup is changing the pubkey to g1 from g2 currently. Will test it after

Update: Decided to relook at the go sdk crate's code and match it 100% in the discussion