Skip to content

Commit 10b6695

Browse files
committed
Update: all Cardano HDWallet examples
1 parent 84a8ab8 commit 10b6695

File tree

7 files changed

+3
-23
lines changed

7 files changed

+3
-23
lines changed

examples/hdwallet/cardano/from_entropy.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
hd=CardanoHD,
2020
language=BIP39_MNEMONIC_LANGUAGES.CZECH,
2121
cardano_type=Cryptocurrency.TYPES.BYRON_ICARUS,
22-
passphrase="meherett"
22+
address_type=Cryptocurrency.ADDRESS_TYPES.REDEMPTION,
23+
passphrase=None
2324
).from_entropy(
2425
entropy=BIP39Entropy(
2526
entropy=BIP39Entropy.generate(
@@ -58,7 +59,6 @@
5859
# print("Root Chain Code:", hdwallet.root_chain_code())
5960
# print("Root Public Key:", hdwallet.root_public_key())
6061
# print("Strict:", hdwallet.strict())
61-
# print("Public Key Type:", hdwallet.public_key_type())
6262
# print("Path:", hdwallet.path())
6363
# print("Depth:", hdwallet.depth())
6464
# print("Indexes:", hdwallet.indexes())
@@ -68,8 +68,6 @@
6868
# print("Private Key:", hdwallet.private_key())
6969
# print("Chain Code:", hdwallet.chain_code())
7070
# print("Public Key:", hdwallet.public_key())
71-
# print("Uncompressed:", hdwallet.uncompressed())
72-
# print("Compressed:", hdwallet.compressed())
7371
# print("Hash:", hdwallet.hash())
7472
# print("Fingerprint:", hdwallet.fingerprint())
7573
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())

examples/hdwallet/cardano/from_mnemonic.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
# print("Root Chain Code:", hdwallet.root_chain_code())
5959
# print("Root Public Key:", hdwallet.root_public_key())
6060
# print("Strict:", hdwallet.strict())
61-
# print("Public Key Type:", hdwallet.public_key_type())
6261
# print("Path:", hdwallet.path())
6362
# print("Depth:", hdwallet.depth())
6463
# print("Indexes:", hdwallet.indexes())
@@ -68,8 +67,6 @@
6867
# print("Private Key:", hdwallet.private_key())
6968
# print("Chain Code:", hdwallet.chain_code())
7069
# print("Public Key:", hdwallet.public_key())
71-
# print("Uncompressed:", hdwallet.uncompressed())
72-
# print("Compressed:", hdwallet.compressed())
7370
# print("Hash:", hdwallet.hash())
7471
# print("Fingerprint:", hdwallet.fingerprint())
7572
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())

examples/hdwallet/cardano/from_private_key.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@
2626
# print("HD:", hdwallet.hd())
2727
# print("Cardano Type:", hdwallet.cardano_type())
2828
# print("Semantic:", hdwallet.semantic())
29-
# print("Public Key Type:", hdwallet.public_key_type())
3029
# print("Private Key:", hdwallet.private_key())
3130
# print("Public Key:", hdwallet.public_key())
32-
# print("Uncompressed:", hdwallet.uncompressed())
33-
# print("Compressed:", hdwallet.compressed())
3431
# print("Hash:", hdwallet.hash())
3532
# print("Fingerprint:", hdwallet.fingerprint())
3633
# print("Address:", hdwallet.address())

examples/hdwallet/cardano/from_public_key.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@
2626
# print("HD:", hdwallet.hd())
2727
# print("Cardano Type:", hdwallet.cardano_type())
2828
# print("Semantic:", hdwallet.semantic())
29-
# print("Public Key Type:", hdwallet.public_key_type())
3029
# print("Public Key:", hdwallet.public_key())
31-
# print("Uncompressed:", hdwallet.uncompressed())
32-
# print("Compressed:", hdwallet.compressed())
3330
# print("Hash:", hdwallet.hash())
3431
# print("Fingerprint:", hdwallet.fingerprint())
3532
# print("Address:", hdwallet.address())

examples/hdwallet/cardano/from_seed.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
cardano_type=Cryptocurrency.TYPES.SHELLEY_ICARUS,
1818
address_type=Cryptocurrency.ADDRESS_TYPES.PAYMENT,
1919
staking_public_key="00f06973be3a2b8d74086283e18176b6b4b5bd28da78c264cd65ad146126f8240e",
20-
passphrase="meherett"
20+
passphrase="talonlab"
2121
).from_seed(
2222
seed=CardanoSeed(
2323
seed="fca87b68fdffa968895901c894f678f6"
@@ -49,7 +49,6 @@
4949
# print("Root Chain Code:", hdwallet.root_chain_code())
5050
# print("Root Public Key:", hdwallet.root_public_key())
5151
# print("Strict:", hdwallet.strict())
52-
# print("Public Key Type:", hdwallet.public_key_type())
5352
# print("Path:", hdwallet.path())
5453
# print("Depth:", hdwallet.depth())
5554
# print("Indexes:", hdwallet.indexes())
@@ -59,8 +58,6 @@
5958
# print("Private Key:", hdwallet.private_key())
6059
# print("Chain Code:", hdwallet.chain_code())
6160
# print("Public Key:", hdwallet.public_key())
62-
# print("Uncompressed:", hdwallet.uncompressed())
63-
# print("Compressed:", hdwallet.compressed())
6461
# print("Hash:", hdwallet.hash())
6562
# print("Fingerprint:", hdwallet.fingerprint())
6663
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())

examples/hdwallet/cardano/from_xprivate_key.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
# print("Root Public Key:", hdwallet.root_public_key())
4141
# print("Path Key:", hdwallet.path_key())
4242
# print("Strict:", hdwallet.strict())
43-
# print("Public Key Type:", hdwallet.public_key_type())
4443
# print("Path:", hdwallet.path())
4544
# print("Depth:", hdwallet.depth())
4645
# print("Indexes:", hdwallet.indexes())
@@ -50,8 +49,6 @@
5049
# print("Private Key:", hdwallet.private_key())
5150
# print("Chain Code:", hdwallet.chain_code())
5251
# print("Public Key:", hdwallet.public_key())
53-
# print("Uncompressed:", hdwallet.uncompressed())
54-
# print("Compressed:", hdwallet.compressed())
5552
# print("Hash:", hdwallet.hash())
5653
# print("Fingerprint:", hdwallet.fingerprint())
5754
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())

examples/hdwallet/cardano/from_xpublic_key.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,13 @@
3737
# print("Root Chain Code:", hdwallet.root_chain_code())
3838
# print("Root Public Key:", hdwallet.root_public_key())
3939
# print("Strict:", hdwallet.strict())
40-
# print("Public Key Type:", hdwallet.public_key_type())
4140
# print("Path:", hdwallet.path())
4241
# print("Depth:", hdwallet.depth())
4342
# print("Indexes:", hdwallet.indexes())
4443
# print("Index:", hdwallet.index())
4544
# print("XPublic Key:", hdwallet.xpublic_key())
4645
# print("Chain Code:", hdwallet.chain_code())
4746
# print("Public Key:", hdwallet.public_key())
48-
# print("Uncompressed:", hdwallet.uncompressed())
49-
# print("Compressed:", hdwallet.compressed())
5047
# print("Hash:", hdwallet.hash())
5148
# print("Fingerprint:", hdwallet.fingerprint())
5249
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())

0 commit comments

Comments
 (0)