-
Notifications
You must be signed in to change notification settings - Fork 68
dlog token driver: improve the use of mathlib #1287 #1288
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
| bls12381.NewBls12_381BBS().G2ByteSize(), | ||
| bls12381.NewBls12_381BBS().CompressedG2ByteSize(), | ||
| bls12381.NewBls12_381BBS().ScalarByteSize(), | ||
| BLS12_381_BBS_GURVY_FAST_RNG, |
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.
Is that something that we need to tune during testing? or does this fix? (does it worth to have it in config file)?
|
|
||
| import "encoding/binary" | ||
|
|
||
| // AppendFixed32 appends slices prefixed with a 4-byte Little Endian length. |
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.
Little Endian this means that we support only x86 not power/z deployments?
| require.NoError(t, err) | ||
| } | ||
|
|
||
| func BenchmarkIPAProver(b *testing.B) { |
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.
Do we have doc. of what this function does?
| } | ||
|
|
||
| // Comparison: Naive Loop (No pre-calculation) | ||
| func BenchmarkAppendFixed32_Naive(b *testing.B) { |
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.
Could you please add doc to this one?
It is not clear to me what this benchmarks tests and how to connect it to the Approver performance?
| } | ||
| raw[i] = e.Bytes() | ||
| } | ||
| clear(b) |
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.
What does the clear do? Is that ok to clear the "b" here? what happen if the caller needs it? Maybe to add flag to clear and this will be clear to the caller.
| } | ||
| raw[i] = e.Bytes() | ||
| } | ||
| clear(b) |
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.
What if "b" is nil?
| assert.NoError(t, err) | ||
| } | ||
|
|
||
| func BenchmarkBFProver(b *testing.B) { |
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.
Same as other comment need to document this (need to understand what this does)
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
Signed-off-by: Angelo De Caro <[email protected]>
No description provided.