Skip to content

Commit

Permalink
Feat: add pubkey functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bullet-tooth committed Sep 23, 2024
1 parent 40a8cdb commit b0ff246
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ docs/
__pycache__

.vscode
.idea
temp/
8 changes: 8 additions & 0 deletions src/BTCDepositAddressDeriver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,12 @@ contract BTCDepositAddressDeriver {
ethAddr
);
}

function getBtcAddress1() public view returns (string memory) {
return btcAddr1;
}

function getBtcAddress2() public view returns (string memory) {
return btcAddr2;
}
}
2 changes: 1 addition & 1 deletion src/Deriver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ library Deriver {
bytes memory hrp,
address ethAddr
) internal pure returns (string memory) {
(uint256 x, uint256 y) = getPubkeyFromAddress(
(uint256 x, uint256 _y) = getPubkeyFromAddress(
p1x,
p1y,
p2x,
Expand Down

0 comments on commit b0ff246

Please sign in to comment.