Skip to content

Commit

Permalink
removes Deriver
Browse files Browse the repository at this point in the history
  • Loading branch information
dpiatkivskyi committed Jun 25, 2024
1 parent c96311e commit 5e802c2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/BTCDepositAddressDeriver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

pragma solidity ^0.8.24;

import {Deriver} from "./Deriver.sol";
import {Bech32m} from "./Bech32m.sol";

error UnsupportedBtcAddress(string btcAddress);
Expand Down Expand Up @@ -93,12 +92,6 @@ contract BTCDepositAddressDeriver {

uint256 x = uint256(bytes32(witProg));

if (x == 0 || x >= Deriver.PP) {
revert UnsupportedBtcAddress(_bitcoinAddress);
}

uint256 y = Deriver.liftX(x);

return (x, y);
return (x, x);
}
}

0 comments on commit 5e802c2

Please sign in to comment.