Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [public-key]

This tag should be used for questions regarding public keys. A public key is the public half of the public/private keypair. Anyone can use a public key check that a signature is correct, but they can't generate the signature themselves with the public key.

0
votes
0answers
9 views

Public key vs Bitcoin address [duplicate]

As i've read on many websites and papers, the bitcoin address is made by hashing the public key. And i've read that that's done because we don't want the public key to be public until money is spent. ...
0
votes
1answer
17 views

Question about nondeterministic wallet

I was reading https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch05.asciidoc#user-stories and ran into this statement. In the first bitcoin wallet (now called Bitcoin Core), wallets were ...
0
votes
1answer
40 views

Can someone explain what exactly is derived address?

Let's say my mnemonic words are army van defense carry jealous true garbage claim echo media make crunch When I used https://iancoleman.io/bip39/#english, the section, Derived Address, showed ...
0
votes
1answer
28 views

What can I do with Account Extended Private Key and Account Extended Public Key?

I have been reading about Account Extended Private Key and Account Extended Public Key that derives from the Master Private Key and Master Public Key, but I still have some question about their ...
0
votes
2answers
36 views

If transactions are changed in memory how miners know it?

If Alice requests something to bob, then Alice sends her public key and Bob encrypts message by using Alice's key. Bob uses his private key and hash function to make a signature. After finishing this ...
0
votes
1answer
23 views

Public key to address [closed]

I am working in js and I need a library that helps me get an address with a public key stored in a buffer.
0
votes
1answer
82 views

How to find one private key from the list of 15 million public keys for the sake of experimentation?

Recently found a list of compressed public keys. The total number of 15 000 000 public keys. Practical for all compressed public keys Balance: 0.000100 BTC I do not set malicious goals. All just for ...
0
votes
0answers
26 views

Extending a parent public key to create a child public key

I want to create public key from parent e public key like this: In this picture I can see left 256 bits and it's become 264 after "sum" with parent public key. But 256 bits what is it? When ...
1
vote
1answer
52 views

If Bitcoin addresses are a single-use token, how several transactions belong to a single address? (Edited)

While in Bitcoin wiki (Link to the page) is explicitly mentioned: "A Bitcoin address is a single-use token." We therefore expect that every address would be belonged to only a single transaction ...
0
votes
2answers
173 views

Get Master Private Key from BIP39 Seed

I have BIP39 Seed: 5b56c417303faa3fcba7e57400e120a0ca83ec5a4fc9ffba757fbe63fbd77a89a1a3be4c67196f57c39a88b76373733891bfaba16ed27a813ceed498804c0570 I want to get Master private Key Then I Have to ...
0
votes
1answer
34 views

Create master public key after HMAC-SHA512

I have that result after hash_pbkdf2 5B56C417303FAA3FCBA7E57400E120A0CA83EC5A4FC9FFBA757FBE63FBD77A89A1A3BE4C67196F57C39A88B76373733891BFABA16ED27A813CEED498804C0570 left 256 bits are: ...
0
votes
1answer
42 views

checksum in address

I want to create a address bitcoin. I have a payload with version like this: 0050d512c984b1656ef47c145c8fd5d5262d3904b1 where 00 in my version prefix, and 50d512c984b1656ef47c145c8fd5d5262d3904b1 ...
1
vote
1answer
38 views

Does Bitcoin Core accepts uncompressed address generation?

So one priv key express uncompressed and compressed pub key. Does the latest Bitcoin Core client accepts importing it to express uncompressed address? or it automatically express compressed address? ...
0
votes
1answer
57 views

address in listaddressgroupings and getnewaddress

I don't understand the differents between listaddressgroupings and getnewaddress For example, I have a local blockchain ( regtest ) with 0 Block. I create 101 block (generate 101) I can see with ...
0
votes
4answers
89 views

Sent BTC to public key instead of my address

Friend of mine was trying to buy BTC from ATM, instead of BTC address he scanned the public key from coinomi wallet (I dont know why the ATM accepted it, but it did). Is it possible to somehow access ...
0
votes
1answer
115 views

How public key is calculated from a base58 encoded private key?

