Bitcoin Forum
August 31, 2024, 07:13:30 AM
Welcome,
Guest
. Please
login
or
register
.
News
: Latest Bitcoin Core release:
27.1
[
Torrent
]
Home
Help
Search
Login
Register
More
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
>
Extract Bitcoin Address from Public Key
Pages: [
1
]
« previous topic
next topic »
Print
Author
Topic: Extract Bitcoin Address from Public Key (Read 1807 times)
antonimasso
(OP)
Member
Offline
Activity: 73
Merit: 10
⇾
Extract Bitcoin Address from Public Key
August 18, 2014, 11:54:01 AM
#1
Hello,
I'd like to extract the bitcoin address from a public key.
I want to create a MultiSig address and would like to check if the bitcoin address corresponds to the public key.
Does anyone know if this has already been made with Javascript?
Thanks
kolinko
Full Member
Offline
Activity: 518
Merit: 101
Re: Extract Bitcoin Address from Public Key
August 18, 2014, 12:44:32 PM
#2
I don't know about a javascript implementation, but for python you can check out ours:
https://github.com/orisi/wiki/wiki/Installing-the-oracle-node
And then run ./runclient.sh main
Here's a code that does it:
https://github.com/orisi/orisi/blob/master/src/client/main.py
(function main)
antonimasso
(OP)
Member
Offline
Activity: 73
Merit: 10
Re: Extract Bitcoin Address from Public Key
August 18, 2014, 03:44:51 PM
#3
I'd like to avoid having to make a request to the server to extract the bitcoin address from the public key.
I found another example on how to extract it with PHP (
https://stackoverflow.com/questions/19233053/hashing-from-a-public-key-to-a-bitcoin-address-in-php
), but I really prefer doing in it Javascript.
ffe
Sr. Member
Offline
Activity: 308
Merit: 250
Re: Extract Bitcoin Address from Public Key
August 18, 2014, 04:02:59 PM
#4
dig into the JavaScript from Bitaddress.org
TheButterZone
Legendary
Offline
Activity: 3024
Merit: 1032
RIP Mommy
Re: Extract Bitcoin Address from Public Key
August 18, 2014, 11:27:33 PM
#5
What happens when you put the public key after
https://blockchain.info/address/
?
Quote from: SaltySpitoon on February 21, 2018, 12:07:45 AM
Saying that you don't trust someone because of their behavior is completely valid.
DeathAndTaxes
Donator
Legendary
Offline
Activity: 1218
Merit: 1079
Gerald Davis
Re: Extract Bitcoin Address from Public Key
August 18, 2014, 11:58:20 PM
#6
Quote from: TheButterZone on August 18, 2014, 11:27:33 PM
What happens when you put the public key after
https://blockchain.info/address/
?
Nothing because a PubKey is not an address. An address is a hash of the pubkey (PubKeyHash) or a hash of the script (ScriptHash) with version and checksum encoded in base58.
TheButterZone
Legendary
Offline
Activity: 3024
Merit: 1032
RIP Mommy
Re: Extract Bitcoin Address from Public Key
August 19, 2014, 12:05:49 AM
#7
Quote from: DeathAndTaxes on August 18, 2014, 11:58:20 PM
Quote from: TheButterZone on August 18, 2014, 11:27:33 PM
What happens when you put the public key after
https://blockchain.info/address/
?
Nothing because a PubKey is not an address. An address is a hash of the pubkey (PubKeyHash) or a hash of the script (ScriptHash) with version and checksum encoded in base58.
https://blockchain.info/address/62e28bc02c39a27ead237ff0c4039871b29be836
Quote from: SaltySpitoon on February 21, 2018, 12:07:45 AM
Saying that you don't trust someone because of their behavior is completely valid.
DeathAndTaxes
Donator
Legendary
Offline
Activity: 1218
Merit: 1079
Gerald Davis
Re: Extract Bitcoin Address from Public Key
August 19, 2014, 01:08:13 AM
#8
Quote from: TheButterZone on August 19, 2014, 12:05:49 AM
Quote from: DeathAndTaxes on August 18, 2014, 11:58:20 PM
Quote from: TheButterZone on August 18, 2014, 11:27:33 PM
What happens when you put the public key after
https://blockchain.info/address/
?
Nothing because a PubKey is not an address. An address is a hash of the pubkey (PubKeyHash) or a hash of the script (ScriptHash) with version and checksum encoded in base58.
https://blockchain.info/address/62e28bc02c39a27ead237ff0c4039871b29be836
That isn't a Public key it is a hash. PubKeys are 256 bits.
amaclin
Legendary
Offline
Activity: 1260
Merit: 1019
Re: Extract Bitcoin Address from Public Key
August 19, 2014, 04:39:29 AM
#9
Quote
That isn't a Public key it is a hash. PubKeys are 256 bits.
{troll mode on}
No.
pubkeys are 512 bits.
Yes, it is possible to "compress" it to 257 bits
{troll mode off}
antonimasso
(OP)
Member
Offline
Activity: 73
Merit: 10
Re: Extract Bitcoin Address from Public Key
August 19, 2014, 06:29:42 AM
#10
I finally used brainwallet's JS client code.
Thanks
antonimasso
(OP)
Member
Offline
Activity: 73
Merit: 10
Re: Extract Bitcoin Address from Public Key
August 19, 2014, 07:43:14 AM
#11
Working demo:
http://www.amasso.info/bitcoin/
Pages: [
1
]
Print
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
>
Extract Bitcoin Address from Public Key
« 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...