Skip to content

Commit eb5b227

Browse files
committed
Update: all HDWallet class examples
1 parent 055e4dd commit eb5b227

30 files changed

+711
-6
lines changed

examples/hdwallet/bips/from_entropy.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,42 @@
3939

4040
# print(json.dumps(hdwallet.dump(exclude={"indexes"}), indent=4, ensure_ascii=False))
4141
print(json.dumps(hdwallet.dumps(exclude={"indexes"}), indent=4, ensure_ascii=False))
42+
43+
# print("Cryptocurrency:", hdwallet.cryptocurrency())
44+
# print("Symbol:", hdwallet.symbol())
45+
# print("Network:", hdwallet.network())
46+
# print("Coin Type:", hdwallet.coin_type())
47+
# print("Entropy:", hdwallet.entropy())
48+
# print("Strength:", hdwallet.strength())
49+
# print("Mnemonic:", hdwallet.mnemonic())
50+
# print("Passphrase:", hdwallet.passphrase())
51+
# print("Language:", hdwallet.language())
52+
# print("Seed:", hdwallet.seed())
53+
# print("ECC:", hdwallet.ecc())
54+
# print("HD:", hdwallet.hd())
55+
# print("Semantic:", hdwallet.semantic())
56+
# print("Root XPrivate Key:", hdwallet.root_xprivate_key())
57+
# print("Root XPublic Key:", hdwallet.root_xpublic_key())
58+
# print("Root Private Key:", hdwallet.root_private_key())
59+
# print("Root WIF:", hdwallet.root_wif())
60+
# print("Root Chain Code:", hdwallet.root_chain_code())
61+
# print("Root Public Key:", hdwallet.root_public_key())
62+
# print("Strict:", hdwallet.strict())
63+
# print("Public Key Type:", hdwallet.public_key_type())
64+
# print("WIF Type:", hdwallet.wif_type())
65+
# print("Path:", hdwallet.path())
66+
# print("Depth:", hdwallet.depth())
67+
# print("Indexes:", hdwallet.indexes())
68+
# print("Index:", hdwallet.index())
69+
# print("XPrivate Key:", hdwallet.xprivate_key())
70+
# print("XPublic Key:", hdwallet.xpublic_key())
71+
# print("Private Key:", hdwallet.private_key())
72+
# print("WIF:", hdwallet.wif())
73+
# print("Chain Code:", hdwallet.chain_code())
74+
# print("Public Key:", hdwallet.public_key())
75+
# print("Uncompressed:", hdwallet.uncompressed())
76+
# print("Compressed:", hdwallet.compressed())
77+
# print("Hash:", hdwallet.hash())
78+
# print("Fingerprint:", hdwallet.fingerprint())
79+
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())
80+
# print("Address:", hdwallet.address())

examples/hdwallet/bips/from_mnemonic.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,42 @@
3838

