Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Oct 2, 2024
1 parent d86fe50 commit 69dd7cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/BLSMultisig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {BLS} from "./sign/BLS.sol";
/// @notice BLS-powered multisignature wallet, demonstrating the use of
/// aggregated BLS signatures for verification
/// @dev This is for demonstration purposes only, do not use in production. This contract does
/// not include protection from rogue public-key attacks.
/// not include protection from rogue public-key attacks.
contract BLSMultisig {
/// @notice Public keys of signers. This may contain a pre-aggregated
/// public keys for common sets of signers as well.
Expand Down
6 changes: 3 additions & 3 deletions src/sign/BLS.sol
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ library BLS {
0x20,
// arg[2] = mod.length
0x40,
// arg[3] = base.bits @ + 0x60
// arg[3] = base.bits
// places the first 32 bytes of _b1 and the last 32 bytes of _b2
_b1,
_b2,
Expand All @@ -280,8 +280,8 @@ library BLS {
// we add the 0 prefix so that the result will be exactly 64 bytes
// saves 300 gas per call instead of sending it along every time
// places the first 32 bytes and the last 32 bytes of the field modulus
0x000000000000000000000000000000001a0111ea397fe69a4b1ba7b6434bacd7, // arg[5] = mod
0x64774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab //
0x000000000000000000000000000000001a0111ea397fe69a4b1ba7b6434bacd7,
0x64774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab
)
);
require(success, "MODEXP failed");
Expand Down

0 comments on commit 69dd7cd

Please sign in to comment.