I followed this post and created a private key for bitcoin wallet. The post says after finding the random 256 bit(32 bytes) integer the version number should be prepended and the checksum should be ...
2
votes
1answer
269 views

Using Python: create a private key of my choosing, then generate public key and address

I'm looking for a simple, easy to use Bitcoin library for Python. What I want to do is verify I can enter a hex private key that I want, and get the expected pubkey in compressed format, and the 1Btc....
0
votes
1answer
47 views

Who approves my public key in Bitcoin network?

In a PKI approach a public key is approved by a Certificate Authority (CA) with a centralized manner. However, since Bitcoin network is a decentralized network, how my public key validity is approved? ...
1
vote
1answer
176 views

Derive next HD segwit address from xpub/ypub

I've been using the smartbit api to derive the next receiving address for a while now. However it only works for Legacy addresses and not Segwit addresses. I now have a Ledger Nano s and need a ...
2
votes
1answer
355 views

Converting xpub key to core format

I am experiencing some major issues which I honestly can't understand. When I am generating a wallet from Electrum the public key looks like this: ...
1
vote
1answer
94 views

PHP How can I validate / verify a wallet public key?

Can someone please help me find some PHP open source on how to validate / verify a bitcoin wallet public key ? I am currently working on a project and I am implementing multisig, and it seems I can't ...
0
votes
2answers
36 views

What is the difference between your address and your public keys

I'm beginning to learn about cryptocurrencies, and I'm having a lot of trouble because some terms are used in different contexts. I know that public keys are generated through a private key. So, are ...
9
votes
3answers
1k views

How would one “Encrypt” a message using a Bitcoin *public key* and use its private key to decrypt it?

I have the following text string: This is a test message. Using my bitcoin public key (bitcoin address?), how can I encrypt this message? How would I decrypt the message using a bitcoin private key?
1
vote
1answer
158 views

How to get the Extended Public Key

Hello I have the following code that generates a Public Key, Private Key and BTC Address. import hashlib import ecdsa from base58 import b58encode_check, b58decode_check import os def ...
2
votes
2answers
372 views

Can someone find out how much bitcoin do I have using my public key?

Im pretty new to bitcoins, so I may have a silly question. Imagine that someone has my public key. Can he find out how much bitcoin do I have? only using my public key?
0
votes
1answer
74 views

Why can a wallet not compute the private-key from a public-key?

my goal of questions this is why any wallet not able to compute private key created with public key generate?
2
votes
2answers
44 views

What if two public keys have the same hash? [duplicate]

What if two public keys have the same hash? Although the chance is very very small, I am still interested in what would happen. Suppose that Alice makes a transaction to Bob using Pay To Public Key ...
2
votes
1answer
72 views

Why are some public keys prefixed with 0x00?

ECDSA public keys seem to always start with 0x02/0x03/0x04/0x05 1, followed by either 32 bytes of 64 bytes. However, I encounter some public keys prefixed with 0x00. For example, the source output ...
2
votes
1answer
70 views

I have a 100 character text message and I want to encrypt this message with my bitcoin “PUBLIC KEY” and decrypt it with my private key in Javascript

Are there any javascript libraries that can encrypt a 100 character text message using your bitcoin public key, but only be able to decrypt it with your bitcoin private key? I'm looking to create a ...
2
votes
0answers
77 views

Becoming Bitcoin wallet provider from scratch [closed]

I want to launch a bitcoin wallet service website for creating new wallets. And i want to provide a tool for user for importing their old wallets using public and private key. I know i can use some ...
1
vote
1answer
50 views

can I run bitcoin core with public key only

I'm looking a way for secure setup of web site that accepts bitcoin payments. Ideally I'd like to create wallet off-site and be able to deploy bitcoin core online with public key only that I believe ...
0
votes
1answer
34 views

Use of Bitcoin paper wallet

A Bitcoin paper wallet contains a pair keys: public key (address used to receive coins) and private key (allows to spend coins stored at that address). Those keys are printed in a form of QR-codes so ...
0
votes
0answers
15 views

How is “level” of user privacy in “Zerocash” (Zcach)?

Is it correct that Zerocash allows two users to engage in transactions without either party revealing their addresses (their public key) to the other? Or it only ensures privacy of the content of the ...
0
votes
1answer
59 views