3939
print(json.dumps(hdwallet.dump(exclude={"indexes"}), indent=4, ensure_ascii=False))
4040
# print(json.dumps(hdwallet.dumps(exclude={"indexes"}), indent=4, ensure_ascii=False))
41+
42+
# print("Cryptocurrency:", hdwallet.cryptocurrency())
43+
# print("Symbol:", hdwallet.symbol())
44+
# print("Network:", hdwallet.network())
45+
# print("Coin Type:", hdwallet.coin_type())
46+
# print("Entropy:", hdwallet.entropy())
47+
# print("Strength:", hdwallet.strength())
48+
# print("Mnemonic:", hdwallet.mnemonic())
49+
# print("Passphrase:", hdwallet.passphrase())
50+
# print("Language:", hdwallet.language())
51+
# print("Seed:", hdwallet.seed())
52+
# print("ECC:", hdwallet.ecc())
53+
# print("HD:", hdwallet.hd())
54+
# print("Semantic:", hdwallet.semantic())
55+
# print("Root XPrivate Key:", hdwallet.root_xprivate_key())
56+
# print("Root XPublic Key:", hdwallet.root_xpublic_key())
57+
# print("Root Private Key:", hdwallet.root_private_key())
58+
# print("Root WIF:", hdwallet.root_wif())
59+
# print("Root Chain Code:", hdwallet.root_chain_code())
60+
# print("Root Public Key:", hdwallet.root_public_key())
61+
# print("Strict:", hdwallet.strict())
62+
# print("Public Key Type:", hdwallet.public_key_type())
63+
# print("WIF Type:", hdwallet.wif_type())
64+
# print("Path:", hdwallet.path())
65+
# print("Depth:", hdwallet.depth())
66+
# print("Indexes:", hdwallet.indexes())
67+
# print("Index:", hdwallet.index())
68+
# print("XPrivate Key:", hdwallet.xprivate_key())
69+
# print("XPublic Key:", hdwallet.xpublic_key())
70+
# print("Private Key:", hdwallet.private_key())
71+
# print("WIF:", hdwallet.wif())
72+
# print("Chain Code:", hdwallet.chain_code())
73+
# print("Public Key:", hdwallet.public_key())
74+
# print("Uncompressed:", hdwallet.uncompressed())
75+
# print("Compressed:", hdwallet.compressed())
76+
# print("Hash:", hdwallet.hash())
77+
# print("Fingerprint:", hdwallet.fingerprint())
78+
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())
79+
# print("Address:", hdwallet.address())

examples/hdwallet/bips/from_private_key.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,21 @@
1818
)
1919

2020
print(json.dumps(hdwallet.dump(exclude={"indexes"}), indent=4, ensure_ascii=False))
21+
22+
# print("Cryptocurrency:", hdwallet.cryptocurrency())
23+
# print("Symbol:", hdwallet.symbol())
24+
# print("Network:", hdwallet.network())
25+
# print("Coin Type:", hdwallet.coin_type())
26+
# print("ECC:", hdwallet.ecc())
27+
# print("HD:", hdwallet.hd())
28+
# print("Semantic:", hdwallet.semantic())
29+
# print("Public Key Type:", hdwallet.public_key_type())
30+
# print("WIF Type:", hdwallet.wif_type())
31+
# print("Private Key:", hdwallet.private_key())
32+
# print("WIF:", hdwallet.wif())
33+
# print("Public Key:", hdwallet.public_key())
34+
# print("Uncompressed:", hdwallet.uncompressed())
35+
# print("Compressed:", hdwallet.compressed())
36+
# print("Hash:", hdwallet.hash())
37+
# print("Fingerprint:", hdwallet.fingerprint())
38+
# print("Address:", hdwallet.address())

examples/hdwallet/bips/from_public_key.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,18 @@
1818
)
1919

2020
print(json.dumps(hdwallet.dump(exclude={"indexes"}), indent=4, ensure_ascii=False))
21+
22+
# print("Cryptocurrency:", hdwallet.cryptocurrency())
23+
# print("Symbol:", hdwallet.symbol())
24+
# print("Network:", hdwallet.network())
25+
# print("Coin Type:", hdwallet.coin_type())
26+
# print("ECC:", hdwallet.ecc())
27+
# print("HD:", hdwallet.hd())
28+
# print("Semantic:", hdwallet.semantic())
29+
# print("Public Key Type:", hdwallet.public_key_type())
30+
# print("Public Key:", hdwallet.public_key())
31+
# print("Uncompressed:", hdwallet.uncompressed())
32+
# print("Compressed:", hdwallet.compressed())
33+
# print("Hash:", hdwallet.hash())
34+
# print("Fingerprint:", hdwallet.fingerprint())
35+
# print("Address:", hdwallet.address())

examples/hdwallet/bips/from_seed.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,37 @@
3232

3333
print(json.dumps(hdwallet.dump(exclude={"indexes"}), indent=4, ensure_ascii=False))
3434
# print(json.dumps(hdwallet.dumps(exclude={"indexes"}), indent=4, ensure_ascii=False))
35+
36+
# print("Cryptocurrency:", hdwallet.cryptocurrency())
37+
# print("Symbol:", hdwallet.symbol())
38+
# print("Network:", hdwallet.network())
39+
# print("Coin Type:", hdwallet.coin_type())
40+
# print("Seed:", hdwallet.seed())
41+
# print("ECC:", hdwallet.ecc())
42+
# print("HD:", hdwallet.hd())
43+
# print("Semantic:", hdwallet.semantic())
44+
# print("Root XPrivate Key:", hdwallet.root_xprivate_key())
45+
# print("Root XPublic Key:", hdwallet.root_xpublic_key())
46+
# print("Root Private Key:", hdwallet.root_private_key())
47+
# print("Root WIF:", hdwallet.root_wif())
48+
# print("Root Chain Code:", hdwallet.root_chain_code())
49+
# print("Root Public Key:", hdwallet.root_public_key())
50+
# print("Strict:", hdwallet.strict())
51+
# print("Public Key Type:", hdwallet.public_key_type())
52+
# print("WIF Type:", hdwallet.wif_type())
53+
# print("Path:", hdwallet.path())
54+
# print("Depth:", hdwallet.depth())
55+
# print("Indexes:", hdwallet.indexes())
56+
# print("Index:", hdwallet.index())
57+
# print("XPrivate Key:", hdwallet.xprivate_key())
58+
# print("XPublic Key:", hdwallet.xpublic_key())
59+
# print("Private Key:", hdwallet.private_key())
60+
# print("WIF:", hdwallet.wif())
61+
# print("Chain Code:", hdwallet.chain_code())
62+
# print("Public Key:", hdwallet.public_key())
63+
# print("Uncompressed:", hdwallet.uncompressed())
64+
# print("Compressed:", hdwallet.compressed())
65+
# print("Hash:", hdwallet.hash())
66+
# print("Fingerprint:", hdwallet.fingerprint())
67+
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())
68+
# print("Address:", hdwallet.address())

examples/hdwallet/bips/from_wif.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,21 @@
1818
)
1919

2020
print(json.dumps(hdwallet.dump(exclude={"indexes"}), indent=4, ensure_ascii=False))
21+
22+
# print("Cryptocurrency:", hdwallet.cryptocurrency())
23+
# print("Symbol:", hdwallet.symbol())
24+
# print("Network:", hdwallet.network())
25+
# print("Coin Type:", hdwallet.coin_type())
26+
# print("ECC:", hdwallet.ecc())
27+
# print("HD:", hdwallet.hd())
28+
# print("Semantic:", hdwallet.semantic())
29+
# print("Public Key Type:", hdwallet.public_key_type())
30+
# print("WIF Type:", hdwallet.wif_type())
31+
# print("Private Key:", hdwallet.private_key())
32+
# print("WIF:", hdwallet.wif())
33+
# print("Public Key:", hdwallet.public_key())
34+
# print("Uncompressed:", hdwallet.uncompressed())
35+
# print("Compressed:", hdwallet.compressed())
36+
# print("Hash:", hdwallet.hash())
37+
# print("Fingerprint:", hdwallet.fingerprint())
38+
# print("Address:", hdwallet.address())

examples/hdwallet/bips/from_xprivate_key.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,36 @@
2828

2929
# print(json.dumps(hdwallet.dump(exclude={"indexes"}), indent=4, ensure_ascii=False))
3030
print(json.dumps(hdwallet.dumps(exclude={"indexes"}), indent=4, ensure_ascii=False))
31+
32+
# print("Cryptocurrency:", hdwallet.cryptocurrency())
33+
# print("Symbol:", hdwallet.symbol())
34+
# print("Network:", hdwallet.network())
35+
# print("Coin Type:", hdwallet.coin_type())
36+
# print("ECC:", hdwallet.ecc())
37+
# print("HD:", hdwallet.hd())
38+
# print("Semantic:", hdwallet.semantic())
39+
# print("Root XPrivate Key:", hdwallet.root_xprivate_key())
40+
# print("Root XPublic Key:", hdwallet.root_xpublic_key())
41+
# print("Root Private Key:", hdwallet.root_private_key())
42+
# print("Root WIF:", hdwallet.root_wif())
43+
# print("Root Chain Code:", hdwallet.root_chain_code())
44+
# print("Root Public Key:", hdwallet.root_public_key())
45+
# print("Strict:", hdwallet.strict())
46+
# print("Public Key Type:", hdwallet.public_key_type())
47+
# print("WIF Type:", hdwallet.wif_type())
48+
# print("Path:", hdwallet.path())
49+
# print("Depth:", hdwallet.depth())
50+
# print("Indexes:", hdwallet.indexes())
51+
# print("Index:", hdwallet.index())
52+
# print("XPrivate Key:", hdwallet.xprivate_key())
53+
# print("XPublic Key:", hdwallet.xpublic_key())
54+
# print("Private Key:", hdwallet.private_key())
55+
# print("WIF:", hdwallet.wif())
56+
# print("Chain Code:", hdwallet.chain_code())
57+
# print("Public Key:", hdwallet.public_key())
58+
# print("Uncompressed:", hdwallet.uncompressed())
59+
# print("Compressed:", hdwallet.compressed())
60+
# print("Hash:", hdwallet.hash())
61+
# print("Fingerprint:", hdwallet.fingerprint())
62+
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())
63+
# print("Address:", hdwallet.address())

examples/hdwallet/bips/from_xpublic_key.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,29 @@
2828

2929
# print(json.dumps(hdwallet.dump(exclude={"indexes"}), indent=4, ensure_ascii=False))
3030
print(json.dumps(hdwallet.dumps(exclude={"indexes"}), indent=4, ensure_ascii=False))
31+
32+
# print("Cryptocurrency:", hdwallet.cryptocurrency())
33+
# print("Symbol:", hdwallet.symbol())
34+
# print("Network:", hdwallet.network())
35+
# print("Coin Type:", hdwallet.coin_type())
36+
# print("ECC:", hdwallet.ecc())
37+
# print("HD:", hdwallet.hd())
38+
# print("Semantic:", hdwallet.semantic())
39+
# print("Root XPublic Key:", hdwallet.root_xpublic_key())
40+
# print("Root Chain Code:", hdwallet.root_chain_code())
41+
# print("Root Public Key:", hdwallet.root_public_key())
42+
# print("Strict:", hdwallet.strict())
43+
# print("Public Key Type:", hdwallet.public_key_type())
44+
# print("Path:", hdwallet.path())
45+
# print("Depth:", hdwallet.depth())
46+
# print("Indexes:", hdwallet.indexes())
47+
# print("Index:", hdwallet.index())
48+
# print("XPublic Key:", hdwallet.xpublic_key())
49+
# print("Chain Code:", hdwallet.chain_code())
50+
# print("Public Key:", hdwallet.public_key())
51+
# print("Uncompressed:", hdwallet.uncompressed())
52+
# print("Compressed:", hdwallet.compressed())
53+
# print("Hash:", hdwallet.hash())
54+
# print("Fingerprint:", hdwallet.fingerprint())
55+
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())
56+
# print("Address:", hdwallet.address())

examples/hdwallet/cardano/from_entropy.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,40 @@
3737

