Skip to content

Commit

Permalink
rename param
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchhill committed Oct 28, 2024
1 parent 7f6c76c commit b39e2c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Nethermind/Nethermind.Crypto/BlsSigner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ public static bool Verify(G1Affine publicKey, Signature signature, ReadOnlySpan<
}

[SkipLocalsInit]
public static bool VerifyAggregate(ReadOnlySpan<byte> publicKeys, Signature signature, ReadOnlySpan<byte> message)
public static bool VerifyAggregate(ReadOnlySpan<byte> publicKeyBytes, Signature signature, ReadOnlySpan<byte> message)
{
if (publicKeys.Length % PkCompressedSz != 0)
if (publicKeyBytes.Length % PkCompressedSz != 0)
{
throw new Bls.BlsException(Bls.ERROR.WRONGSIZE);
}
Expand All @@ -90,9 +90,9 @@ public static bool VerifyAggregate(ReadOnlySpan<byte> publicKeys, Signature sign
G1 agg = new(stackalloc long[G1.Sz]);
agg.Zero();

for (int i = 0; i < publicKeys.Length; i += PkCompressedSz)
for (int i = 0; i < publicKeyBytes.Length; i += PkCompressedSz)
{
pk.Decode(publicKeys.Slice(i, PkCompressedSz));
pk.Decode(publicKeyBytes.Slice(i, PkCompressedSz));
agg.Aggregate(pk);
}

Expand Down

0 comments on commit b39e2c1

Please sign in to comment.