-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from Chia-Network/develop
release: 1.0.30 - fix derivation paths
- Loading branch information
Showing
3 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
from blspy import PrivateKey | ||
from chia.wallet.derive_keys import _derive_path_unhardened | ||
|
||
from app.core.types import CLIMATE_WALLET_INDEX, GatewayMode | ||
|
||
|
||
def master_sk_to_root_sk(master: PrivateKey) -> PrivateKey: | ||
return _derive_path_unhardened(master, [12381, 8444, CLIMATE_WALLET_INDEX]) | ||
return _derive_path_unhardened(master, [12381, 8444, 2050]) | ||
|
||
|
||
def root_sk_to_gateway_sk(root: PrivateKey, mode: GatewayMode) -> PrivateKey: | ||
return _derive_path_unhardened(root, [mode.to_int()]) | ||
def root_sk_to_gateway_sk(root: PrivateKey) -> PrivateKey: | ||
return _derive_path_unhardened(root, [0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "Chia Climate Token Driver" | ||
version = "1.0.29" | ||
version = "1.0.30" | ||
description = "https://github.com/Chia-Network/climate-token-driver" | ||
authors = ["Harry Hsu <[email protected]>", | ||
"Chia Network Inc <[email protected]>"] | ||
|