diff --git a/src/BLSMultisig.sol b/src/BLSMultisig.sol index fb21b43..2b37284 100644 --- a/src/BLSMultisig.sol +++ b/src/BLSMultisig.sol @@ -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. diff --git a/src/sign/BLS.sol b/src/sign/BLS.sol index c068cc2..66ce427 100644 --- a/src/sign/BLS.sol +++ b/src/sign/BLS.sol @@ -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, @@ -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");