Bitcoin Forum
November 15, 2024, 06:09:40 PM
Welcome,
Guest
. Please
login
or
register
.
News
:
Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
Home
Help
Search
Login
Register
More
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
>
Java Base58 Keypair Generator?
Pages: [
1
]
« previous topic
next topic »
Print
Author
Topic: Java Base58 Keypair Generator? (Read 1910 times)
rage39a
(OP)
Newbie
Offline
Activity: 6
Merit: 0
Java Base58 Keypair Generator?
July 23, 2013, 11:27:19 AM
#1
Hi
I'm trying to generate valid bitcoin Base58 public and private key addresses in java. I've download bitcoinj and bitcoinj-minimal, i've managed to generate base58 public keys from bitcoinj-minimal and some form of the private key but not base58 and can't see how this can be done with pre-existing functionality. Bitcoinj i believe has this functionality but haven't managed to get it to work because of the endless dependencies. Is there any java code out there which is simple/minimal and just is used for Base58 Keypair Generation or could some one point me in the right direction.
Cheers
rage39a
Mike Hearn
Legendary
Offline
Activity: 1526
Merit: 1134
Re: Java Base58 Keypair Generator?
July 23, 2013, 12:03:40 PM
#2
What is "bitcoinj minimal" - I've never heard of that and I wrote bitcoinj.
It's easy to get the full library. You need to use Maven. Read this:
https://code.google.com/p/bitcoinj/wiki/UsingMaven
Then you will have all the dependencies.
rage39a
(OP)
Newbie
Offline
Activity: 6
Merit: 0
Re: Java Base58 Keypair Generator?
July 23, 2013, 12:16:50 PM
#3
bitcoinj-minimal is just a stripped down version of bitcoinj, yeh i've got the full bitcoinj library it seems to rely on loads of other random packages, and its so bloated for just the simple functions i need
Mike Hearn
Legendary
Offline
Activity: 1526
Merit: 1134
Re: Java Base58 Keypair Generator?
July 23, 2013, 02:02:01 PM
#4
You can just copy/paste the Base58, ECKey and Address classes then satisfy the dependencies for those, if you want. But Maven is so convenient it shouldn't be easier to do that, than just run the tool.
bitcoinj is a full blown Bitcoin API by this point. I would describe it as "featureful" rather than bloated
rage39a
(OP)
Newbie
Offline
Activity: 6
Merit: 0
Re: Java Base58 Keypair Generator?
July 23, 2013, 02:39:50 PM
#5
lol true but for the functions i need its overkill, well i downloaded it via github and its still got issues, if you take those three classes surely you'll need NetworkParamaters class to use the Address class and then this references some other class over and over plus those 3 classes reference about 50 other classes which again in turn refernce another 50 etc etc
Mike Hearn
Legendary
Offline
Activity: 1526
Merit: 1134
Re: Java Base58 Keypair Generator?
July 23, 2013, 06:05:25 PM
#6
Github? It's hosted on Google Code.
The only thing it needs from NetworkParameters is the version codes. You could just hard code them. But seriously, just use the real library. It's not worth wasting your time on trying to strip it down. ProGuard can delete unused code if you're concerned about final jar size.
rage39a
(OP)
Newbie
Offline
Activity: 6
Merit: 0
Re: Java Base58 Keypair Generator?
July 26, 2013, 03:27:28 PM
#7
github just allows you to use git on windows. Yeah managed to get it working in the end using maven to get the dependencies (i think). Turns out my pubkey is base64 instead not sure how to get it to base58 with the existing code but simple enough to write the code for it myself. But yeh the codes pretty damn slow for address generation takes around 24 seconds to generate a 1000 keypairs whereas i can read about 16000 into java through vanitygen in the same time. Might have to try and create some code which is as simple/minimal as possible for base58 key generation.
Mike Hearn
Legendary
Offline
Activity: 1526
Merit: 1134
Re: Java Base58 Keypair Generator?
July 26, 2013, 05:39:15 PM
#8
You probably aren't multi-threading it or using the server VM. Also, Bouncy Castle is really slow. bitcoinj supports a native ECDSA implementation, but you would need to provide the windows DLL for it.
Pages: [
1
]
Print
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
>
Java Base58 Keypair Generator?
« previous topic
next topic »
Jump to:
Please select a destination:
-----------------------------
Bitcoin
-----------------------------
=> Bitcoin Discussion
===> Legal
===> Press
===> Meetups
===> Important Announcements
=> Development & Technical Discussion
===> Wallet software
=====> Electrum
=====> Bitcoin Wallet for Android
=====> BitcoinJ
=====> Armory
=====> Mycelium
=====> Hardware wallets
=> Mining
===> Mining support
===> Pools
===> Mining software (miners)
===> Hardware
=====> Group buys
===> Mining speculation
=> Bitcoin Technical Support
=> Project Development
-----------------------------
Economy
-----------------------------
=> Economics
===> Speculation
=> Marketplace
===> Goods
=====> Computer hardware
=====> Digital goods
=======> Invites & Accounts
=====> Collectibles
===> Services
===> Currency exchange
===> Gambling
=====> Games and rounds
=====> Investor-based games
=====> Gambling discussion
===> Lending
=====> Long-term offers
===> Securities
===> Auctions
===> Service Announcements
=====> Micro Earnings
===> Service Discussion
=====> Web Wallets
=====> Exchanges
=> Trading Discussion
===> Scam Accusations
===> Reputation
-----------------------------
Other
-----------------------------
=> Meta
===> New forum software
===> Bitcoin Wiki
=> Politics & Society
=> Beginners & Help
=> Off-topic
=> Serious discussion
===> Ivory Tower
=> Archival
===> Корзина
===> CPU/GPU Bitcoin mining hardware
===> Chinese students
===> Obsolete (buying)
===> Obsolete (selling)
===> MultiBit
-----------------------------
Alternate cryptocurrencies
-----------------------------
=> Altcoin Discussion
=> Announcements (Altcoins)
===> Tokens (Altcoins)
=> Mining (Altcoins)
===> Pools (Altcoins)
=> Marketplace (Altcoins)
===> Service Announcements (Altcoins)
===> Service Discussion (Altcoins)
===> Bounties (Altcoins)
=> Speculation (Altcoins)
-----------------------------
Local
-----------------------------
=> العربية (Arabic)
===> العملات البديلة (Altcoins)
=====> النقاشات
===> إستفسارات و أسئلة المبتدئين
===> التعدين
===> النقاشات الأخرى
===> منصات التبادل
=> Bahasa Indonesia (Indonesian)
===> Marketplace (Bahasa Indonesia)
===> Mining (Bahasa Indonesia)
===> Altcoins (Bahasa Indonesia)
===> Trading dan Spekulasi
===> Ekonomi, Politik, dan Budaya
===> Topik Lainnya
=> Español (Spanish)
===> Mercado y Economía
=====> Servicios
=====> Trading y especulación
===> Hardware y Minería
===> Esquina Libre
===> Mercadillo
=====> Mexico
=====> Argentina
=====> España
=====> Centroamerica y Caribe
===> Primeros pasos y ayuda
===> Altcoins (criptomonedas alternativas)
=====> Minería de altcoins
=====> Servicios
=====> Tokens (Español)
=> 中文 (Chinese)
===> 跳蚤市场
===> 山寨币
===> 媒体
===> 挖矿
===> 离题万里
=> Hrvatski (Croatian)
===> Trgovina
===> Altcoins (Hrvatski)
=====> Announcements (Hrvatski)
===> Off-topic (Hrvatski)
=> Deutsch (German)
===> Anfänger und Hilfe
===> Mining (Deutsch)
===> Trading und Spekulation
===> Projektentwicklung
===> Off-Topic (Deutsch)
===> Treffen
===> Presse
===> Altcoins (Deutsch)
=====> Announcements (Deutsch)
===> Marktplatz
=====> Auktionen
=====> Suche
=====> Biete
=> Ελληνικά (Greek)
===> Αγορά
===> Mining Discussion (Ελληνικά)
===> Altcoins (Ελληνικά)
=====> Altcoin Announcements (Ελληνικά)
=====> Altcoin Mining (Ελληνικά)
=> עברית (Hebrew)
=> Français
===> Actualité et News
===> Débutants
===> Discussions générales et utilisation du Bitcoin
===> Mining et Hardware
===> Économie et spéculation
===> Place de marché
=====> Échanges
=====> Produits et services
=====> Petites annonces
===> Le Bitcoin et la loi
===> Wiki, documentation et traduction
===> Développement et technique
===> Vos sites et projets
===> Hors-sujet
===> Altcoins (Français)
=====> Annonces
=> India
===> Mining (India)
===> Marketplace (India)
===> Regional Languages (India)
===> Press & News from India
===> Alt Coins (India)
===> Buyer/ Seller Reputations (India)
===> Off-Topic (India)
=> Italiano (Italian)
===> Guide (Italiano)
===> Progetti
===> Discussioni avanzate e sviluppo
===> Trading, analisi e speculazione
===> Mercato
=====> Mercato valute
=====> Beni
=====> Servizi
=====> Esercizi commerciali
=====> Hardware/Mining (Italiano)
=====> Gambling (Italiano)
===> Accuse scam/truffe
===> Mining (Italiano)
===> Alt-Currencies (Italiano)
=====> Annunci
===> Raduni/Meeting (Italiano)
===> Crittografia e decentralizzazione
===> Off-Topic (Italiano)
=> 日本語 (Japanese)
===> アルトコイン
=> Nederlands (Dutch)
===> Markt
===> Gokken/lotterijen
===> Mining (Nederlands)
===> Beurzen
===> Alt Coins (Nederlands)
===> Off-topic (Nederlands)
===> Meetings (Nederlands)
=> Nigeria (Naija)
===> Politics and society (Naija)
===> Off-topic (Naija)
=> 한국어 (Korean)
===> 대체코인 Alt Coins (한국어)
=> Pilipinas
===> Altcoins (Pilipinas)
=====> Altcoin Announcements (Pilipinas)
===> Pamilihan
===> Others (Pilipinas)
=> Polski
===> Tablica ogłoszeń
===> Alternatywne kryptowaluty
=====> Nowe kryptowaluty i tokeny
=====> Tablica ogłoszeń (altcoiny)
=> Português (Portuguese)
===> Primeiros Passos (Iniciantes)
===> Economia & Mercado
===> Mineração em Geral
===> Desenvolvimento & Discussões Técnicas
===> Criptomoedas Alternativas
===> Brasil
===> Portugal
=> Русский (Russian)
===> Новички
===> Бизнес
=====> Барахолка
=====> Обменники
===> Идеи
===> Кодеры
===> Майнеры
===> Политика
===> Трейдеры
===> Альтернативные криптовалюты
=====> Токены
=====> Бayнти и aиpдpoпы
===> Хайпы
===> Работа
===> Разное
===> Oбcyждeниe Bitcoin
=====> Новости
=====> Юристы
=> Română (Romanian)
===> Anunturi importante
===> Offtopic
===> Market
=====> Discutii Servicii
===> Minerit
===> Tutoriale
===> Bine ai venit!
===> Presa
===> Altcoins (Monede Alternative)
=====> Anunturi Monede Alternative
=> Skandinavisk
=> Türkçe (Turkish)
===> Bitcoin Haberleri
===> Pazar Alanı
===> Madencilik
===> Ekonomi
===> Servisler
=====> Fonlar
===> Proje Geliştirme
===> Alternatif Kripto-Paralar
=====> Madencilik (Alternatif Kripto-Paralar)
=====> Duyurular (Alternatif Kripto-Paralar)
===> Konu Dışı
===> Yeni Başlayanlar & Yardım
===> Buluşmalar
=> Other languages/locations
Loading...