P2PKH - Sharing a wallet address does not reveal my pub key?

Is it technically correct to say that if I share my address with the network, nobody has access to my pubkey still? But if I share a valid signature to a P2PKH UTXO, someone can derive my pubkey and ...
1
vote
1answer
115 views

General private/public key generation

Not sure if this is the correct forum to ask, but I couldn't find a general one for all cryptocurrencies I wanted to get an idea on how the whole cold-storage private/public key generation works for ...
0
votes
2answers
39 views

Why most of pubkeys in the first batch of blocks in blk00000.dat are different

For example: the pubkey in the first 3 coinbase's output are 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f ...
1
vote
1answer
81 views

How does a Doge public key is created from a private key?

I am looking for the differences between the creation of Doge public keys and Bitcoin public keys when inserting a private key. I am trying to make a small web-app that signs messages. There are a ...
3
votes
1answer
636 views

What makes an extended public or private key?

I was under the impression that an extended public key was comprised of the public key + chain code, and I'm unfamiliar with what comprises the extended private key. However this does not seem to be ...
0
votes
2answers
88 views

Extended Public Key 's mechanism misinterpreting in 'Mastering Bitcoin' by Andreas

I am a newbie and start exploring from the 'Mastering Bitcoin' book. The figure below to me is a little inaccurate, I think the arrow from HMAC-SHA256 should point right to the child public key. Am I ...
1
vote
1answer
113 views

How would one extract the list of public keys from Electrum wallet?

I am looking for a way to extract all of the public keys associated with my electrum wallet. I am aware that listaddresses() does this for public addresses, such as 1CWX7o1Ppe4JpEpSLmuovU4HFY3D6Ay24C ...
1
vote
2answers
92 views

Can one recover the full list of public keys generated in electrum with the seed/private key?

I used the wallet.change_gap_limit command in the electrum console in order to generate some 20.000 public keys. Would I be able to recover all of these using my seed after completely removing ...
0
votes
1answer
42 views

Is auditing a BIP32 tree only possible if it is non-hardened?

BIP 32 allows you to to implement the auditor use case: Audits: N(m/*) In case an auditor needs full access to the list of incoming and outgoing payments, one can share all account public ...
0
votes
1answer
254 views

How to import an extended public key into bitcoin core 0.16

I exported an xpub key from a HW wallet and want to import it into my own node to keep track of changes to the balance. My node is running satoshi 0.16.1 Can someone help me find the right syntax for ...
1
vote
1answer
298 views

bitcoin address from xpub key

I want to create bitcoin address from extended public key, without exposing private key but did not get any success till now. Do someone know how to do it? I am using bitcore-lib package
2
votes
2answers
188 views

Is It Possible to Prove Ownership of Public Key Hash without Public Key?

I am building a system where I would like the user to specify a public key hash of a wallet that they have control over in the event of tips, refunds, and/or otherwise needing to send value back to ...
4
votes
1answer
530 views

Sweeping a bitcoin private key using PHP

Is there a PHP script where it validates a bitcoin private key and also gets the public address from the key? My goal was to: verify the private key Get the public address using that private key ...
1
vote
1answer
349 views

Can I export a xpub/zpub/ypub key in bitcoin core?

I'd like to add a master public key (any of xpub/zpub/ypub https://support.samourai.io/article/49-xpub-s-ypub-s-zpub-s) for tracking purposes to Sentinel watch-only wallet https://samouraiwallet.com/...
0
votes
0answers
48 views

What's the difference between all kinds of bitcoin addresses (Single, multisig, etc…) also compared to all bitcoin forks?

Bitcoin addresses start with 1. Multisig/Script addresses start with 3. Other forks of bitcoin have single letters that are different at the beginning. Is this letter simply and only prepended to the ...
3
votes
1answer
268 views

Can we derive parent’s private key using child’s private key?

In the book named Mastering Bitcoin by Andreas, the author described the usage of derived child keys. One thing I noted was that he said(page 108), The derivation function is a one-way function, ...
0
votes
1answer
243 views

How to get public and private keys by giving seed explicitly?

I am using bitcore to generate the public and private keys. I am using 'getnewaddress' method to generate a public address and dumpprivkey to generate a private key. When I am calling the ...