Skip to content

Commit 3c121ef

Browse files
committed
Modify: Exodus-Wallet & Algorand clients
1 parent 1454779 commit 3c121ef

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

clients/algorand.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from hdwallet.mnemonics.algorand import (
55
AlgorandMnemonic, ALGORAND_MNEMONIC_LANGUAGES, ALGORAND_MNEMONIC_WORDS
66
)
7+
from hdwallet.eccs import SLIP10Ed25519ECC
78
from hdwallet.seeds.algorand import AlgorandSeed
89
from hdwallet.cryptocurrencies import Algorand as Cryptocurrency
910
from hdwallet.hds import BIP44HD
@@ -26,6 +27,7 @@
2627

2728
# Initialize Algorand HDWallet
2829
hdwallet: HDWallet = HDWallet(
30+
ecc=SLIP10Ed25519ECC,
2931
cryptocurrency=Cryptocurrency,
3032
hd=BIP44HD,
3133
network=Cryptocurrency.NETWORKS.MAINNET,

clients/exodus_wallet.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env python3
22

33
from hdwallet import HDWallet
4-
from hdwallet.eccs import SLIP10Secp256k1ECC
4+
from hdwallet.eccs import (
5+
SLIP10Secp256k1ECC, SLIP10Ed25519ECC, SLIP10Nist256p1ECC
6+
)
57
from hdwallet.seeds.bip39 import BIP39Seed
68
from hdwallet.cryptocurrencies import (
79
Algorand, Solana, Stellar, Neo
@@ -16,14 +18,21 @@
1618
mnemonic=mnemonic, passphrase=None
1719
)
1820

19-
for Cryptocurrency in (Algorand, Solana, Stellar, Neo):
21+
22+
for Cryptocurrency, ECC in [
23+
(Algorand, SLIP10Ed25519ECC),
24+
(Solana, SLIP10Ed25519ECC),
25+
(Stellar, SLIP10Ed25519ECC),
26+
(Neo, SLIP10Nist256p1ECC)
27+
]:
2028
# Initialize SLIP10-Secp256k1 BIP44 HD and update root keys from seed
2129
bip44_hd: BIP44HD = BIP44HD(
2230
ecc=SLIP10Secp256k1ECC, coin_type=Cryptocurrency.COIN_TYPE
2331
).from_seed(seed=BIP39Seed(seed=seed))
2432

2533
# Initialize Cryptocurrency HDWallet
2634
hdwallet: HDWallet = HDWallet(
35+
ecc=ECC,
2736
cryptocurrency=Cryptocurrency,
2837
hd=BIP44HD,
2938
network=Cryptocurrency.NETWORKS.MAINNET,

0 commit comments

Comments
 (0)