It's HDWallet Generator for Ethereum blockchain.
Project description
Cobra-HDWallet ![Cobra](https://pypi-camo.freetls.fastly.net/0fc9a176d6c4fa6ea4eb4243b8b4a28bb6acc97f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6272612d4672616d65776f726b2d4542314432352e7376673f75726c3d68747470733a2f2f636f6272616672616d65776f726b2e6769746875622e696f267374796c653d666f722d7468652d626164676526636f6c6f72413d304531363236266c6f676f3d646174613a696d6167652f706e673b6261736536342c6956424f5277304b47676f414141414e5355684555674141414441414141417a43415941414144526c6f7370414141414358424957584d41414173534141414c45674853335837384141414439306c455156526f676456614f314c6a514244745657324f413858436b564b384a3041337744645945322b4154724272626d44536a63774e3742754962454f544b724956624b51416f67335a617463624d57703639454e59346c57352f4e4659302f2f706a373638764c7a51715a414859555245657a394c393331742b61454d354545344a6149464563324a364d4b36644343694a2f7a476e39663836734a5937777a6b515467686f67694558796c4c4867557a4e6d37394c46323232613833426944744a61523956724755475a6857724c6e7a737a527575752f58397153575952482b766546666a4e6c7332422b49614359304e57327a6632634759437172466f512f5737612b452f66692b3978677a61494e485a305979494d776874537254455669706a6b70424d466d64306445457a394c6e397251306f71425041686e6b4b4c4c436176774a772f43333336572f6c5457734e4d6e654a6437546d426d61766874374d5235454c4c4566335567334d592f496b714a4b50617a6c416d326953516a665573727353577357377976624333564d67416e336452493354686c416b6e74714379394f577a626d4e775737367a4e68416e4350684857586946614a58675237724f534a6c624a4145776d71624431657a686c347268753332734376376e42547a2b493643384934396345652b304d55386f3970744b4d6e417a5545502f4145753179636c716e4d35744867684e3535326670796c706a727250453131583355786d417450594b38633867664e4f576341637a687443706a464b577a3747773571376f35474a677039673845782f4a4750365279494f514e58514a663467304a6a79462b4f555969416357324a767053557930736c466941505970512b565178424e4d79766a4742594a41435649446d734d7368794465414e6e704156397655464d554b426a41685576782f7763374f6777496d3461536b47304e61436c7371385471413245546659376f39636f416e454d57482f64396c6e377641614c5031727046345174474135716b783241364e757a546e7258414b556642674d7743483464305841646b756c4c4a5143386e625a39514248716b325550736c796c446258493245413757746d784745302b72515a746b6c774e424270575a6831545778764e49696464773149444d4c38626d7646575976556e6d5068732b47774e762f4e56445256533561455134463651386559724e7930576a41457063695a326e6843625834714878706d6430314141534e686b367463576a593442505a2b50453875416146514f4f624a6d4c66584978634b58566e774e69726d793973526e516b72664750666f5451427436764449415039694b42664559744944715330624742314e733251655a4c47444f527149465466704669566c7162466d4e4a427666686970754842337867352b6c7857457255776e56316f59774a58524a74485a2b716677744d5941363445373834667a5546526f4f556d335072617856744752756956366b6a637338434e656e30415432574c736179334b3971376e72617130376d3678396f4b616c722f71696d6b356a6f5859616333397962316f6150524d665678422f37516f6b64524f6142634b7264744d745a6c3376616e35423669736c2b686c63567730356d737a4936735a4d5734795a576a6b36744f6836484946673833476e435932793252534f355a4b5332624359636545336f3361546e6b663448445634484748523550787039617845787746335739787130386865474b42756a7867307854316d45613138717650544b6d4445444f6d366c71466d767377533778514d656e6e63426a374354736e327a5a396476734b327a59516542396a767a72474936442f494b4c2f4c34537376374141414141424a52553545726b4a6767673d3d)
It's HDWallet Generator for Ethereum blockchain.
You can paste Mnemonic(Seed) or Private-Key on Metamask/MyEtherWallet
Installation
Install cobra-hdwallet
pip install cobra-hdwallet
Usage
# Creating HDWallet ![Hdwallet](https://pypi-camo.freetls.fastly.net/2e38329391989579585456d74be9f26036b1f3a4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6976652d486477616c6c65742d4542314432352e7376673f7374796c653d666c61742d7371756172652626636f6c6f72413d3045313632362675726c3d68747470733a2f2f636f6272616672616d65776f726b2e6769746875622e696f2f23686477616c6c6574)
from cobra_hdwallet import HDWallet
# init HDWallet
hdWallet = HDWallet()
# Generate seed
mnemonic = hdWallet.generate_mnemonic("english")
# Check seed it is not required
# if not hdWallet.check_mnemonic(mnemonic, "english"):
# exit()
# Create HDWallet by seed and password.
# enHDWallet = hdWallet.create_hdwallet(mnemonic) # Without password
enHDWallet = hdWallet.create_hdwallet(mnemonic, "password")
# Print Generated HDWallet
print(enHDWallet)
OUTPUT
{
'coin': '...',
'name': '...',
'address': '...',
'mnemonic': '...',
'wif': '...',
'finger_print': '...',
'chain_code': '...',
'private_key': '...',
'public_key': '...',
'uncompressed_public_key': '...',
'serialized': {
'private_key_hex': '...',
'public_key_hex': '...',
'xprivate_key_base58': '...',
'xpublic_key_base58': '...'
}
}
# Get HDWallet form Private Key ![Hdwallet-Private](https://pypi-camo.freetls.fastly.net/2364ccaa96bab11547d800f93c5cae24969401aa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6976652d486477616c6c65745f507269766174652d4542314432352e7376673f7374796c653d666c61742d7371756172652626636f6c6f72413d3045313632362675726c3d68747470733a2f2f636f6272616672616d65776f726b2e6769746875622e696f2f23686477616c6c65742f70726976617465)
from cobra_hdwallet import HDWallet
# init HDWallet
hdWallet = HDWallet()
# Get HDWallet from private key
private_key = 'bc42cee69a730913a84df8b70eee15517c0b56e8c8cc36ba3d11bbad91ee5456'
pvHDWallet = hdWallet.hdwallet_from_private(private_key)
# Print HDWallet
print(pvHDWallet)
OUTPUT
{
'coin': '...',
'name': '...',
'address': '...',
'wif': '...',
'finger_print': '...',
'private_key': '...',
'public_key': '...',
'uncompressed_public_key': '...'
}
Further help
# Cobra Framework
Go check out the Cobra.
Author
# Meheret Tesfaye @meherett.
Donation
Bitcoin 3JiPsp6bT6PkXF3f9yZsL5hrdQwtVuXXAk
Ethereum 0xD32AAEDF28A848e21040B6F643861A9077F83106
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cobra-hdwallet-0.3.1.tar.gz
(29.8 kB
view hashes)
Built Distribution
Close
Hashes for cobra_hdwallet-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 385957922c2b169ce097501f6e7d59f6cfb3841a51b4084d46ac2a037798d4a9 |
|
MD5 | ef27bad2e702b619603b911a43770f74 |
|
BLAKE2b-256 | 329ec34f5d29ef23eb28da405a436e19fee570f0bba8771a29cb529e3842f3c7 |