Skip to content
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

Update aliases.rs #303

Closed
wants to merge 0 commits into from
Closed

Update aliases.rs #303

wants to merge 0 commits into from

Conversation

Qumeric
Copy link

@Qumeric Qumeric commented Sep 3, 2023

Add U784 and B784 aliases

This is useful because 96 bytes is the length BlsSignature used in, for example, MEV-Boost (relays accept signatures in this format).

src/aliases.rs Outdated
@@ -56,6 +56,7 @@ alias! {
U384 B384 (384, 6);
U448 B448 (448, 7);
U512 B512 (512, 8);
U784 B784 (784, 12);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the LIMBS param needs to be 13. 64 * 12 == 768, which will not quite fit 784 bits

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it should be U768 and B768, sorry

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah cool. mind pushing a commit to change that?

@prestwich
Copy link
Collaborator

succeeded here: #310

because i messed up the branch updating :D

@Qumeric
Copy link
Author

Qumeric commented Sep 12, 2023

Thanks @prestwich , sorry for being a bit sloppy here

@prestwich
Copy link
Collaborator

Nah i was also a bit sloppy lol. We're dealing with some dep issues right now, so this will go in once those are resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants