-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeygen
executable file
·53 lines (34 loc) · 1.37 KB
/
keygen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env python3
from bitcoinkeytool import BitcoinAccount
from ethereumkeytool import EthereumAccount
from ripplekeytool import RippleAccount
for n in range(10): # number of key pairs to generate`
# generate private key , uncompressed WIF starts with "5", compressed
# with L or K
A = BitcoinAccount()
WIF = A.to_wif()
# get public key , (un)compressed address starts with "1"
addr = A.to_address()
i = n + 1
print('Bitcoin Private Key ', str(i) + ": " + WIF)
print("Bitcoin Address", str(i) + ": " + addr)
print("##############")
for n in range(10): # number of key pairs to generate`
# generate private key , uncompressed WIF starts with "5"
B = EthereumAccount()
# get public key , uncompressed address starts with "1"
priv = B.private_key
addr = B.to_address()
i = n + 1
print('Ethereum Private Key ', str(i) + ": " + priv)
print("Ethereum Address", str(i) + ": " + addr)
print("##############")
for n in range(10): # number of key pairs to generate`
# generate private key , uncompressed WIF starts with "5"
C = RippleAccount()
# get public key , uncompressed address starts with "1"
priv = C.private_key
addr = C.to_accountid()
i = n + 1
print('Ripple Private Key ', str(i) + ": " + priv)
print("Ripple Address", str(i) + ": " + addr)