From 6d156bce1b3f87ac8361b30523dc40169ceb8ac6 Mon Sep 17 00:00:00 2001 From: Artem Chystiakov Date: Wed, 11 Dec 2024 13:25:16 +0200 Subject: [PATCH] remove unused functions --- contracts/libs/crypto/ECDSA384.sol | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/contracts/libs/crypto/ECDSA384.sol b/contracts/libs/crypto/ECDSA384.sol index af7da5d3..7fa6e9fb 100644 --- a/contracts/libs/crypto/ECDSA384.sol +++ b/contracts/libs/crypto/ECDSA384.sol @@ -679,18 +679,6 @@ library U384 { } } - function modexpAssign(uint256 call_, uint256 b_, uint256 eInteger_) internal view { - assembly { - call_ := add(call_, EXP_OFFSET) - - mstore(add(0x60, call_), mload(b_)) - mstore(add(0x80, call_), mload(add(b_, 0x20))) - mstore(add(0xA0, call_), eInteger_) - - pop(staticcall(gas(), 0x5, call_, 0x0100, b_, 0x40)) - } - } - function modexpAssignTo( uint256 call_, uint256 to_, @@ -891,15 +879,6 @@ library U384 { } } - function _shl1To(uint256 a_) internal pure { - assembly { - let a1_ := mload(add(a_, 0x20)) - - mstore(a_, or(shl(1, mload(a_)), shr(255, a1_))) - mstore(add(a_, 0x20), shl(1, a1_)) - } - } - function _add(uint256 a_, uint256 b_, uint256 r_) private pure { assembly { let aWord_ := mload(add(a_, 0x20))