Skip to content

Commit

Permalink
removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
szhygulin committed May 22, 2024
1 parent 0d6e796 commit 0fd374a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Deriver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ library Deriver {
uint256 public constant BB = 7;
uint256 public constant PP =
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F;

// END SECP256k1 CONSTANTS

// https://ethereum.stackexchange.com/questions/884/how-to-convert-an-address-to-bytes-in-solidity
function toBytes(address a) internal pure returns (bytes memory) {
return abi.encodePacked(a);
}

// TODO(mkl): use tagged hashes
function getCoefficient(
uint256 x1,
Expand Down Expand Up @@ -101,7 +95,6 @@ library Deriver {

// calculate y coordinate from x coordinate
function liftX(uint256 x) public pure returns (uint256) {
uint256 y = EllipticCurve.deriveY(0x02, x, AA, BB, PP);
return y;
return EllipticCurve.deriveY(0x02, x, AA, BB, PP);
}
}

0 comments on commit 0fd374a

Please sign in to comment.