3838
# print(json.dumps(hdwallet.dump(exclude={"indexes"}), indent=4, ensure_ascii=False))
3939
print(json.dumps(hdwallet.dumps(exclude={"indexes"}), indent=4, ensure_ascii=False))
40+
41+
# print("Cryptocurrency:", hdwallet.cryptocurrency())
42+
# print("Symbol:", hdwallet.symbol())
43+
# print("Network:", hdwallet.network())
44+
# print("Coin Type:", hdwallet.coin_type())
45+
# print("Entropy:", hdwallet.entropy())
46+
# print("Strength:", hdwallet.strength())
47+
# print("Mnemonic:", hdwallet.mnemonic())
48+
# print("Passphrase:", hdwallet.passphrase())
49+
# print("Language:", hdwallet.language())
50+
# print("Seed:", hdwallet.seed())
51+
# print("ECC:", hdwallet.ecc())
52+
# print("HD:", hdwallet.hd())
53+
# print("Cardano Type:", hdwallet.cardano_type())
54+
# print("Semantic:", hdwallet.semantic())
55+
# print("Root XPrivate Key:", hdwallet.root_xprivate_key())
56+
# print("Root XPublic Key:", hdwallet.root_xpublic_key())
57+
# print("Root Private Key:", hdwallet.root_private_key())
58+
# print("Root Chain Code:", hdwallet.root_chain_code())
59+
# print("Root Public Key:", hdwallet.root_public_key())
60+
# print("Strict:", hdwallet.strict())
61+
# print("Public Key Type:", hdwallet.public_key_type())
62+
# print("Path:", hdwallet.path())
63+
# print("Depth:", hdwallet.depth())
64+
# print("Indexes:", hdwallet.indexes())
65+
# print("Index:", hdwallet.index())
66+
# print("XPrivate Key:", hdwallet.xprivate_key())
67+
# print("XPublic Key:", hdwallet.xpublic_key())
68+
# print("Private Key:", hdwallet.private_key())
69+
# print("Chain Code:", hdwallet.chain_code())
70+
# print("Public Key:", hdwallet.public_key())
71+
# print("Uncompressed:", hdwallet.uncompressed())
72+
# print("Compressed:", hdwallet.compressed())
73+
# print("Hash:", hdwallet.hash())
74+
# print("Fingerprint:", hdwallet.fingerprint())
75+
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())
76+
# print("Address:", hdwallet.address())

examples/hdwallet/cardano/from_mnemonic.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,40 @@
3737

3838
print(json.dumps(hdwallet.dump(exclude={"indexes"}), indent=4, ensure_ascii=False))
3939
# print(json.dumps(hdwallet.dumps(exclude={"indexes"}), indent=4, ensure_ascii=False))
40+
41+
# print("Cryptocurrency:", hdwallet.cryptocurrency())
42+
# print("Symbol:", hdwallet.symbol())
43+
# print("Network:", hdwallet.network())
44+
# print("Coin Type:", hdwallet.coin_type())
45+
# print("Entropy:", hdwallet.entropy())
46+
# print("Strength:", hdwallet.strength())
47+
# print("Mnemonic:", hdwallet.mnemonic())
48+
# print("Passphrase:", hdwallet.passphrase())
49+
# print("Language:", hdwallet.language())
50+
# print("Seed:", hdwallet.seed())
51+
# print("ECC:", hdwallet.ecc())
52+
# print("HD:", hdwallet.hd())
53+
# print("Cardano Type:", hdwallet.cardano_type())
54+
# print("Semantic:", hdwallet.semantic())
55+
# print("Root XPrivate Key:", hdwallet.root_xprivate_key())
56+
# print("Root XPublic Key:", hdwallet.root_xpublic_key())
57+
# print("Root Private Key:", hdwallet.root_private_key())
58+
# print("Root Chain Code:", hdwallet.root_chain_code())
59+
# print("Root Public Key:", hdwallet.root_public_key())
60+
# print("Strict:", hdwallet.strict())
61+
# print("Public Key Type:", hdwallet.public_key_type())
62+
# print("Path:", hdwallet.path())
63+
# print("Depth:", hdwallet.depth())
64+
# print("Indexes:", hdwallet.indexes())
65+
# print("Index:", hdwallet.index())
66+
# print("XPrivate Key:", hdwallet.xprivate_key())
67+
# print("XPublic Key:", hdwallet.xpublic_key())
68+
# print("Private Key:", hdwallet.private_key())
69+
# print("Chain Code:", hdwallet.chain_code())
70+
# print("Public Key:", hdwallet.public_key())
71+
# print("Uncompressed:", hdwallet.uncompressed())
72+
# print("Compressed:", hdwallet.compressed())
73+
# print("Hash:", hdwallet.hash())
74+
# print("Fingerprint:", hdwallet.fingerprint())
75+
# print("Parent Fingerprint:", hdwallet.parent_fingerprint())
76+
# print("Address:", hdwallet.address())

0 commit comments

Comments
 (0)