Skip to content

Commit

Permalink
remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvolear committed Dec 11, 2024
1 parent fdafbbb commit 6d156bc
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions contracts/libs/crypto/ECDSA384.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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_,
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 6d156bc

Please sign in to comment.