-
Notifications
You must be signed in to change notification settings - Fork 16
BLS example with Rust integration #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is great!
I'm not that familiar with the blst API, so would appreciate if @fgimenez could take a look
3482bc3
to
f4e9932
Compare
Added example in Python as well, does pretty much the same thing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Co-authored-by: Federico Gimenez <fgimenez@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe not for this PR but it would be very nice to be able to run these examples on CI to make sure they keep working, wdyt?
yep definitely, let's do it in a follow-up |
"../../../out/BLSMultisig.sol/BLSMultisig.json" | ||
} | ||
|
||
impl From<[u8; 96]> for BLS::G1Point { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes me think we should create an alloy-bls package which also includes a tx signer for the AlphaNet payloads for the BatchContract -- cc @jxom
Adds a
BLSMultisig
contract demonstrating a mutlisignature account implementation controlled by BLS keys along with example demonstrating it integration in Rust with alloy and blst lib.It doesn't look like there's a clean way to sign arbitrary points through blst without
unsafe
blocks, so there is a decent amount of them