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

secp256k1: Correct some comment typos. #3429

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions dcrec/secp256k1/modnscalar_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func BenchmarkModNScalarMul(b *testing.B) {
}

// BenchmarkBigIntSquareModN benchmarks squaring an unsigned 256-bit big-endian
// integer modulo the group order is zero with stdlib big integers.
// integer modulo the group order with stdlib big integers.
func BenchmarkBigIntSquareModN(b *testing.B) {
v1 := new(big.Int).SetBytes(benchmarkVals()[0])

Expand All @@ -200,7 +200,7 @@ func BenchmarkBigIntSquareModN(b *testing.B) {
}

// BenchmarkModNScalarSquare benchmarks squaring an unsigned 256-bit big-endian
// integer modulo the group order is zero with the specialized type.
// integer modulo the group order with the specialized type.
func BenchmarkModNScalarSquare(b *testing.B) {
var s1 ModNScalar
s1.SetByteSlice(benchmarkVals()[0])
Expand All @@ -213,7 +213,7 @@ func BenchmarkModNScalarSquare(b *testing.B) {
}

// BenchmarkBigIntNegateModN benchmarks negating an unsigned 256-bit big-endian
// integer modulo the group order is zero with stdlib big integers.
// integer modulo the group order with stdlib big integers.
func BenchmarkBigIntNegateModN(b *testing.B) {
v1 := new(big.Int).SetBytes(benchmarkVals()[0])

Expand All @@ -226,7 +226,7 @@ func BenchmarkBigIntNegateModN(b *testing.B) {
}

// BenchmarkModNScalarNegate benchmarks negating an unsigned 256-bit big-endian
// integer modulo the group order is zero with the specialized type.
// integer modulo the group order with the specialized type.
func BenchmarkModNScalarNegate(b *testing.B) {
var s1 ModNScalar
s1.SetByteSlice(benchmarkVals()[0])
Expand All @@ -239,8 +239,8 @@ func BenchmarkModNScalarNegate(b *testing.B) {
}

// BenchmarkBigIntInverseModN benchmarks calculating the multiplicative inverse
// of an unsigned 256-bit big-endian integer modulo the group order is zero with
// stdlib big integers.
// of an unsigned 256-bit big-endian integer modulo the group order with stdlib
// big integers.
func BenchmarkBigIntInverseModN(b *testing.B) {
v1 := new(big.Int).SetBytes(benchmarkVals()[0])

Expand All @@ -252,8 +252,8 @@ func BenchmarkBigIntInverseModN(b *testing.B) {
}

// BenchmarkModNScalarInverse benchmarks calculating the multiplicative inverse
// of an unsigned 256-bit big-endian integer modulo the group order is zero with
// the specialized type.
// of an unsigned 256-bit big-endian integer modulo the group order with the
// specialized type.
func BenchmarkModNScalarInverse(b *testing.B) {
var s1 ModNScalar
s1.SetByteSlice(benchmarkVals()[0])
Expand Down
Loading