Skip to content

Commit

Permalink
correct Y128 coordinate call
Browse files Browse the repository at this point in the history
Y128 for "SCL-fakeGLV" speedup
  • Loading branch information
renaud dubois authored and renaud dubois committed Sep 20, 2024
1 parent 4f4b81c commit 6c3d762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Ed25519DelegationEIP7702.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ contract Ed25519Delegation {
/// @notice Main entrypoint for authorized transactions. Accepts transaction parameters (to, data, value) and a secp256r1 signature.
function transact(address to, bytes memory data, uint256 value, bytes32 r, bytes32 s) public {
EdSigner Ed25519= EdSigner(signer);
require(Ed25519.Verify_LE(string(data), uint256(r), uint256(s), [authorizedPublicKeyX, authorizedPublicKeyY,authorizedPublicKeyX128, authorizedPublicKeyX128, authorizedPublicKeyCompressed ]), "Invalid signature");
require(Ed25519.Verify_LE(string(data), uint256(r), uint256(s), [authorizedPublicKeyX, authorizedPublicKeyY,authorizedPublicKeyX128, authorizedPublicKeyY128, authorizedPublicKeyCompressed ]), "Invalid signature");
(bool success,) = to.call{value: value}(data);

require(success);
Expand Down

0 comments on commit 6c3d762

Please sign in to comment.