Skip to content

Conversation

@adecaro
Copy link
Contributor

@adecaro adecaro commented Dec 8, 2025

No description provided.

@adecaro adecaro self-assigned this Dec 8, 2025
@adecaro adecaro added this to the Q4/25 milestone Dec 8, 2025
@adecaro adecaro linked an issue Dec 8, 2025 that may be closed by this pull request
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,
Copy link
Contributor

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.
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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) {
Copy link
Contributor

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dlog token driver: improve the use of mathlib

3 participants