Skip to content

Commit

Permalink
removed unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvolear committed Dec 9, 2024
1 parent 8db7d53 commit 238380f
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions contracts/libs/crypto/ECDSA384.sol
Original file line number Diff line number Diff line change
Expand Up @@ -763,26 +763,6 @@ library U384 {
return r_;
}

function modshl1Assign(uint256 a_, uint256 m_) internal pure {
unchecked {
_shl1To(a_);

if (cmp(a_, m_) >= 0) {
_subFrom(a_, m_);
}
}
}

function modshl1AssignTo(uint256 to_, uint256 a_, uint256 m_) internal pure {
unchecked {
_shl1(a_, to_);

if (cmp(to_, m_) >= 0) {
_subFrom(to_, m_);
}
}
}

/// @dev Stores modinv into `b_` and moddiv into `a_`.
function moddivAssign(uint256 call_, uint256 a_, uint256 b_) internal view {
unchecked {
Expand Down Expand Up @@ -852,15 +832,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 238380f

Please sign in to comment.